Difference between revisions of "Template:Image"
Jump to navigation
Jump to search
m (Add alt text) |
m |
||
Line 7: | Line 7: | ||
CAPTION: --> {{#if:{{{2|}}}|{{{2}}}|}} <!-- |
CAPTION: --> {{#if:{{{2|}}}|{{{2}}}|}} <!-- |
||
LINK: -->{{#if:{{{link|}}}|{{!}}link={{{link}}}}}<!-- |
LINK: -->{{#if:{{{link|}}}|{{!}}link={{{link}}}}}<!-- |
||
− | ALT TEXT: -->|alt=<page-property key="alt" page="File:{{{1}}}" /><!-- |
+ | ALT TEXT: -->|alt=<page-property key="alt" page="File:{{{1}}}" no-value="" /><!-- |
-->]]</includeonly><noinclude>[[category: templates|{{PAGENAME}}]] |
-->]]</includeonly><noinclude>[[category: templates|{{PAGENAME}}]] |
||
Latest revision as of 20:12, 16 February 2023
This template should be used on pages to include a thumbnail of an image on a page.
- Usage
{{image|file-name.extension|caption}}
The file name parameter is required. The caption is technically optional, but is strongly encouraged. There are also several other optional parameters:
{{image|file-name.extension|caption |side=center/left/right |width=100px |attribute=artist/art-tracer/art-modified |link=[[File:file-name.extension]] }}
When copy-pasting the template above, it might be more readable to put it all on the same line; it is split across multiple ones just for clarity. If an optional parameter is not set, it defaults to the first value listed on its line above (height defaults to preserve ratio with the 100px default width).
Parameter | Description | Code | Example |
---|---|---|---|
none | when only the file name is passed | {{image|cosmere symbol.svg}} |
|
caption | when only the file name and caption are passed | {{image|cosmere symbol.svg|this is the caption}} |
|
side=left |
pushes the image over to the left, and allows the page to flow around it | {{image|cosmere symbol.svg|side=left|this is the caption}} |
|
side=right |
pushes the image over to the right, and allows the page to flow around it | {{image|cosmere symbol.svg|side=right|this is the caption}} |
|
attribute=art-tracer or attribute=art-modified |
changes the attribution of the image to the "tracer" of the image or the person who modified it instead of the original artist. | {{image|cosmere symbol.svg|attribute=art-tracer|this is the caption}} |
|
width=20% |
changes the width of the image | {{image|cosmere symbol.svg|width=200px|this is the caption}} |
|
height=20% |
changes the height of the image | {{image|Navani's Ketek glyphs.svg|height=150px|The [[ketek]] "Alight, winds approach deadly approaching winds alight" written in [[glyphs]] and stylized to represent the meeting of the [[Everstorm]] and a [[highstorm]]}} |
|
link=Cosmere |
makes the image link to a page instead of its File page | {{image|cosmere symbol.svg|The cosmere symbol, with a link to [[cosmere]] instead of [[:File:cosmere symbol.svg]]|width=200px|link=cosmere}} |
- Notes
- The
height
parameter overrides thewidth
parameter. If exact dimensions are required passwidth=WxHpx
whereW
is the width &H
is the height.
Articles using Template[edit]
- The Scrivener's Bones (transclusion) (← links | edit)
- Brandon Sanderson (transclusion) (← links | edit)
- Alcatraz Versus the Evil Librarians (transclusion) (← links | edit)
- Luthadel (transclusion) (← links | edit)
- Hoid (transclusion) (← links | edit)
- Steel (transclusion) (← links | edit)
- Raoden (transclusion) (← links | edit)
- Sarene (transclusion) (← links | edit)
- Hrathen (transclusion) (← links | edit)
- Wikim Davar (transclusion) (← links | edit)
- Jushu Davar (transclusion) (← links | edit)
- Balat Davar (transclusion) (← links | edit)
- Blushweaver (transclusion) (← links | edit)
- Evi Kholin (transclusion) (← links | edit)
- The Knights of Crystallia (transclusion) (← links | edit)
- The Shattered Lens (transclusion) (← links | edit)
- Allomancy (transclusion) (← links | edit)
- Atium (transclusion) (← links | edit)
- Daora (transclusion) (← links | edit)
- Daorn (transclusion) (← links | edit)
- Kaise (transclusion) (← links | edit)
- Lukel (transclusion) (← links | edit)
- Adien (transclusion) (← links | edit)
- Kelsier (transclusion) (← links | edit)
- Marsh (transclusion) (← links | edit)
- Mare (transclusion) (← links | edit)
- Vin (transclusion) (← links | edit)
- Dockson (transclusion) (← links | edit)
- Hammond (transclusion) (← links | edit)
- Edgard Ladrian (transclusion) (← links | edit)
- Spook (transclusion) (← links | edit)
- Cladent (transclusion) (← links | edit)
- Sazed (transclusion) (← links | edit)
- Yeden (transclusion) (← links | edit)
- Rashek (transclusion) (← links | edit)
- Teven Renoux (transclusion) (← links | edit)
- Shan Elariel (transclusion) (← links | edit)
- Elend Venture (transclusion) (← links | edit)
- Straff Venture (transclusion) (← links | edit)
- TenSoon (transclusion) (← links | edit)
- Allrianne Cett (transclusion) (← links | edit)
- Tindwyl (transclusion) (← links | edit)
- Alendi (transclusion) (← links | edit)
- Felt (transclusion) (← links | edit)
- Zane Venture (transclusion) (← links | edit)
- Ati (transclusion) (← links | edit)
- Ruin (transclusion) (← links | edit)
- Preservation (transclusion) (← links | edit)
- Vasher (transclusion) (← links | edit)
- Sisirinah (transclusion) (← links | edit)
- Vivenna (transclusion) (← links | edit)
- Lightsong (transclusion) (← links | edit)
- Denth (transclusion) (← links | edit)
- Susebron (transclusion) (← links | edit)
- Nightblood (transclusion) (← links | edit)
- Llarimar (transclusion) (← links | edit)
- Tonk Fah (transclusion) (← links | edit)
- Szeth (transclusion) (← links | edit)
- Jezrien (transclusion) (← links | edit)
- Kalak (transclusion) (← links | edit)
- Talenel (transclusion) (← links | edit)
- Kaladin (transclusion) (← links | edit)
- Shallan Davar (transclusion) (← links | edit)
- Jasnah Kholin (transclusion) (← links | edit)
- Sylphrena (transclusion) (← links | edit)
- Ishikk (transclusion) (← links | edit)
- Torol Sadeas (transclusion) (← links | edit)
- Adolin Kholin (transclusion) (← links | edit)
- Renarin Kholin (transclusion) (← links | edit)
- Gavilar Kholin (transclusion) (← links | edit)
- Tien (transclusion) (← links | edit)
- Meridas Amaram (transclusion) (← links | edit)
- Teft (transclusion) (← links | edit)
- Taravangian (transclusion) (← links | edit)
- Kabsal (transclusion) (← links | edit)
- Lirin (transclusion) (← links | edit)
- Hesina (transclusion) (← links | edit)
- Toralin Roshone (transclusion) (← links | edit)
- Moash (transclusion) (← links | edit)
- Navani Kholin (transclusion) (← links | edit)
- 17thshard.com (transclusion) (← links | edit)
- Elhokar Kholin (transclusion) (← links | edit)
- Kharbranth (transclusion) (← links | edit)
- Shardblade (transclusion) (← links | edit)
- Roshar (transclusion) (← links | edit)
- Hemalurgy (transclusion) (← links | edit)
- Steel Ministry (transclusion) (← links | edit)
- Steel Inquisitor (transclusion) (← links | edit)
- Koloss (transclusion) (← links | edit)
- Kandra (transclusion) (← links | edit)
- Awakening (transclusion) (← links | edit)
- Order of Windrunners (transclusion) (← links | edit)
- Cosmere (transclusion) (← links | edit)
- Shinovar (transclusion) (← links | edit)
- Honor (transclusion) (← links | edit)
- Cultivation (transclusion) (← links | edit)
- Nightwatcher (transclusion) (← links | edit)
- Axies (transclusion) (← links | edit)
- Vorinism (transclusion) (← links | edit)
- Herald (transclusion) (← links | edit)