Template:Building: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <includeonly><infobox> | ||
< | <title source="title"> | ||
< | <default>{{PAGENAME}}</default> | ||
< | </title> | ||
< | <image source="image"> | ||
<default>[[File:{{PAGENAME:{{{image}}}}}|300px]]</default> | |||
< | <caption source="description" /> | ||
< | </image> | ||
<group> | |||
< | <header>Information</header> | ||
< | <data source="type"> | ||
<label>Type</label><format>{{#switch:{{lc:{{{type|}}}}} | |||
< | | artisan | artisan eqipment = [[Artisan_Equipment|Artisan Equipment]] | ||
< | | resource | resources | resource processing = [[:Category:Resource processing equipment|Resource processing]] | ||
| producer | item producer | production | item production = [[:Category:Item production equipment|Item producer]] | |||
| farming = [[Farming]] equipment | |||
| ranching = [[Ranching]] equipment | |||
| farmbuilding = [[Farm Buildings|Farm Building]] | |||
</ | | #default = ''Unknown'' | ||
}}</format> | |||
</data> | |||
<data source="source"> | |||
<label>Source</label> | |||
</data> | |||
<data source="buy"> | |||
<label>Buy price</label> | |||
<format>{{g|{{{buy|}}}}}</format> | |||
</data> | |||
<data source="sell"> | |||
<label>Sell price</label> | |||
<format>{{#switch:{{lc:{{{sell|}}}}} | |||
| 0 = ''Unsellable'' | |||
| #default ={{g|{{{sell|}}}}} | |||
}}</format> | |||
</data> | |||
<data source="produces"> | |||
<label>Produces</label> | |||
</data> | |||
<data source="size"> | |||
<label>Size</label> | |||
</data> | |||
<data source="buildtime"> | |||
<label>Building time</label> | |||
</data> | |||
</group> | |||
<group> | |||
<data source="craft"> | |||
<label>Materials</label> | |||
</data> | |||
<data source="unlock"> | |||
<label>Unlocked by</label> | |||
</data> | |||
</group> | |||
</infobox>{{Namespace|main={{#switch:{{lc:{{{type|}}}}} | |||
| artisan | artisan eqipment = [[Category:Artisan equipment]] | |||
| resource | resources | resource processing = [[Category:Resource equipments]] | |||
| producer | item producer | production | item production = [[Category:Item production equipments]] | |||
| scarecrow | scarecrows = [[Category:Scarecrows]][[Category:Farming]] | |||
| fertilizer | fertilizers = [[Category:Fertilizer]][[Category:Farming]] | |||
| sprinkler = [[Category:Sprinkler]][[Category:Farming]] | |||
| farming = [[Category:Farming]] | |||
| farmbuilding = [[Category:Farm Buildings]] | |||
| ranching = [[Category:Ranching]] | |||
| others | other | misc = [[Category:Misc]] | |||
| #default = | |||
}}}} | |||
</includeonly><noinclude>{{Documentation|type=Infobox}}<templatedata> | |||
{ | |||
"params": { | |||
"type": {}, | |||
"source": {}, | |||
"produces": {}, | |||
"buildtime": {}, | |||
"craft": {}, | |||
"unlock": {}, | |||
"size": {} | |||
} | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 08:07, 22 December 2023
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
Main | Documentation | Usage |
Adds an infobox for buildings.
Syntax
{{Building
|type = farmbuilding
|source = Crafted, Carpenter etc.
|produces = TODO
|buildtime = X days
|craft = Crafting cost (use Template:cost)
|unlock = Unlock condition
|size = Size of building (WxH)
}}
Examples
{{Building |source=[[Carpenter]] |unlocked=Default |size=3x3 |image=File:780Silo.png |type=farmbuilding |buildtime=2 days |craft={{cost|coin=2,500|stone=300|resin=2|scrap=20}} }}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
type | type | no description | Unknown | optional |
source | source | no description | Unknown | optional |
produces | produces | no description | Unknown | optional |
buildtime | buildtime | no description | Unknown | optional |
craft | craft | no description | Unknown | optional |
unlock | unlock | no description | Unknown | optional |
size | size | no description | Unknown | optional |