Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Iffile: Difference between revisions

Template page
Created page with '{{#ifeq:{{NAMESPACE}}|Image|{{{1|}}}}}<noinclude> ---- For use in templates that add images to categories (while ignoring all other namespaces). Short for <code>...'
 
m
Line 5: Line 5:
For use in templates that add images to categories (while ignoring all other namespaces). Short for <code><nowiki>{{#ifeq:{{NAMESPACE}}|Image|</nowiki></code>...<code>}}</code>.
For use in templates that add images to categories (while ignoring all other namespaces). Short for <code><nowiki>{{#ifeq:{{NAMESPACE}}|Image|</nowiki></code>...<code>}}</code>.


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


[[Category:Function templates|{{PAGENAME}}]]
[[Category:Function templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 04:02, 14 June 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.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.