Template:Building: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Adapting from the fandom wiki's Template:Infobox equipment.) |
||
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> | |||
<header>{{icon|Crafting mainico|link=Crafting|notext=1}}[[Crafting| In-menu Crafting]]</header> | |||
<data source="craft"> | |||
<label>Recipe</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}}</noinclude> |
Revision as of 07:40, 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}} }}