Template:Timeline test: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(eliminating "not" returns)
m (Changed protection level for "Template:Timeline test": Robot: Protecting all pages from category Template sandbox (‎[edit=autoconfirmed] (indefinite) ‎[move=sysop] (indefinite)))
 
(3 intermediate revisions by 2 users not shown)
Line 9: Line 9:
|-1
|-1
|
|
|Am a century
|{{CenturyNav}}
}}<!--
}}<!--




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
|
|
| Am a decade
| {{DecadeNav}}
}}<!--
}}<!--



Latest revision as of 03:16, 19 May 2013

Instructions for {{Timeline test}}