Diferencia entre revisiones de «Plantilla:Image»

De La Coppermind
Ir a la navegación Ir a la búsqueda
m (missing letter)
(See if that fixes artist attributions)
Línea 4: Línea 4:
 
STYLE:-->|thumb|{{{side|center}}}|{{#if:{{{height|}}}|x{{{height}}}|{{{width|100px}}}|}}<!--
 
STYLE:-->|thumb|{{{side|center}}}|{{#if:{{{height|}}}|x{{{height}}}|{{{width|100px}}}|}}<!--
 
-->|<!--
 
-->|<!--
ARTIST: --><div class="attribution">by <page-property key="{{{attribute|artist}}}" page="File:{{{1}}}" no-value="{{missing artist|marker=an unknown artist}}" /></div><!--
+
ARTIST: --><div class="attribution">by <page-property key="{{{attribute|artist}}}" page="en:File:{{{1}}}" no-value="{{missing artist|marker=an unknown artist}}" /></div><!--
 
CAPTION: --> {{#if:{{{2|}}}|{{{2}}}|}} <!--
 
CAPTION: --> {{#if:{{{2|}}}|{{{2}}}|}} <!--
 
LINK: -->{{#if:{{{link|}}}|{{!}}link={{{link}}}}}<!--
 
LINK: -->{{#if:{{{link|}}}|{{!}}link={{{link}}}}}<!--

Revisión del 15:09 5 ene 2022


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 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).

Usage Examples
Parameter Description Code Example
none when only the file name is passed
{{image|cosmere symbol.svg}}
by ERROR: page 'en:File:cosmere symbol.svg' does not exist
caption when only the file name and caption are passed
{{image|cosmere symbol.svg|this is the caption}}
by ERROR: page 'en:File:cosmere symbol.svg' does not exist
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}}
by ERROR: page 'en:File:cosmere symbol.svg' does not exist
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}}
by ERROR: page 'en:File:cosmere symbol.svg' does not exist
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}}
by ERROR: page 'en:File:cosmere symbol.svg' does not exist
this is the caption
width=20% changes the width of the image
{{image|cosmere symbol.svg|width=200px|this is the caption}}
by ERROR: page 'en:File:cosmere symbol.svg' does not exist
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]]}}
by ERROR: page 'en:File:Navani's Ketek glyphs.svg' does not exist
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}}
by ERROR: page 'en:File:cosmere symbol.svg' does not exist
The cosmere symbol, with a link to cosmere instead of File:cosmere symbol.svg
Notes
The height parameter overrides the width parameter. If exact dimensions are required pass width=WxHpx where W is the width & H is the height.

Articles using Template