Difference between revisions of "Template:Transclude"
Jump to navigation
Jump to search
m
Reverted edits by 184.22.196.79 (talk) to last version by ExE Boss
(Replaced content with "Bbvbbbb") |
>Mainframe98 m (Reverted edits by 184.22.196.79 (talk) to last version by ExE Boss) |
||
Line 1: | Line 1: | ||
<onlyinclude>{{#switch: {{NAMESPACE: {{{1}}} }} | |||
|#default = {{FULLPAGENAME: {{{1}}} }} <!-- leading namespace prefix, eg "Template:Foo" --> | |||
|{{ns:0}} = | |||
{{#ifeq: {{NAMESPACE: {{{1}}} }} | {{NAMESPACE: Template{{{1}}} }} | |||
| Template:{{{1}}} <!-- no leading colon, eg "Foo" --> | |||
| {{PAGENAME: {{{1}}} }} <!-- leading colon, eg ":Foo", so we want the article --> | |||
}} | |||
}}</onlyinclude> | |||
{{Documentation}} |