Difference between revisions of "Template:Image"
Jump to navigation
Jump to search
(→Usage) |
|||
Line 1: | Line 1: | ||
− | |||
<noinclude>''For better image thumbnails.'' | <noinclude>''For better image thumbnails.'' | ||
---- | ---- | ||
Line 7: | Line 6: | ||
<div style="float:{{{float|mid}}}; padding:{{{pad|0px}}}"> | <div style="float:{{{float|mid}}}; padding:{{{pad|0px}}}"> | ||
{|style="background-color: transparent;" | {|style="background-color: transparent;" | ||
− | |[[Image:{{{name|2value_logo}}}.{{{ext| | + | |[[Image:{{{name|2value_logo}}}.{{{ext|png}}}|{{{width|64px}}}|link={{{ilink|<noinclude>This is an example of a link.</noinclude>}}}]] |
|- | |- | ||
|<div style="width:{{{width|64px}}}; font-size:70%;line-height:1em;">{{{caption|<noinclude>This is an example of a caption.</noinclude>}}}</div> | |<div style="width:{{{width|64px}}}; font-size:70%;line-height:1em;">{{{caption|<noinclude>This is an example of a caption.</noinclude>}}}</div> | ||
Line 19: | Line 18: | ||
Gecopieerd van de [http://ts.wikipedia.org/wiki/Template:Image Wikipedia Image-template]; uitgebreid met ilink en ext parameter door Henk van Cann, dd 1 nov 2010. | Gecopieerd van de [http://ts.wikipedia.org/wiki/Template:Image Wikipedia Image-template]; uitgebreid met ilink en ext parameter door Henk van Cann, dd 1 nov 2010. | ||
+ | ===Defaults=== | ||
+ | :1. Als er geen image wordt gevonden dan het 2Value-logo | ||
+ | :2. ''png'' is default filenaam extensie van de image | ||
+ | :3. ''64px'' is de defaultgrootte van het symbool | ||
+ | :4. padding is 0 | ||
+ | :5. float is ''mid'' | ||
+ | :6. caption is default ''leeg'' | ||
+ | :7. link is default ''leeg'' | ||
+ | |||
+ | ===Voorbeeld aanroep=== | ||
<pre> | <pre> | ||
{{image|name=myimage|ext=png|width=200px|pad=10px|ilink=A link|caption=A caption|float=mid}} | {{image|name=myimage|ext=png|width=200px|pad=10px|ilink=A link|caption=A caption|float=mid}} | ||
+ | |||
+ | {{image|name=2Value_logo|ext=png|width=64|pad=0px|ilink=|caption=|float=mid}} | ||
+ | ::is gelijk aan deze aanroep | ||
+ | {{image}} | ||
+ | |||
+ | |||
</pre> | </pre> | ||
</noinclude> | </noinclude> |
Revision as of 22:40, 1 November 2010
For better image thumbnails.
Usage
Gecopieerd van de Wikipedia Image-template; uitgebreid met ilink en ext parameter door Henk van Cann, dd 1 nov 2010.
Defaults
- 1. Als er geen image wordt gevonden dan het 2Value-logo
- 2. png is default filenaam extensie van de image
- 3. 64px is de defaultgrootte van het symbool
- 4. padding is 0
- 5. float is mid
- 6. caption is default leeg
- 7. link is default leeg
Voorbeeld aanroep
{{image|name=myimage|ext=png|width=200px|pad=10px|ilink=A link|caption=A caption|float=mid}} {{image|name=2Value_logo|ext=png|width=64|pad=0px|ilink=|caption=|float=mid}} ::is gelijk aan deze aanroep {{image}}