Template:Transclude: Difference between revisions
From The Goon Show Depository
en>GKFX (Update from sandbox.) |
m (1 revision imported) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#switch: {{NAMESPACE: {{{1}}} }} | <onlyinclude>{{#switch: {{NAMESPACE: {{{1}}} }} | ||
|#default = {{FULLPAGENAME: {{{1}}} }} <!-- | |#default = {{FULLPAGENAME: {{{1}}} }} <!-- leading namespace prefix, eg "Template:Foo" --> | ||
|{{ns:0}} = | |{{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}} | ||