Template:Infobox animal: 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"> <caption source="caption"/> </image> <group layout="horizontal"> <data source="description"><format><center>''{{{description|}}}''</center></format></data> </group> <group> <header>Information</header> <data source="growth"> <label>Growth</label> </data> <data source="housing"> <label>Housing</label><format>{{i|{{{housing...")
 
No edit summary
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">
     <caption source="caption"/>
    <default>{{Exists|File:{{#titleparts:{{PAGENAME}}}}.png|{{#titleparts:{{PAGENAME}}}}.png|}}</default>
     <caption source="description" />
   </image>
   </image>
  <group layout="horizontal">
    <data source="description"><format><center>''{{{description|}}}''</center></format></data>
  </group>
   <group>
   <group>
     <header>Information</header>
     <header>Information</header>
     <data source="growth">
     <format><!--
      <label>Growth</label>
        -->{{#switch:{{{type}}}<!--
     </data>
          -->|Coop Animal
          -->|Barn Animal
          -->|Stable Animal
              --> = [[{{{type}}}]]<!--
          -->|#default = {{{type|}}}<!--
      -->}}
     </format>
     <data source="housing">
     <data source="housing">
       <label>Housing</label><format>{{i|{{{housing|}}}|note=Lv. {{{housing-level|1}}}}}</format>
       <label>Housing</label>
    </data>
      <format>{{Icon|{{{housing|}}}|note=Lv. {{{housing-level|1}}}}}</format>
    <data source="hearts">
      <label>Hearts</label>
    </data>
    <data source="produces">
      <label>Produces</label>
     </data>
     </data>
    <data>
      <label>Unlock require&shy;ments</label>
      <default><!--
      -->{{#if:{{{rank|}}}|<!--
          -->[[Town rank#Rank {{{rank|}}}|Town rank {{{rank|}}}]]<!--
          -->{{#if:{{{year|}}}|<br />Year {{{year|}}}}}<!--
          -->{{#if:{{{building|}}}|<br />{{#explode:{{{building|}}}|;|0}}{{#if:{{#explode:{{{building|}}}|;|1}}|&nbsp;Lv. {{#explode:{{{building|}}}|;|1}}}}}}<!--
      -->}}<!--
      -->{{#if:{{{mastery|}}}|<!--
          -->{{#switch:{{#explode:{{{mastery|}}}|;|0}}|Farming|Ranching|Foraging|Mining|Diving|<!--bug-->Catching|Fishing|Combat|0=<!--
            -->{{#if:{{{rank|}}}|<br />}}{{Mastery|{{{mastery|}}}}}<!--
          -->}}<!--
      -->}}<!--
    --></default>
  </data>
   </group>
   </group>
   <group layout="horizontal">
   <group layout="horizontal">
     <header>Market</header>
     <header>Prices</header>
     <data source="buy">
     <data source="buy">
       <label>Buy price</label>
       <label>Buy price</label>
Line 33: Line 47:
     </data>
     </data>
   </group>
   </group>
      <data source="purchased_from">
</infobox><noinclude>{{Documentation|type=Infobox}}</noinclude>
      <label>Purchased from</label><default>[[Ranch]]</default>
    </data>
</infobox>
<noinclude>
Example usage:
<pre>
{{Animals
|title = Example
|image = Example
|description = Example
|growth = Example
|housing = Example
|hearts = Example
|produces = Example
|buy = Example
|purchased_from = Example
|sell = Example
}}</pre>
<templatedata>
{"params":{"title":{"suggested":true},"image":{"suggested":true},"description":{"suggested":true},"growth":{"suggested":true},"housing":{"suggested":true},"hearts":{"suggested":true},"produces":{"suggested":true},"buy":{"suggested":true},"purchased_from":{"suggested":true},"sell":{"suggested":true}},"sets":[],"maps":{}}
</templatedata>
</noinclude>

Revision as of 13:01, 8 February 2024