Module:Hatnote: Difference between revisions
forked from https://dev.fandom.com/wiki/Global_Lua_Modules/Hatnote under CC-BY-SA |
No edit summary |
||
| Line 10: | Line 10: | ||
local libraryUtil = require('libraryUtil') | local libraryUtil = require('libraryUtil') | ||
local checkType = libraryUtil.checkType | local checkType = libraryUtil.checkType | ||
local mArguments = require(' | local mArguments = require('Module:Arguments') | ||
local yesno = require(' | local yesno = require('Module:Yesno') | ||
local mTableTools = require(' | local mTableTools = require('Module:TableTools') | ||
local i18n = require(' | local i18n = require('Module:I18n').loadMessages('Hatnote') | ||
local hatnote = {} | local hatnote = {} | ||
| Line 156: | Line 156: | ||
return hatnote.makeWikitextError( | return hatnote.makeWikitextError( | ||
i18n:msg('error-link'), | i18n:msg('error-link'), | ||
' | 'Template:Format link#Errors',-- there is no actual docs for this. not even on wikipedia | ||
args.category | args.category | ||
) | ) | ||
| Line 211: | Line 211: | ||
return hatnote.makeWikitextError( | return hatnote.makeWikitextError( | ||
i18n:msg('error-text'), | i18n:msg('error-text'), | ||
' | 'Template:Hatnote#Errors', | ||
args.category | args.category | ||
) | ) | ||
| Line 580: | Line 580: | ||
return hatnote.makeWikitextError( | return hatnote.makeWikitextError( | ||
i18n:msg('error-pagename'), | i18n:msg('error-pagename'), | ||
' | 'Template:Details#Errors',-- another undocumented thing | ||
category | category | ||
) | ) | ||
| Line 635: | Line 635: | ||
return hatnote.makeWikitextError( | return hatnote.makeWikitextError( | ||
i18n:msg('error-pagename', 2), | i18n:msg('error-pagename', 2), | ||
' | 'Template:Further#Errors',-- undocumented thing #3 | ||
args.category | args.category | ||
) | ) | ||
| Line 670: | Line 670: | ||
return hatnote.makeWikitextError( | return hatnote.makeWikitextError( | ||
i18n:msg('error-pagename', 2), | i18n:msg('error-pagename', 2), | ||
' | 'Template:Main#Errors',-- undocumented thing #4 | ||
args.category | args.category | ||
) | ) | ||
| Line 729: | Line 729: | ||
return hatnote.makeWikitextError( | return hatnote.makeWikitextError( | ||
i18n:msg('error-pagename', 2), | i18n:msg('error-pagename', 2), | ||
' | 'Template:See also#Errors',-- undocumented thing #5 | ||
args.category | args.category | ||
) | ) | ||