Template:Infobox building/doc

From Songs of Syx Wiki
Revision as of 22:23, 21 November 2021 by Zippy (talk | contribs) (Created page with "{{documentation |This infobox template is used for - you guessed it - buildings. |To use this template, it must be placed ''before'' the main text of a page. It must start with <code>{{Infobox</code> and end with two curly brackets, <code>}}</code>. 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 <code>float: left</code> CSS property. The infobox must...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template Documentation

Description

This infobox template is used for - you guessed it - buildings.

Syntax

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_building
|title = Name of building.
|image = Image of building.
|caption = Caption (jokingly) explaining the image.
|icon = Small icon of the building when selecting it in-game.
|cost = Cost of creating the building, which goes by resource cost per number of tiles.
|building_type = Category of building.
|subtype = Sub category of building.
|noise = Yes/No
|components = Individual components needed to complete the building (some may be optional).
|expandable = If the building can be freely expanded or shrunk by the player.
|comp_req = Resources needed to make extra components for said building, which goes by resource cost per component.
|input = Which resources are used in production for this building.
|output = Which resources are created from this building.
|percent = (CURRENTLY UNUSED) The percentage of input resources compared to the output resources. For example, 50% would mean 2 resources would be needed to make 1 unit of another resource.
}}

Note: When placing this infobox, make sure ALL parameters are there, even if you're leaving them blank. The parameters above "input" are required, meaning if they are not assigned something, they will output something like {{{something}}} if left empty. That looks messy and unattractive for this wiki. We don't want that.

Examples

No example needed. The template can be easily seen on this page.