Template:Infobox building: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable floatright" style="border: 0px solid #000; border-right: 5px solid #7a9978; margin-left: 10px; margin-background:#D1B9AB; border-top-left-radius: 50px;"
{| class="wikitable" style="float: right; box-shadow: 3px 3px 3px #0009; border: 0px solid #000; border-right: 5px solid #869d94; margin-left: 10px; margin-top: 2px; background:#D1B9AB; border-top-left-radius: 50px;"
! colspan="2" style="border: 0px solid #000; background:#214D1E; width:100px; color: #fff; font-size:10pt; border-top-left-radius: 30px;" | {{{title}}}
! colspan="2" style="border: 0px solid #000; background:#1E4D39; width:100px; color: #fff; font-size:10pt; border-top-left-radius: 15px;" | {{shadow|{{{title}}}|#00000091}}
|-
|-
| colspan="2" style="text-align:center; font-size:7pt; background-color:#1A2419;" | {{{image}}}
| colspan="2" style="text-align:center; font-size:7pt; background-color:#19241D; padding: 5px;" | {{{image}}}
|-
|-
| colspan="2" style="text-align:center; font-size:7pt; background-color: #173315;" | {{{caption}}}
| colspan="2" style="text-align:center; font-size:7pt; background-color: #153322;" | {{{caption}}}
|-
|-
| colspan="2" style="background:#214D1E; width:90px; color: #fff; font-size:10pt; text-align:center;" | <small>'''Building Information'''</small>
| colspan="2" style="background:#1E4D3E; width:90px; color: #fff; font-size:10pt; text-align:center;" | <small>'''Building Information'''</small>
|-
|-
| style="font-size:9pt; background:#426C3F;" | '''Icon''' || style="font-size:9pt; background-color: #587B56;" | {{{icon}}}
| style="font-size:9pt; background:#396254;" | {{shadow|'''Icon'''|#00000091}} || style="font-size:9pt; background-color: #567B6B;" | {{{icon}}}
|-
|-
| style="font-size:9pt; background:#426C3F;" | {{tooltip|'''Building cost'''|Does NOT count walls unless stated otherwise. These numbers are the rough estimate cost and are not exact. A hyphen mean a building costs exactly the number. A times symbol means the cost is one resource per X number of tiles. A plus means a building costs that amount by default and at the smallest size, the next number is the cost of resource per X number of tiles when expanded any farther. A long hyphen means &quot;give or take&quot; some resources.}} || style="font-size:9pt; background-color: #587B56;" | {{{cost}}}
| style="font-size:9pt; background:#396254;" | {{tooltip|{{shadow|'''Building cost'''|#00000091}}|Does NOT count walls unless stated otherwise. These numbers are the rough estimate cost and are not exact. A hyphen mean a building costs exactly the number. A times symbol means the cost is one resource per X number of tiles. A plus means a building costs that amount by default and at the smallest size, the next number is the cost of resource per X number of tiles when expanded any farther. A long hyphen means &quot;give or take&quot; some resources.}} || style="font-size:9pt; background-color: #567B6B;" | {{{cost}}}
|-
|-
| style="font-size:9pt; background:#426C3F; width:100px;" | '''Building type''' || style="font-size:9pt; background-color: #587B56;" | {{{building_type}}}
| style="font-size:9pt; background:#396254; width:100px;" | {{shadow|'''Category'''|#00000091}} || style="font-size:9pt; background-color: #567B6B;" | {{{building_type}}}
|-
|-
| style="font-size:9pt; background:#426C3F;" | '''Components''' || style="font-size:9pt; background-color: #587B56;" | {{{components}}}
| style="font-size:9pt; background:#396254; width:100px;" | {{shadow|'''Sub-category'''|#00000091}} || style="font-size:9pt; background-color: #567B6B;" | {{{subtype}}}
|-
|-
| style="font-size:9pt; background:#426C3F;" | '''Expandable?''' || style="font-size:9pt; background-color: #587B56;" | {{{expandable}}}
| style="font-size:9pt; background:#396254; width:100px;" | {{shadow|'''Produces noise?'''|#00000091}} || style="font-size:9pt; background-color: #567B6B;" | {{{noise}}}
|-
|-
| style="font-size:9pt; background:#426C3F;" | {{tooltip|'''Component Requirements'''|Approximate cost of resources per X number of components. If stated, the component cost will be written by &quot;per tiles&quot; instead. If a plus is seen, this means the cost starts at the first number when the component is at the smallest size, and the second number means the resource cost will go up for every size or tile after that when expanded. A long hyphen means &quot;give or take&quot; some resources.}} || style="font-size:9pt; background-color: #587B56;" | {{{comp_req}}}
| style="font-size:9pt; background:#396254;" |{{shadow|'''Components'''|#00000091}} || style="font-size:9pt; background-color: #567B6B;" | {{{components}}}
|-
|-
| colspan="2" style="background:#214D1E; width:90px; color: #fff; font-size:10pt; text-align:center;" | <small>'''Production Information'''</small>
| style="font-size:9pt; background:#396254;" | {{shadow|'''Expandable?'''|#00000091}} || style="font-size:9pt; background-color: #567B6B;" | {{{expandable}}}
|-
|-
| style="font-size:9pt; background:#426C3F;" | {{tooltip|'''Input'''|Resource(s) used for production of another.}} || style="font-size:9pt; background-color: #587B56;" | {{#if:{{{input}}}|{{{input}}}|<span style="color: #ffffff8a;">None</span>}}
| style="font-size:9pt; background:#396254;" | {{tooltip|{{shadow|'''Component Requirements'''|#00000091}}|Approximate cost of resources per X number of components. If stated, the component cost will be written by &quot;per tiles&quot; instead. If a plus is seen, this means the cost starts at the first number when the component is at the smallest size, and the second number means the resource cost will go up for every size or tile after that when expanded. A long hyphen means &quot;give or take&quot; some resources. A vertical bar means the amount of extra resources needed when increasing the size of a component will suddenly change numbers, depending on what's among the vertical bars. For example, 1 + 2&vert;3&vert;5 means a component cost starts at 1, then increases by 2 when expanding it, then 3 and then 5 - depending on how far the component is expanded.}} || style="font-size:9pt; background-color: #567B6B;" | {{{comp_req}}}
|-
|-
| style="font-size:9pt; background:#426C3F;" | {{tooltip|'''Output'''|The resource(s) this building is meant to create. Some buildings don't require any input, as resource output is based on the amount of employees working and/or building size.}} || style="font-size:9pt; background-color: #587B56;" | {{#if:{{{output}}}|{{{output}}}|<span style="color: #ffffff8a;">None</span>}}
| colspan="2" style="background:#1E4D3E; width:90px; color: #fff; font-size:10pt; text-align:center;" | <small>'''Production Information'''</small>
|-
| style="font-size:9pt; background:#3F6C5D;" | {{tooltip|{{shadow|'''Input'''|#00000091}}|Resource(s) used for production of another.}} || style="font-size:9pt; background-color: #567B6B; color:#ffbaba;" | {{#if:{{{input}}}|{{{input}}}|<span style="color: #ffffff8a;">None</span>}}
|-
| style="font-size:9pt; background:#3F6C5D;" | {{tooltip|{{shadow|'''Output'''|#00000091}}|The resource(s) this building is meant to create. Some buildings don't require any input, as resource output is based on the amount of employees working and/or building size.}} || style="font-size:9pt; background-color: #567B6B; color:#5cefff;" | {{#if:{{{output}}}|{{{output}}}|<span style="color: #ffffff8a;">None</span>}}
|}
|}
[[Category:Infobox page]]
[[Category:Infobox page]]
<noinclude>The documentation and help in relation to this infobox can be found [[Template:Infobox/doc|here]].
<noinclude>{{clear}}{{Infobox_building/doc}}[[Category:Templates]]</noinclude>
 
The format of this infobox works as shown below:<br />
<pre>{{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.
|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 = 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.
}}</pre>
 
''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 <nowiki>{{{something}}}</nowiki> if left empty.<br />That looks messy and unattractive for this wiki. We don't want that.''
[[Category:Templates]]
</noinclude>
<!-- fun hidden text!! -->
<!-- fun hidden text!! -->

Latest revision as of 18:33, 24 March 2024

{{{title}}}
{{{image}}}
{{{caption}}}
Building Information
Icon {{{icon}}}
Building cost {{{cost}}}
Category {{{building_type}}}
Sub-category {{{subtype}}}
Produces noise? {{{noise}}}
Components {{{components}}}
Expandable? {{{expandable}}}
Component Requirements {{{comp_req}}}
Production Information
Input {{{input}}}
Output {{{output}}}
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.