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))
m (Changed protection level for "Template:Timeline test": Robot: Protecting all pages from category Template sandbox (‎[edit=autoconfirmed] (indefinite) ‎[move=sysop] (indefinite)))
 
(2 intermediate revisions by 2 users not shown)
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
|
|

Latest revision as of 03:16, 19 May 2013

Instructions for {{Timeline test}}