View source for Module:AgesEras
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
local list = mw.loadData('Module:AgesEras/list')
local time = mw.language.getContentLanguage()
--note: if multiple ranges match the same age/era, the tag will duplicate, but will have the same name so won't be shown
--note: ages come before eras due to alphabetical sorting, but this could be changed in icon
--caution: pairs/ipairs and direct access are about the only things that will work on loadData tables
local function icon(kind, data, game, matchNum, gameNum)
if not data[1] or not data[2] or not data[3] or data[4] then
return '<span class="error">' ..
'invalid ' .. game .. ' ' .. kind .. ' data in [[Module:AgesEras/list]]' ..
'</span>'
end
local name = data[2]
local desc = data[3]
game = mw.ustring.upper(game)
local prefix
if kind == 'game' then
name = 'NPO'
prefix = '!' .. kind
000
1:0
Templates used on this page:
Return to Module:AgesEras.