Template:Building: Difference between revisions

From Coral Island Wiki
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:
<div class="infobox">
<includeonly><infobox>
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
  <title source="title">
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
    <default>{{PAGENAME}}</default>
<p style="font-weight:bold">Information</p>
  </title>
<table class="infobox-table">
  <image source="image">
    {{#if:{{{source|}}}|<tr>
    <default>[[File:{{PAGENAME:{{{image}}}}}|300px]]</default>
     <th>Source</th>
    <caption source="description" />
     <td>{{{source}}}</td></tr>
  </image>
     }}{{#if:{{{cost|}}}|<tr>
  <group>
     <th>Cost</th>
    <header>Information</header>
     <td>{{{cost}}}</td></tr>
    <data source="type">
    }}{{#if:{{{unlocked|}}}|<tr>
      <label>Type</label><format>{{#switch:{{lc:{{{type|}}}}}
     <th>Unlocked</th>
      | artisan | artisan eqipment = [[Artisan_Equipment|Artisan Equipment]]
     <td>{{{unlocked}}}</td></tr>
      | resource | resources | resource processing = [[:Category:Resource processing equipment|Resource processing]]
     }}{{#if:{{{size|}}}|<tr>
      | producer | item producer | production | item production = [[:Category:Item production equipment|Item producer]]
    <th>Size(s)</th>
      | farming = [[Farming]] equipment
    <td>{{{size}}}</td>
      | ranching = [[Ranching]] equipment
</tr>}}</table>
      | farmbuilding = [[Farm Buildings|Farm Building]]
</div>
      | #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

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

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.

Template parameters

ParameterDescriptionTypeStatus
typetype

no description

Unknownoptional
sourcesource

no description

Unknownoptional
producesproduces

no description

Unknownoptional
buildtimebuildtime

no description

Unknownoptional
craftcraft

no description

Unknownoptional
unlockunlock

no description

Unknownoptional
sizesize

no description

Unknownoptional