Changes

Jump to: navigation, search

Template:PAGENAMETDOC

284 bytes added, 08:41, 31 May 2015
m
no edit summary
{{#ifeq:{{#invoke:String|find|{{FULLPAGENAME}}|/sandbox%d*$|plain=false}}|0|{{FULLBASEPAGENAME{{#if:{{{1|}}}||FULL}}BASEPAGENAME}}|{{FULLPAGENAME{{#if:{{{1|}}}||FULL}}PAGENAME}}}}<noinclude>
{{Documentation|content=
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 {{Wikivar|link=on|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>&#123;&#123;BASEPAGENAME&#125;&#125;</code> and <code>&#123;&#123;PAGENAME&#125;&#125;</code>, which have no namespace prefix.
}}
[[Category:Wikipedia variable-like templates]]
</noinclude>
Anonymous user

Navigation menu