This is an archive copy of wikilivres.ca as of 18 February 2017 (from the WikiTeam dump). The original site is closed.

Template:Iffile: Difference between revisions

Free texts and images.
Jump to navigation Jump to search
imported>Rocket000
m
imported>Gmaxwell
m Protected "Template:Ifimage": Full protecting widely used template. [edit=sysop:move=sysop] [cascading]
(No difference)

Revision as of 00:13, 8 July 2008



For use in templates that add images to categories (while ignoring 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.