Difference between revisions of "Template:Building"
From A Wiki in the Desert
m |
m |
||
(123 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
| content = | | content = | ||
{{ #if:{{{location|}}} | | {{ #if:{{{location|}}} | | ||
− | {{#invoke:Infobox|stacked|Location| | + | {{#invoke:Infobox|stacked|Location|{{{location|}}} }} |
}} | }} | ||
{{ #if:{{{size|}}} | | {{ #if:{{{size|}}} | | ||
− | {{#invoke:Infobox|stacked|Size|{{{size|}}} }}{{#set: Has area={{{size}}}}} | + | {{#invoke:Infobox|stacked|Size| |
+ | {{{size|}}} }}{{#set: Has area={{{size}}}}} | ||
+ | }} | ||
+ | |||
+ | {{ #if:{{{capacity|}}} | | ||
+ | {{#invoke:Infobox|stacked|Storage Capacity| | ||
+ | {{{capacity|}}} }}{{#set: capacity={{{capacity}}}}} | ||
}} | }} | ||
{{ #if:{{{requirements|}}} | | {{ #if:{{{requirements|}}} | | ||
{{#invoke:Infobox|stacked|Requirements| | {{#invoke:Infobox|stacked|Requirements| | ||
− | {{{requirements|}}} | + | {{{requirements|}}} }} |
}} | }} | ||
+ | |||
+ | {{ #if:{{{cost|}}} | | ||
+ | {{#invoke:Infobox|stacked|Build Cost| | ||
+ | {{{cost|}}} }} | ||
}} | }} | ||
{{ #if:{{{material1|}}} | | {{ #if:{{{material1|}}} | | ||
− | {{#invoke:Infobox|tabulated|Cost to Build| | + | {{#invoke:Infobox|tabulated|Cost to Build|material|qty}} |
}} | }} | ||
}} | }} |
Latest revision as of 12:47, 3 June 2023
Template documentation (for the above template, sometimes hidden or invisible)
{{Building}} is for use in any article about an in-game "building". All parameters are optional and can be left blank, though it is preferred to include as many as possible; if undefined, these optional parameters will not appear as part of the template. The recommended image size is a width of 250px so that it will completely fill the infobox without increasing its size.
Template
{{Building | name = | image = | location = | size = | capacity = | requirements = }}
Usage
- name
- The name of the resource.
- image (optional)
- File name of an image for the resource. Should generally be a clean screenshot of the resource as it appears when dropped on the ground from a character's inventory. The recommended size is 250px but, if larger, the image should scale to fit the template.
- location (optional)
- The location or locations where the building can be constructed such as Compound, Outside, Small Construction Site, Medium Construction Site, etc.
- size (optional)
- The dimensions of the building when constructed inside a Compound.
- capacity (optional)
- The storage capacity of the building.
- requirements (optional)
- A list of any skills or technologies required to construct a building.
Example
Acid Bath |
---|
(Building) |
Location |
Compound |
Size |
5 x 3 |
Requirements |
Neutralization 0 (Technology) |
{{Building | name = Acid Bath | image = Acid Bath.png | location = [[where::Compound]] | size = {{Area | 5 | 3}} | capacity = | requirements = {{RequireTechnology | Neutralization | 0 }} }}
Visit Template:Building/doc to edit this text! (How does this work?)