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
Updated documentation. Should probably give more examples... Oh well. |
mNo edit summary |
||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
{{T|image|imagewidth|imageheight|collection|header1|label1|data1|header2..10|label2..10|data2..10}} | {{T|Infobox|image|imagewidth|imageheight|caption|collection|header1|label1|data1|header2..10|label2..10|data2..10}} | ||
== Parameters == | == Parameters == | ||
| Line 49: | Line 49: | ||
== Example == | == Example == | ||
<pre>{{Infobox|name= | <pre>{{Infobox | ||
|name=[[New Britannia]] | |||
|image=New Britannia Coat of Arms.png | |||
|backgroundcolor =0000 | |||
|imagewidth=300 | |||
|caption=[[New Britannia Coat of Arms]] | |||
|header=HEADER 1 | |||
|label1=LABEL 1 | |||
|data1=DATA 1 | |||
}}</pre> | |||
{{Infobox|name= | {{Infobox | ||
|name=[[New Britannia]] | |||
|image=New Britannia Coat of Arms.png | |||
|backgroundcolor =0000 | |||
|imagewidth=300 | |||
|caption=[[New Britannia Coat of Arms]] | |||
|caption2=Optional second caption area | |||
|header=HEADER 1 | |||
|label1=LABEL 1 | |||
|data1=DATA 1 | |||
}} | |||
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | <noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | ||
Latest revision as of 05:49, 6 August 2023
Purpose[edit]
This template may be used for adding simple infobox with only an image.
Usage[edit]
{{Infobox|<image>|<imagewidth>|<imageheight>|<caption>|<collection>|<header1>|<label1>|<data1>|<header2..10>|<label2..10>|<data2..10>}}
Parameters[edit]
| 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[edit]
{{Infobox
|name=[[New Britannia]]
|image=New Britannia Coat of Arms.png
|backgroundcolor =0000
|imagewidth=300
|caption=[[New Britannia Coat of Arms]]
|header=HEADER 1
|label1=LABEL 1
|data1=DATA 1
}}
| File:New Britannia Coat of Arms.png New Britannia Coat of Arms | |
| LABEL 1 | DATA 1 |