Template:Transclude
From Syra D&D Wiki
(Difference between revisions)
(Created page with '{| style="background: transparent;" |- |style="padding-right: 1em;" | File:Icon-shortcut.png |valign=top|<div style="border-top: 1px solid #808080; border-bottom: 1px solid #…') |
|||
(2 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | { | + | {{#switch: {{NAMESPACE: {{{1}}} }} |
- | + | |#default = {{FULLPAGENAME: {{{1}}} }} <!-- eg "User: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 --> | |
- | <noinclude>[[Category:Backend templates]]</noinclude> | + | }} |
+ | }}<noinclude> | ||
+ | [[Category:Backend templates|{{PAGENAME}}]] | ||
+ | </noinclude> |
Current revision as of 01:12, 15 January 2012
Template:{{{1}}}