Jump to content

Template:Transclude: Difference between revisions

m
Protected "Template:Transclude": Highly visible page or template: 7475 transclusions ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))
(Update from sandbox.)
 
m (Protected "Template:Transclude": Highly visible page or template: 7475 transclusions ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
Line 1:
<onlyinclude>{{#switch: {{NAMESPACE: {{{1}}} }}
|#default = {{FULLPAGENAME: {{{1}}} }} <!-- theleading namespace was specifiedprefix, eg "User:Foo" "Template:Foo", "Category:Foo" -->
|{{ns:0}} =
|{{ns:0}} = <!-- we have either ":Foo" (mainspace) or "Foo" (a template) -->
{{#ififeq: {{#invokeNAMESPACE:string2|startswith|1= {{{1|}}} }} |2= {{NAMESPACE: Template{{{1}}} }}
|{{PAGENAME Template: {{{1}}} }} <!-- no leading colon, eg ":Foo", so we want the article -->
|Template {{PAGENAME: {{{1}}} }} <!-- no leading colon, eg ":Foo", so we want the templatearticle -->
}}
}}<noinclude/onlyinclude>
{{documentationDocumentation}}
</noinclude>
Anonymous user