Thank you for visiting SotAwiki, a Shroud of the Avatar Wiki Encyclopedia. If you see any information that is outdated, please take the time to update it, or if you prefer, leave a message for other editors. This community wiki is for the benefit of all Avatars!
Template:Infobox/doc: Difference between revisions
Jump to navigation
Jump to search
m →Example: Changed category. |
Updated documentation. Should probably give more examples... Oh well. |
||
| Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
{| | {{T|image|imagewidth|imageheight|collection|header1|label1|data1|header2..10|label2..10|data2..10}} | ||
| | |||
== Parameters == | == Parameters == | ||
| Line 23: | Line 19: | ||
| imagewidth ''(optional)'' | | imagewidth ''(optional)'' | ||
| Width of the image in pixels. Default is 250. | | Width of the image in pixels. Default is 250. | ||
|- | |||
| imageheight ''(optional)'' | |||
| Height of the image in pixels. | |||
|- | |||
| caption ''(optional)'' | |||
| Caption for image | |||
|- | |||
| collection | |||
| Images that has a matching [[Property:has image collection]]. | |||
|- | |||
| header1 ''(optional)'' | |||
| header that appears above label1 | |||
|- | |||
| label1 ''(optional)'' | |||
| label for a row. Only appears if there is also data1. | |||
|- | |||
| data1 ''(optional)'' | |||
| data for a row. | |||
|- | |||
| header2..10 ''(optional)'' | |||
| 9 more headers. Same as header1. | |||
|- | |||
| label2..10 ''(optional)'' | |||
| 9 more labels. Same as label1. | |||
|- | |||
| header2..10 ''(optional)'' | |||
| 9 more datas. Same as data1. | |||
|} | |} | ||
Revision as of 23:29, 31 July 2014
Purpose
This template may be used for adding simple infobox with only an image.
Usage
{{image|<imagewidth>|<imageheight>|<collection>|<header1>|<label1>|<data1>|<header2..10>|<label2..10>|<data2..10>}}
Parameters
| Parameter | Explanation |
|---|---|
| name (optional) | The title displayed at the caption of the infobox. Default is page name. |
| image (optional) | The name of the image file (if there is any) together with its extension. |
| imagewidth (optional) | Width of the image in pixels. Default is 250. |
| imageheight (optional) | Height of the image in pixels. |
| caption (optional) | Caption for image |
| collection | Images that has a matching Property:has image collection. |
| header1 (optional) | header that appears above label1 |
| label1 (optional) | label for a row. Only appears if there is also data1. |
| data1 (optional) | data for a row. |
| header2..10 (optional) | 9 more headers. Same as header1. |
| label2..10 (optional) | 9 more labels. Same as label1. |
| header2..10 (optional) | 9 more datas. Same as data1. |
Example
{{Infobox|name=Codex|image=Daedalus_small.jpg|imagewidth=300}}
| File:Daedalus small.jpg |