Template:Timeline test: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(adding in calls to proper templates (not all of which are made yet))
(need decade to look for 0s, not just s)
Line 13: Line 13:




Tests for the letter "s" in the title of a time-related page.  Of these types of pages, only decade pages contain the letter s.  This part of the template will obviously wreak havoc on non-time related pages.  If it finds the letter "s", it will call the DecadeNav template. If it doesn't, it returns the value of -1 and nothing happens.  
Tests for the string "0s" in the title of a time-related page.  Of these types of pages, only decade pages contain the alphanumeric combination "0s".  This part of the template will obviously wreak havoc on non-time related pages.  If it finds "0s", it will call the DecadeNav template. If it doesn't, it returns the value of -1 and nothing happens.  




-->{{#ifeq:{{#rpos:{{PAGENAME}}|s}}
-->{{#ifeq:{{#rpos:{{PAGENAME}}|0s}}
|-1
|-1
|
|

Revision as of 04:35, 31 March 2010

Instructions for {{Timeline test}}