Difference between revisions of "Template:PAGENAMETDOC"

From EUSwiki
Jump to: navigation, search
(This template returns the current {{BASEPAGENAME}}, unless the title ends in /sandbox plus any number of digits, in which case it returns the {{FULLPAGENAME}}. It is primarily meant for demonstrating the sandbox version of templates in their documentation)
 
(wrong way around)
Line 1: Line 1:
{{#ifeq:{{#invoke:String|find|{{PAGENAME}}|/sandbox\d*$}}|0|{{FULLPAGENAME}}|{{BASEPAGENAME}}}}<noinclude>
+
{{#ifeq:{{#invoke:String|find|{{FULLPAGENAME}}|/sandbox\d*$}}|0|{{BASEPAGENAME}}|{{FULLPAGENAME}}}}<noinclude>
 
{{Documentation|content=
 
{{Documentation|content=
 
This template returns the current {{Wikivar|link=on|BASEPAGENAME}}, unless the title ends in <code>/sandbox</code> plus any number of digits, in which case it returns the {{Wikivar|FULLPAGENAME}}. It is primarily meant for demonstrating the sandbox version of templates in their documentation.
 
This template returns the current {{Wikivar|link=on|BASEPAGENAME}}, unless the title ends in <code>/sandbox</code> plus any number of digits, in which case it returns the {{Wikivar|FULLPAGENAME}}. It is primarily meant for demonstrating the sandbox version of templates in their documentation.

Revision as of 20:22, 14 April 2015

PAGENAMETDOC

50px Template documentation

This template returns the current Template:Wikivar, unless the title ends in /sandbox plus any number of digits, in which case it returns the Template:Wikivar. It is primarily meant for demonstrating the sandbox version of templates in their documentation.