Difference between revisions of "Template:Infobox building"

From Stardew Valley Wiki
Jump to navigation Jump to search
 
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<includeonly><div id="infoboxborder">
 
<includeonly><div id="infoboxborder">
 
{| class="location" id="infoboxtable"
 
{| class="location" id="infoboxtable"
|colspan=2 id="infoboxheader"|{{{name|}}}
+
|colspan="2" id="infoboxheader"|{{{name|{{PAGENAME}}}}}
 
|-
 
|-
|colspan=2 id="locationimg"|[[File:{{{image|}}}|center|50px]]
+
|colspan="2" style="padding-bottom: {{#ifeq:{{Description|{{PAGENAME}}}}|&nbsp;|0|5px}};"|[[File:{{{image|}}}|center|{{#if:{{{width|}}}|{{{width|}}}|}}]]
 +
|-
 +
|colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}
 +
|-
 +
|colspan="2" id="infoboxsection" style="text-align: center;"|Information
 
|-
 
|-
 
|id="infoboxsection"|Build cost:
 
|id="infoboxsection"|Build cost:
 
|id="infoboxdetail"|{{{cost|}}}
 
|id="infoboxdetail"|{{{cost|}}}
 +
|-
 
|id="infoboxsection"|Build materials:
 
|id="infoboxsection"|Build materials:
|id="infoboxdetail"|{{{materials|}}}
+
|id="infoboxdetail"|{{{materials|}}}<!--
{{#if:{{{upgrade|}}}|
+
-->{{#if:{{{animals|}}}|<nowiki />
 
{{!}}-
 
{{!}}-
{{!}}id="infoboxsection"{{!}}Upgrade:
+
{{!}}id="infoboxsection"{{!}}Animals:
{{!}}id="infoboxdetail"{{!}}{{{upgrade|}}}|}}
+
{{!}}id="infoboxdetail"{{!}}{{{animals|}}}|}}<!--
{{#if:{{{animals|}}}|
+
-->{{#if:{{{capacity|}}}|<nowiki />
 
{{!}}-
 
{{!}}-
{{!}}id="infoboxsection"{{!}}Animals:
+
{{!}}id="infoboxsection"{{!}}Capacity:
{{!}}id="infoboxdetail"{{!}}{{{animals|}}}|}}
+
{{!}}id="infoboxdetail"{{!}}{{{capacity|}}}|}}
 +
|-
 +
|id="infoboxsection"|Size:
 +
|id="infoboxdetail" style="text-align: center;"| {{#if:{{{sizehv|}}} |'''{{{sizehv|}}}'''<br />[[File:Marker{{{size|}}}.png|{{{size|}}}|center]] | [[File:Marker{{{size|}}}.png|{{{size|}}}|center]]}} 
 
|-
 
|-
|colspan=2 id="infoboxfooter"|
+
|}</div>{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
|}{{#seo:
 
|keywords=Stardew Valley Wiki,Stardew Valley,Buildings,{{PAGENAME}},{{{name|}}},hours,location
 
}}</div>[[Category:Buildings]]{{InfoboxSEO}}{{#seo:
 
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}}
 
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 

Latest revision as of 23:25, 24 January 2023

Description

This template is used to provide an infobox for farm buildings.

Use

This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.

{{Infobox building
|name        = 
|image       =
|description =
|cost        =
|materials   =
|animals     =
|capacity    =
|size        =
|sizehv      = 
}}

Parameters

{{Infobox building
|name        = Location name
|image       = The image name, minus the File:
|description = The 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
|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)
}}