Template:Year nav/doc: Difference between revisions
From BoyWiki
New page: {{documentation subpage}} ==Result== Output for default year "888" can be seen above. ==Usage== Takes one parameter, the year-number (year 101 or higher).<br /> The box width shrinks near... |
No edit summary |
||
Line 25: | Line 25: | ||
[[Category:History and events templates|{{PAGENAME}}]] | [[Category:History and events templates|{{PAGENAME}}]] | ||
</includeonly> | </includeonly> | ||
<noinclude> | |||
[[Category:General wiki templates]] | |||
</noinclude> |
Revision as of 12:17, 12 December 2012
Result
Output for default year "888" can be seen above.
Usage
Takes one parameter, the year-number (year 101 or higher).
The box width shrinks nearly 6% for smaller year-number sizes.
Example for "{{Year nav|1970}}" at right:
Example for "{{Year nav|101}}" at right:
Example for "{{Year nav|100}}" [invalid] at right:
- Use other tables to handle year 100 or below.
Notes
- This template uses the #expr parser function to calculate centuries, decades, and year numbers surrounding the year parameter.
- Negative numbers are passed through, not as "BC" but negative.
- Variables are not used, as they were not a supported feature when this template was created, so calculations are made twice, as needed, to determine results.