Template:AgesEras
Documentation [edit]
The template uses Module:AgesEras, and the data is loaded from Module:AgesEras/list - add any new Ages/Eras or changes there.
This template is included automatically based on parameters in Template:Person infobox and Template:Officeholder infobox.
Parameters
Parameters are case sensitive and take a set of date ranges (see below).
- ns - NationStates (has game icon only)
- cn - Cyber Nations
The template can take a case-sensitive named parameter for each game that is supported. Each parameter consists of a set of date ranges during which the person in question was a member of the NPO branch in that game. You can omit the end date if the person is currently a member.
The code attempts to recognize a variety of ways to input the date ranges, but it also depends on the #time parser function. In particular, it doesn't recognize dd/mm/yy format. For clarity, it's better to spell out dates or use yyyy-mm-dd. The preferred separator between ranges is a semicolon. Whatever the formatting, be consistent, but don't use the same character to separate both ranges and the dates within them.
Mechanics
The Ages/Eras icons are displayed using the indicators system. Notably, each Age/Era will have a unique identifier that determines its order on the page, which also prevents duplicates from being shown. These identifiers are determined in the module's icon
function.
The above documentation is transcluded from Template:AgesEras/doc.