Module:Hatnote: Difference between revisions

Kuhlau (talk | contribs)
forked from https://dev.fandom.com/wiki/Global_Lua_Modules/Hatnote under CC-BY-SA
Kuhlau (talk | contribs)
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('Dev:Arguments')
local mArguments = require('Module:Arguments')
local yesno = require('Dev:Yesno')
local yesno = require('Module:Yesno')
local mTableTools = require('Dev:TableTools')
local mTableTools = require('Module:TableTools')
local i18n = require('Dev:I18n').loadMessages('Hatnote')
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'),
             'w:c:dev:Template:Format link#Errors',-- there is no actual docs for this. not even on wikipedia
             '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'),
             'w:c:dev:Template:Hatnote#Errors',
             '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'),
             'w:c:dev:Template:Details#Errors',-- another undocumented thing
             '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),
             'w:c:dev:Template:Further#Errors',-- undocumented thing #3
             '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),
             'w:c:dev:Template:Main#Errors',-- undocumented thing #4
             '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),
             'w:c:dev:Template:See also#Errors',-- undocumented thing #5
             'Template:See also#Errors',-- undocumented thing #5
             args.category
             args.category
         )
         )