Template:Infobox/doc: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<div style="background: #c8f0de; border: 5px dotted #fff;"> | |||
This template is essentially a table that contains information about an element of the game. More specifically, it's about the template on the page [[Template:Infobox]]. | This template is essentially a table that contains information about an element of the game. More specifically, it's about the template on the page [[Template:Infobox]]. | ||
Line 36: | Line 37: | ||
| is_renewable || If this resource is renewable. | | is_renewable || If this resource is renewable. | ||
|} | |} | ||
<!-- If you see this Bilka, I didn't copy you. I swear. --> | |||
</div> |
Revision as of 04:19, 12 May 2021
This template is essentially a table that contains information about an element of the game. More specifically, it's about the template on the page Template:Infobox.
Use
To use this template, it must be placed before the main text of a page. It must start with {{Infobox
and end with two curly brackets, }}
. The infobox, by default, will be aligned to the right of the page, with the page's text tightly wrapping around it. This is because the infobox is a wikitable using the float: left
CSS property. The infobox must be entered in the page with the proper format, which is shown here:
{{Infobox |title = Resource |caption = Caption |image = [[File:image.jpg]] |icon = [[File:image.jpg]] |cost = 15 |health = 100 |armor = 100 |weapons = N/A }}
Note that the above text is just an example, as this wiki will have different infoboxes and templates, will contain different values than what was shown. This can be seen by viewing the template under the "Edit source" or "View source" functions.
Parameter | Value |
---|---|
title | Title or name of the main subject of the page/infobox. |
caption | Optional caption of the image. |
image | Image of the page's topic. |
icon | Small icon of the resource. |
cost | Trading cost of the resource. |
is_for_building | If this resource is used for building. |
is_renewable | If this resource is renewable. |