Template:Building: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<infobox> <title source="title"> <default>{{PAGENAME}}</default> </title> <image source="image"> <default>{{PAGENAME}}.png</default> <caption source="description" /> </image> <group> <header>Information</header> <data source="source"> <label>Source</label><default>Carpenter</default> </data> <data source="cost"> <label>Cost</label><default>{{cost|coin=100|wood=100|stone=100|bronzebar=1}}</default></data> <data source="...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<infobox> | <includeonly><infobox> | ||
<title source="title"> | <title source="title"> | ||
<default>{{PAGENAME}}</default> | <default>{{PAGENAME}}</default> | ||
</title> | </title> | ||
<image source="image"> | <image source="image"> | ||
<default>{{PAGENAME}} | <default>[[File:{{PAGENAME:{{{image}}}}}|300px]]</default> | ||
<caption source="description" /> | <caption source="description" /> | ||
</image> | </image> | ||
<group> | <group> | ||
<header>Information</header> | <header>Information</header> | ||
<data source="type"> | |||
<label> | <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> | ||
<data source="source"> | |||
<label> | <label>Source</label> | ||
</data> | |||
<label>Size</label>< | <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> | </data> | ||
</group> | </group> | ||
</infobox> | </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 |