Module:AgesEras/list: Difference between revisions
Jump to navigation
Jump to search
(create) |
No edit summary |
||
Line 1: | Line 1: | ||
--Be sure to follow the existing format; all categories are optional. | |||
--Test any changes by entering "=p" (without quotes) in the debug console below; it should return "table". | |||
local list = { | local list = { | ||
--The "gameorder" list determines sort order of the icons. | |||
--It must contain all categories that should appear on pages. | |||
--Entries must match the other list keys. | |||
gameorder = { 'ns', 'cn', }, | |||
ns = { | ns = { | ||
game = { '2003-08-31', 'NPONS', 'New Pacific Order in NationStates' }, | game = { '2003-08-31', 'NPONS', 'New Pacific Order in NationStates' }, | ||
Line 41: | Line 47: | ||
--{ '2017-08-29', '', '' }, | --{ '2017-08-29', '', '' }, | ||
} | } | ||
} | }, | ||
} | } | ||
return list | return list |
Latest revision as of 00:11, 21 August 2020
Documentation [edit]
This is a data module to be used with mw.loadData.
See the included comments for how to change or add items. Try to keep everything in chronological order. Please check for errors before saving.
Only the games listed ingameorder
will be checked by the module; these correspond exactly to parameters usable by {{AgesEras}}
, and must also match the game's key in the table.The above documentation is transcluded from Module:AgesEras/list/doc.
--Be sure to follow the existing format; all categories are optional.
--Test any changes by entering "=p" (without quotes) in the debug console below; it should return "table".
local list = {
--The "gameorder" list determines sort order of the icons.
--It must contain all categories that should appear on pages.
--Entries must match the other list keys.
gameorder = { 'ns', 'cn', },
ns = {
game = { '2003-08-31', 'NPONS', 'New Pacific Order in NationStates' },
ages = {
},
eras = {
}
},
cn = {
game = { '2006-01-27', 'NPOCN', 'New Pacific Order in Cyber Nations' },
ages = {
{ '2006-01-27', 'Ivan', 'Age of Ivan' },
{ '2006-09-30', 'Pantless', 'Age of the Pantless Emperor' },
{ '2007-01-29', 'Bovine', 'Age of the Divine Bovine' },
{ '2009-09-29', 'Blackbird', 'Age of the Blackbird' },
{ '2011-03-30', 'Dragon', 'Age of the Dragon Emperor' },
{ '2012-02-04', 'Sword', 'Age of the Sword' },
{ '2013-03-27', 'Lonestar', 'Age of the Lonestar' },
{ '2014-05-20', 'Master', 'The Master Age' },
{ '2016-03-09', 'Thunder', 'Age of the Thunder Down Under' },
{ '2016-08-01', 'Prophet', 'Age of the Prophet' },
},
eras = {
{ '2006-01-27', 'Golden', 'Golden Era' },
{ '2006-07-10', 'Coldwar', 'Cold War Era' },
{ '2007-02-05', 'Worldunity', 'Era of World Unity' },
{ '2007-08-11', 'Disorder', 'Era of Disorder' },
{ '2007-12-08', 'Peacebreak', 'Era of Peace and Breakdown' },
{ '2008-06-23', 'Realignment', 'Era of Re-Alignment' },
{ '2009-04-22', 'Armageddon', 'Era of Armageddon' },
{ '2010-05-20', 'Lost', 'The Lost Era' },
{ '2010-11-25', 'Isolation', 'Era of Isolation' },
{ '2011-06-02', 'Redemption', 'Era of Redemption' },
{ '2012-02-04', 'Boldness', 'Era of Boldness' },
{ '2013-03-27', 'Upheaval', 'Era of Upheaval' },
{ '2014-02-11', 'Renaissance', 'Renaissance Era' },
{ '2015-08-31', 'Oculus', 'Era of Oculus' },
{ '2016-11-17', 'Metamorphosis', 'Era of Metamorphosis' },
--{ '2017-08-29', '', '' },
}
},
}
return list