Difference between revisions of "Template:PAGENAMETDOC"
(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|{{ | + | {{#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.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |