Modifications

Sauter à la navigation Sauter à la recherche

Modèle:Image/doc

1 736 octets ajoutés, 3 septembre 2012 à 14:52
m
1 version
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This template can be used as a wrapper to simplify the inclusion of an image in a template, where users may use several different forms of syntax.

It is primarily of use in templates and should '''not''' be used in articles directly (see ''File:'' syntax: [[meta:Help:File]]).

=== Usage ===

* <nowiki>{{Image | Example.svg | 20px}}</nowiki> → {{Image | Example.svg | 20px}}
* <nowiki>{{Image | File:Example.svg | 20px}}</nowiki> → {{Image | File:Example.svg | 20px}}
* <nowiki>{{Image | :File:Example.svg | 20px}}</nowiki> → {{Image | :File:Example.svg | 20px}}
* <nowiki>{{Image | [[File:Example.svg|30px]] | 20px}}</nowiki> → {{Image | [[File:Example.svg|30px]] | 20px}}

Note that additional parameters are (deliberately) ignored if full image syntax is passed in the first parameter. You can pass up to five parameters directly otherwise:
* <nowiki>{{Image | Example.svg | 20px | thumb | none | Foo}}</nowiki> → {{Image | Example.svg | 20px | thumb | none | Foo}}

You can also pass arbitrary parameters accepted by the [[WP:EIS|Image syntax]] if you separate them with {{tl|!}}. You may need to number them explicitly if they contain an equals sign "=":
* <nowiki>{{Image | Example.svg | 2= 20px{{!}}link=Main Page}}</nowiki> → {{Image | Example.svg | 2= 20px{{!}}link=Main Page}}

=== See also ===
* {{tl|Double image}}
* {{tl|Multiple image}}
* {{tl|File title}}
* {{tl|Linked}}
* {{tl|px}}

<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Wikipedia metatemplates]]

[[es:Plantilla:Imagen]]
[[id:Templat:Image]]
[[ia:Patrono:Image]]
[[ja:Template:Image2]]
[[ro:Format:Image]]
</includeonly>

Menu de navigation