Template:Infobox/image

Semantic Stargate Wiki — The semantic reference regarding the Stargate universe.
Jump to navigation Jump to search
Documentation icon Template documentation [edit] [history] [purge]

This is the {{Infobox/image}} documentation page.

Usage[edit source]

This template is used to build an infobox from bricks. The {{Infobox/image}} is used to add an image inside an infobox.

Syntaxe[edit source]

Copy/paste the following inside the infobox template:

{{Infobox/starbox}}
{{Infobox/image|image name|legend|size in px|alternate text|colspan value|Link}}
{{Infobox/endbox}}

Parameters[edit source]

Parameter #1
Used to put the image file inside the infobox as for an example {{Infobox/image|myimage.jpg}}.
Parameter #2
Used to put a legend below the image as for an example {{Infobox/image|myimage.jpg|overview of the 1904's boat}}. If the parameter is null, no legend appears.
Parameter #3
Used to set the image size in pixel units. You don't have to add the "px" unit, just the number as for an example {{Infobox/image|myimage.jpg|overview of the 1904's boat|100}}. The default size is 280px. This template forbids the use of size values above 280px.
Parameter #4
Used to set an alternate text on the image when the mouse is still above it as for an example {{Infobox/image|myimage.jpg|overview of the 1904's boat|100|Image showing this}}. The default alternate text is "Illustration of the {{PAGENAME}} article".
Parameter #5
Used to modify the subtitle colspan value as for example {{Infobox/image|myimage.jpg|overview of the 1904's boat|100|Image showing this|3}}. The default colspan value is 2.
Parameter #6
Used to add a web link on the image as for an example {{Infobox/image|myimage.jpg|overview of the 1904's boat|100|Image showing this|3|http://www.google.com}}.

Examples[edit source]

Simple example[edit source]

Title
A full plate of home made chouquettes.
Home made chouquettes.
{{Infobox/startbox}}
{{Infobox/title|Title}}
{{Infobox/image|Chouquette.jpg|Home made chouquettes.|280|A full plate of home made chouquettes.}}
{{Infobox/endbox}}

Example inside a template[edit source]

{{Infobox/starbox}}
{{Infobox/title
 | Title
}}
{{Infobox/image
 | {{{image|}}}|{{{legend|}}}|280|Image showing this
}}
{{Infobox/endbox}}

See also[edit source]