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
 
(10 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">
     <caption source="caption"/>
     <default>{{Exists|File:{{#titleparts:{{PAGENAME}}}}.png|{{#titleparts:{{PAGENAME}}}}.png|}}</default>
   </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">
     <data source="type">
       <label>Growth</label>
       <label>Type</label>
    </data>
      <format><!--
    <data source="housing">
          -->{{#switch:{{{type}}}<!--
      <label>Housing</label><format>{{i|{{{housing|}}}|note=Lv. {{{housing-level|1}}}}}</format>
            -->|Coop Animal<!--
            -->|Barn Animal<!--
            -->|Stable Animal<!--
                --> = [[{{{type}}}]]<!--
            -->|#default = {{{type|}}}<!--
        -->}}
      </format>
     </data>
     </data>
     <data source="hearts">
     <data source="description">
      <label>Hearts</label>
      <label>Description</label>
     </data>
     </data>
     <data source="produces">
     <data source="building">
       <label>Produces</label>
       <label>Building</label>
      <format>{{#if:{{{building|}}}|{{Icon|{{#explode:{{{building|}}}|;|0}}}}{{#if:{{#explode:{{{building|}}}|;|1}}|&nbsp;Lv. {{#explode:{{{building|}}}|;|1}}}}}}</format>
     </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}}}}}}<!--
      -->}}<!--
    --></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>
      <format>{{c|{{{buy|}}}}}</format>
     </data>
     </data>
     <data source="sell">
     <data source="sell">
       <label>Sell price</label>
       <label>Sell price</label>
      <format>{{c|{{{sell|}}}}}</format>
     </data>
     </data>
   </group>
   </group>
      <data source="purchased_from">
</infobox><!--
      <label>Purchased from</label><default>[[Ranch]]</default>
-->{{Namespace|main=<!--
    </data>
  Type
</infobox>
  -->[[Category:Farm animals]]<!--
<noinclude>
  -->{{#switch:{{{type}}}<!--
Example usage:
        -->|Coop Animal<!--
<pre>
        -->|Barn Animal<!--
{{Animals
        -->|Stable Animal<!--
|title = Example
            -->= [[Category:{{lc:{{{type}}}s}}]]<!--
|image = Example
        -->|#default = [[Category:Pages with wrong input]]<!--
|description = Example
  -->}}<!--
|growth = Example
  -->{{#if:{{{rank|}}}|[[Category:Town rank {{{rank}}}]]}}<!--
|housing = Example
  -->{{#if:{{{year|}}}|[[Category:Year {{{year}}}]]}}<!--
|hearts = Example
-->}}</includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
|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>

Latest revision as of 05:49, 10 February 2024

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