Template:File other: Difference between revisions

From All Skies Encyclopaedia
imported>Davidgothberg
(Creating this image/other template. It is way over-engineered but that makes it fully compatible with the other namespace detection templates.)
 
imported>WOSlinker
(remove {{pp-template}})
 
(8 intermediate revisions by one other user not shown)
Line 3: Line 3:
{{#if:{{{demospace|}}}
{{#if:{{{demospace|}}}
| {{lc: {{{demospace}}} }} <!--Use lower case "demospace"-->
| {{lc: {{{demospace}}} }} <!--Use lower case "demospace"-->
| {{#ifeq:{{NAMESPACE}}|Image
| {{#ifeq:{{NAMESPACE}}|{{ns:6}}
| image
| file
| other
| other
}}
}}
}}
}}
| file
<!--If any parameter, then don't return the "image/other" strings-->
| image = {{#if:{{{1|}}}{{{2|}}} | {{{1|}}} | image }}
| image = {{{1|}}}
| other
| other
| #default = {{#if:{{{1|}}}{{{2|}}} | {{{2|}}} | other }}
| #default = {{{2|}}}

}}<!--End switch--><noinclude>
}}<!--End switch--><noinclude>


<!-- {{pp-template|small=yes}} -->
{{Documentation}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->

Latest revision as of 14:41, 4 October 2010