Template:Image/doc: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Russell D. Jones
(Created Page)
 
imported>Russell D. Jones
(→‎Example: fixed syntax)
 
Line 22: Line 22:
=== Example ===
=== Example ===
<pre>{{Image|Classical elements.png|center|250px|A graphical representation of the Aristotelian elements}}</pre>
<pre>{{Image|Classical elements.png|center|250px|A graphical representation of the Aristotelian elements}}</pre>
{{Image|Classical elements.png |center |250px|A graphical representation of the Aristotelian elements}}
{{Image|Classical elements.png|center|250px|A graphical representation of the Aristotelian elements}}

Latest revision as of 06:27, 29 June 2010

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}}
CC Image
A graphical representation of the Aristotelian elements