Difference between revisions of "Template:Iffile"

From Self-sufficiency
Jump to: navigation, search
m (clarity)
m (Image -> File!)
Line 1: Line 1:
{{#ifeq:{{NAMESPACE}}|Image|{{{1|}}}}}<noinclude>
+
{{#ifeq:{{NAMESPACE}}|File|{{{1|}}}}}<noinclude>
  
  

Revision as of 00:50, 28 December 2008



For use in templates that add images to categories (while having no effect in all other namespaces). Short for {{#ifeq:{{NAMESPACE}}|Image|...}}.

For example, something like {{ifimage|[[Category:Some media only category]]}} might go in a template that's only supposed to categorize images. Of course, <includeonly> tags aren't needed since it won't affect templates. No type of category suppression (e.g. category= or |nocat) is needed on demo/example pages either.