14,089
edits
m (fixed description) |
m |
||
(7 intermediate revisions by 2 users not shown) | |||
ARTIST: --><div class="attribution">by <page-property key="{{{attribute|artist}}}" page="File:{{{1}}}" no-value="{{missing artist|marker=an unknown artist}}" /></div><!--
CAPTION: --> {{#if:{{{2|}}}|{{{2}}}|}} <!--
LINK: -->{{#if:{{{link|}}}|{{!}}link={{{link}}}}}<!--
ALT TEXT: -->|alt=<page-property key="alt" page="File:{{{1}}}" no-value="" /><!--
-->]]</includeonly><noinclude>[[category: templates|{{PAGENAME}}]]
This template should be used on pages to include a thumbnail of an image on a page.
; Usage: {{t|{{lc:{{PAGENAME}}|}}|file-name.
The file name
<pre>
{{image|
|side=center
|width=100px
|attribute=artist
|link=[[File:file-name.extension]]
}}
</pre>
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).
{| class="wikitable" style="width: 100%"
|-
|style="text-align: center;"| ''none'' || when only the file name is passed
| <pre>{{image|
| {{image|cosmere symbol.svg}}
|-
|style="text-align: center;"| ''caption'' || when only the file name and caption are passed
| <pre>{{image|
|
|-
|style="text-align: center;"| <code>side=left</code> || pushes the image over to the left, and allows the page to flow around it
| <pre>{{image|
| {{image|cosmere symbol.svg|side=left|this is the caption}}
|-
|style="text-align: center;"| <code>side=right</code> || pushes the image over to the right, and allows the page to flow around it
| <pre>{{image|
| {{image|cosmere symbol.svg|side=right|this is the caption}}
|-
|style="text-align: center;"| <code>attribute=art-tracer</code><br />or<br /><code>attribute=art-modified</code> || changes the attribution of the image to the "tracer" of the image or the person who modified it instead of the original artist.
| <pre>{{image|
| {{image|cosmere symbol.svg|attribute=art-tracer|this is the caption}}
|-
|style="text-align: center;"| <code>width=20%</code> || changes the width of the image
| <pre>{{image|
| {{image|cosmere symbol.svg|width=200px|this is the caption}}
|-
|style="text-align: center;"| <code>height=20%</code> || changes the height of the image
| <pre>{{image|
| {{image|Navani's Ketek glyphs.svg|height=150px|The [[ketek]] "Alight, winds approach deadly approaching winds alight
|-
|style="text-align: center;"| <code>link=Cosmere</code> || makes the image link to a page instead of its File page
| <pre>{{image|cosmere symbol.svg|The cosmere symbol, with a link to [[cosmere]] instead of [[:File:cosmere symbol.svg]]|width=200px|link=cosmere}}</pre>
| {{image|cosmere symbol.svg|The cosmere symbol, with a link to [[cosmere]] instead of [[:File:cosmere symbol.svg]]|width=200px|link=cosmere}}
|}
|