Difference between revisions of "Template:PAGENAMETDOC"
(wrong way around) |
(*cough* Lua amateur) |
||
Line 1: | Line 1: | ||
− | {{#ifeq:{{#invoke:String|find|{{FULLPAGENAME}}|/sandbox | + | {{#ifeq:{{#invoke:String|find|{{FULLPAGENAME}}|/sandbox%d*$|plain=false}}|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:26, 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. |