Template:Building: Difference between revisions

From Coral Island Wiki
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}}.png</default>
     <default>[[File:{{PAGENAME:{{{image}}}}}|300px]]</default>
     <caption source="description" />
     <caption source="description" />
   </image>
   </image>
   <group>
   <group>
     <header>Information</header>
     <header>Information</header>
<data source="source">
    <data source="type">
       <label>Source</label><default>[[Carpenter]]</default>
       <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="cost">
    <data source="source">
       <label>Cost</label><default>{{cost|coin=100|wood=100|stone=100|bronzebar=1}}</default></data>
       <label>Source</label>
    <data source="size">
    </data>
       <label>Size</label><default>3x3</default>
    <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|}}}}}
Sample text
| artisan | artisan eqipment = [[Category:Artisan equipment]]
 
| resource | resources | resource processing = [[Category:Resource equipments]]
== Usage ==
| producer | item producer | production | item production = [[Category:Item production equipments]]
Sample text
| scarecrow | scarecrows = [[Category:Scarecrows]][[Category:Farming]]
 
| fertilizer | fertilizers = [[Category:Fertilizer]][[Category:Farming]]
== Gallery ==
| sprinkler = [[Category:Sprinkler]][[Category:Farming]]
<gallery>
| farming = [[Category:Farming]]
File:Example1.jpg|Caption1
| farmbuilding = [[Category:Farm Buildings]]
File:Example2.png|Caption2
| ranching = [[Category:Ranching]]
</gallery>
| 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