Template:CenturyNav: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(starting with a base that doesn't work for century pages)
 
No edit summary
Line 9: Line 9:




</includeonly><noinclude>[[Category:Template sandbox]]</noinclude>
</includeonly><noinclude>[[Category:Template sandbox]]
ultimately will use <nowiki>
{{#sub:{{PAGENAME}}|0|2}} as the core engine
prolly have to throw in some #if or #switch thingies to capture centuries that are 1 or 3 numbers in length.
 
for decades
{{#sub:{{PAGENAME}}|0|4}}</nowiki></noinclude>

Revision as of 04:50, 31 March 2010

Instructions for {{CenturyNav}}
Do not directly call this template. It is used to support other templates. Once another template decides that the topic of a page is a century, this template will automatically provide a navigation box.

It is completely automatic, and has no user-definable parameters.

Sample output

Because this template is dependent upon detecting a PAGENAME that is a century, its output can only be seen on a century page. It is impossible to reproduce its results here. If you wish to test it, go to any century and add {{timeline}} to the page.

Special note

Please remember that the word "century" should not be capitalized in the PAGENAME of any new century page that you create.

ultimately will use {{#sub:{{PAGENAME}}|0|2}} as the core engine prolly have to throw in some #if or #switch thingies to capture centuries that are 1 or 3 numbers in length. for decades {{#sub:{{PAGENAME}}|0|4}}