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

Template:Ifimage

Free texts and images.
Revision as of 15:40, 13 July 2009 by imported>Yann (7 revisions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search



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

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.