Template:Transclude: Difference between revisions
Appearance
wikademia>Wikademia mNo edit summary |
wikademia>Wikademia mNo edit summary |
||
| Line 1: | Line 1: | ||
{{#switch: {{NAMESPACE | {{#switch: {{NAMESPACE: {{{1}}} }} | ||
|#default = {{FULLPAGENAME}}: {{{1}}} <!-- eg "User:Foo" --> | |#default = {{FULLPAGENAME}}: {{{1}}} <!-- eg "User:Foo" --> | ||
|{{ns:0}} = | |{{ns:0}} = | ||
{{#ifeq: {{NAMESPACE | {{#ifeq: {{NAMESPACE: {{{1}}} }} | {{NAMESPACE: Template{{{1}}} }} | ||
| Template: {{{1}}} <!-- no leading colon, eg "Foo" --> | | Template:{{{1}}} <!-- no leading colon, eg "Foo" --> | ||
| {{PAGENAME | | {{PAGENAME: {{{1}}} }} <!-- leading colon, eg ":Foo", so we want the article --> | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 17:07, 6 May 2009
Template:{{{1}}}
[create]
Template documentation