Template:Transclude: Difference between revisions

m
1 revision imported
m (1 revision imported)
en>Centrist16
m (1 revision imported)
Line 1:
{{#switch: {{NAMESPACE: {{{1}}} }}
|#default = {{FULLPAGENAME: {{{1}}} }} <!-- the namespace was specified eg "User:Foo" "Template:Foo", "Category:Foo" -->
|{{ns:0}} =
|{{ns:0}} = <!-- we have either ":Foo" (mainspace) or "Foo" (a template) -->
{{#ifeq: {{FirstNAMESPACE: character|{{{1|}}} }} | {{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>
{{documentation}}
</noinclude>
Anonymous user