Difference between revisions of "Template:Infobox building"
Jump to navigation
Jump to search
Margotbean (talk | contribs) |
Margotbean (talk | contribs) (allow for 2 images for Gold Clock page) |
||
Line 3: | Line 3: | ||
|colspan="2" id="infoboxheader"|{{{name|{{PAGENAME}}}}} | |colspan="2" id="infoboxheader"|{{{name|{{PAGENAME}}}}} | ||
|- | |- | ||
− | |colspan="2" style="padding-bottom: {{#ifeq:{{Description|{{PAGENAME}}}}| |0|5px}};"|[[File:{{{image|}}}|center|{{#if:{{{width|}}}|{{{width|}}}|}}]] | + | |colspan="2" style="padding-bottom: {{#ifeq:{{Description|{{PAGENAME}}}}| |0|5px}}; text-align: center;"|[[File:{{{image|}}}{{#if:{{{image2|}}}||{{!}}center}}|{{#if:{{{width|}}}|{{{width|}}}|}}]]{{#if:{{{image2|}}}| [[File:{{{image2|}}}{{!}}{{#if:{{{width|}}}|{{{width|}}}|}}]]|}} |
|- | |- | ||
|colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | |colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | ||
Line 26: | Line 26: | ||
|id="infoboxdetail" style="text-align: center;"| {{#if:{{{sizehv|}}} |'''{{{sizehv|}}}'''<br />[[File:Marker{{{size|}}}.png|{{{size|}}}|center]] | [[File:Marker{{{size|}}}.png|{{{size|}}}|center]]}} | |id="infoboxdetail" style="text-align: center;"| {{#if:{{{sizehv|}}} |'''{{{sizehv|}}}'''<br />[[File:Marker{{{size|}}}.png|{{{size|}}}|center]] | [[File:Marker{{{size|}}}.png|{{{size|}}}|center]]}} | ||
|- | |- | ||
− | |}</div>{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | + | |}</div>{{InfoboxSEO}}</includeonly><noinclude> |
+ | {{Infobox building | ||
+ | |name = Gold Clock | ||
+ | |image = Gold Clock.png | ||
+ | |image2 = Gold Clock Off.png | ||
+ | |width = 100px | ||
+ | |cost = {{price|10000000}} | ||
+ | |size = 3x2 | ||
+ | |sizehv = 3x2 | ||
+ | |materials = None | ||
+ | }} | ||
+ | {{{{FULLPAGENAME}}/doc}}</noinclude> |
Revision as of 22:31, 21 July 2024
Description
This template displays an infobox for farm buildings. Do not use this on your user page. It is reserved for content pages.
Parameters
Parameter | Notes |
---|---|
name | Building name |
image | Image name, minus File: |
image2 | Second image name, minus File: |
description | Building description, if one exists. Automatically populated by Template:Description if omitted. |
cost | Cost of building construction (gold) |
materials | Materials required for building construction |
animals | A list of the animals able to stay in this building, if applicable |
capacity | The maximum number of animals storable in this building, if applicable |
size | The size of the building (this requires that you know the name of the image used; some use width x height and some use height x width) |
sizehv | The size of the building in format horizontal x vertical (optional) |