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) |
Malcolmmcc (talk | contribs) m (7 revisions imported) |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{#ifeq:{{#invoke:String|find|{{ | + | {{#ifeq:{{#invoke:String|find|{{FULLPAGENAME}}|/sandbox%d*$|plain=false}}|0|{{{{#if:{{{1|}}}||FULL}}BASEPAGENAME}}|{{{{#if:{{{1|}}}||FULL}}PAGENAME}}}}<noinclude> |
{{Documentation|content= | {{Documentation|content= | ||
− | This template returns the current {{ | + | This template returns the current {{Tlx|FULLBASEPAGENAME}}, unless the title ends in <code>/sandbox</code> plus any number of digits, in which case it returns the {{tlx|FULLPAGENAME}}. It is primarily meant for demonstrating the sandbox version of templates in their documentation. |
+ | |||
+ | This template takes one numbered parameter (<code>1</code>); if anything is in this parameter then it will return <code>{{BASEPAGENAME}}</code> and <code>{{PAGENAME}}</code>, which have no namespace prefix. | ||
}} | }} | ||
[[Category:Wikipedia variable-like templates]] | [[Category:Wikipedia variable-like templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 08:58, 9 May 2018
Template:PAGENAMETDOC
50px Template documentation
This template returns the current {{FULLBASEPAGENAME}}
, 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.
This template takes one numbered parameter (1
); if anything is in this parameter then it will return {{BASEPAGENAME}}
and {{PAGENAME}}
, which have no namespace prefix.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |