Template:Image: Difference between revisions
imported>Stephen Ewen No edit summary |
imported>Chris Day No edit summary |
||
Line 1: | Line 1: | ||
< | <includeonly>[[Image:{{{1}}}|{{{2|right}}}|thumb|{{{3|200px}}}|{{Credit|{{{1}}}}}{{{4|}}}]]</includeonly><noinclude> | ||
<pre>[[Image:{{{1}}}|{{{2|right}}}|thumb|{{{3|200px}}}|{{Credit|{{{1}}}}}{{{4|}}}]]</pre> | |||
{{TlDoc}}</noinclude> |
Revision as of 12:30, 9 November 2008
[[Image:{{{1}}}|{{{2|right}}}|thumb|{{{3|200px}}}|{{Credit|{{{1}}}}}{{{4|}}}]]
This template is to be used for inserting images in the Citizendium. Please use this template instead of the image insertion coding.
This template will automatically insert a credit line into the image, if the credit subpage of the image was created.
Usage
When inserting an image use the following code
{{Image|image name|position|size|caption}}
Image Name:This is the page name of the image. Do not include namespace. So, "Classical elements.png" not "Image:Classical elements.png."
Position: acceptable values are "right", "left", "center"
Size: use a numeric pixel value followed by "px" without spaces. So "250px" not "250 px". Percentage values may work but I haven't tested it.
Caption: any text in the last field is inserted as is. Piped links may have to use the pipe substitution template {{!}}.
Known Quirks
Spaces before pipe characters will short-circuit the code and block some of the functionality. See Template:Image/Issues.
Example
{{Image|Classical elements.png|center|250px|A graphical representation of the Aristotelian elements}}