Template:Senate Session
From NovaRoma
(Difference between revisions)
(use padleft to add leading 0 to day numbers for correct sorting in category) |
(test new function) |
||
Line 1: | Line 1: | ||
'''This is a report of a session of the Nova Roma [[Senate (Nova Roma)|Senate]] of {{{{{1|Jan}}} {{{2|1}}}}}, {{{{{3|1998}}}}}.''' | '''This is a report of a session of the Nova Roma [[Senate (Nova Roma)|Senate]] of {{{{{1|Jan}}} {{{2|1}}}}}, {{{{{3|1998}}}}}.''' | ||
---- | ---- | ||
− | <includeonly>[[Category:Senate sessions (Nova Roma)|{{{3}}}{{#time:m|{{{1}}}}}{{padleft:{{{2}}}|2|0}}]] {{#switch:{{{3|}}}|1998= [[Category:MMDCCLI]] |1998= [[Category:MMDCCLI]] |1999= [[Category:MMDCCLII]] |2000= [[Category:MMDCCLIII]] |2001= [[Category:MMDCCLIV]] |2002= [[Category:MMDCCLV]] |2003= [[Category:MMDCCLVI]] |2004= [[Category:MMDCCLVII]] |2005= [[Category:MMDCCLVIII]] |2006= [[Category:MMDCCLIX]] |2007= [[Category:MMDCCLX]] |2008= [[Category:MMDCCLXI]] |2009= [[Category:MMDCCLXII]] |2010= [[Category:MMDCCLXIII]] }}</includeonly><noinclude>[[Category:Templates]] | + | <includeonly>[[Category:Senate sessions (Nova Roma)|{{{3}}}{{#time:m|{{{1}}}}}{{padleft:{{{2}}}|2|0}}]] {{#switch:{{{3|}}}|1998= [[Category:MMDCCLI]] |1998= [[Category:MMDCCLI]] |1999= [[Category:MMDCCLII]] |2000= [[Category:MMDCCLIII]] |2001= [[Category:MMDCCLIV]] |2002= [[Category:MMDCCLV]] |2003= [[Category:MMDCCLVI]] |2004= [[Category:MMDCCLVII]] |2005= [[Category:MMDCCLVIII]] |2006= [[Category:MMDCCLIX]] |2007= [[Category:MMDCCLX]] |2008= [[Category:MMDCCLXI]] |2009= [[Category:MMDCCLXII]] |2010= [[Category:MMDCCLXIII]] }} |
+ | {{#time:{{#expr: {{{3|}}}+ 754}},xr{{#expr: {{{3}}}+ 754}}}}}} | ||
+ | </includeonly><noinclude>[[Category:Templates]] | ||
==Usage== | ==Usage== | ||
+ | |||
+ | |||
Place the following at the top of the page: | Place the following at the top of the page: |
Revision as of 01:10, 10 August 2008
This is a report of a session of the Nova Roma Senate of Kal. Ian. ‡, Fl. Vedio M. Cassio cos. ‡ MMDCCLI a.u.c..
Usage
Place the following at the top of the page:
{{Senate Session|MONTH|DAY|YEAR}}
MONTH = Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec
DAY = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, etc.
YEAR = 1998, 1999, 2000, etc. through 2010.
Additional years will be added in the future.
Categories
The template automatically adds the article to
- "Category:Senate sessions (Nova Roma)" and
- the correct year category (e.g., "[[Category:MMDCCLI]]").
The sort order in "Category:Senate sessions" is by CE year (as given in parameter 3), then month number (as calculated from parameter 1) then day (as given in parameter 2).