Template:Transclude: Difference between revisions

m
Reverted edits by 184.22.196.79 (talk) to last version by ExE Boss
Wikimedia+Commons>4nn1l2
m (Changed protection level for "Template:Transclude": downgraded protection level per consensus ([Move=Allow only template editors and administrators] (indefinite) [Edit=Allow only template editors and administrators] (indefinite)))
Mediawiki>Mainframe98
m (Reverted edits by 184.22.196.79 (talk) to last version by ExE Boss)
Line 1: Line 1:
{{#switch: {{NAMESPACE: {{{1}}} }}
<onlyinclude>{{#switch: {{NAMESPACE: {{{1}}} }}
  |#default = {{FULLPAGENAME: {{{1}}} }} <!-- eg "User:Foo" -->
  |#default = {{FULLPAGENAME: {{{1}}} }} <!-- leading namespace prefix, eg "Template:Foo" -->
  |{{ns:0}} =  
  |{{ns:0}} =  
     {{#ifeq: {{NAMESPACE: {{{1}}} }} | {{NAMESPACE: Template{{{1}}} }}
     {{#ifeq: {{NAMESPACE: {{{1}}} }} | {{NAMESPACE: Template{{{1}}} }}
Line 6: Line 6:
       | {{PAGENAME: {{{1}}} }}      <!-- leading colon, eg ":Foo", so we want the article -->
       | {{PAGENAME: {{{1}}} }}      <!-- leading colon, eg ":Foo", so we want the article -->
     }}
     }}
}}<noinclude>
}}</onlyinclude>
{{documentation}}
{{Documentation}}
</noinclude>
Anonymous user