Module:Lua banner: Difference between revisions
Content added Content deleted
m (1 revision imported: series overview) |
(Module:Citation has been blanked since Wikipedia:Templates for discussion/Log/2018 May 13#Module:Citation; remove special handling) |
||
Line 52: | Line 52: | ||
boxArgs.type = 'notice' |
boxArgs.type = 'notice' |
||
boxArgs.small = true |
boxArgs.small = true |
||
boxArgs.image = '[[File:Lua- |
boxArgs.image = '[[File:Lua-Logo.svg|30px|alt=|link=]]' |
||
return mMessageBox.main('mbox', boxArgs) |
return mMessageBox.main('mbox', boxArgs) |
||
end |
end |
||
Line 82: | Line 82: | ||
if not category then |
if not category then |
||
local categories = { |
local categories = { |
||
['Module:String'] = ' |
['Module:String'] = 'Templates based on the String Lua module', |
||
['Module:Math'] = 'Templates based on the Math Lua module', |
['Module:Math'] = 'Templates based on the Math Lua module', |
||
['Module:BaseConvert'] = 'Templates based on the BaseConvert Lua module', |
['Module:BaseConvert'] = 'Templates based on the BaseConvert Lua module', |
||
['Module:Citation'] = ' |
['Module:Citation/CS1'] = 'Templates based on the Citation/CS1 Lua module' |
||
} |
} |
||
categories['Module:Citation/CS1'] = categories['Module:Citation'] |
|||
category = modules[1] and categories[modules[1]] |
category = modules[1] and categories[modules[1]] |
||
category = category or 'Lua-based templates' |
category = category or 'Lua-based templates' |