Template:Image: Difference between revisions
imported>Chris Day No edit summary |
imported>Caesar Schinas mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[[Image:{{{1}}}|{{{2|right}}}|thumb|{{{3|200px}}}|{{Credit|{{{1}}}}}{{{4|}}}]]</includeonly><noinclude> | <includeonly>[[Image:{{{1}}}|{{{2|right}}}|thumb|{{{3|200px}}}|{{Credit|{{{1}}}}}{{{4|}}}]]</includeonly><noinclude>{{TlDoc}}</noinclude> | ||
{{TlDoc}}</noinclude> |
Latest revision as of 05:08, 26 June 2009
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}}