Template:Infobox animal: Difference between revisions
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...") |
Salty Nori (talk | contribs) 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"> | ||
< | <default>{{Exists|File:{{#titleparts:{{PAGENAME}}}}.png|{{#titleparts:{{PAGENAME}}}}.png|}}</default> | ||
</image> | </image> | ||
<group> | <group> | ||
<header>Information</header> | <header>Information</header> | ||
<data source=" | <data source="type"> | ||
<label> | <label>Type</label> | ||
<format><!-- | |||
-->{{#switch:{{{type}}}<!-- | |||
-->|Coop Animal<!-- | |||
-->|Barn Animal<!-- | |||
-->|Stable Animal<!-- | |||
--> = [[{{{type}}}]]<!-- | |||
-->|#default = {{{type|}}}<!-- | |||
-->}} | |||
</format> | |||
</data> | </data> | ||
<data source=" | <data source="description"> | ||
<label>Description</label> | |||
</data> | </data> | ||
<data source=" | <data source="building"> | ||
<label> | <label>Building</label> | ||
<format>{{#if:{{{building|}}}|{{Icon|{{#explode:{{{building|}}}|;|0}}}}{{#if:{{#explode:{{{building|}}}|;|1}}| Lv. {{#explode:{{{building|}}}|;|1}}}}}}</format> | |||
</data> | </data> | ||
<data> | |||
<label>Unlock require­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}}| Lv. {{#explode:{{{building|}}}|;|1}}}}}}<!-- | |||
-->}}<!-- | |||
--></default> | |||
</data> | |||
</group> | </group> | ||
<group layout="horizontal"> | <group layout="horizontal"> | ||
<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> | ||
</infobox><!-- | |||
-->{{Namespace|main=<!-- | |||
Type | |||
-->[[Category:Farm animals]]<!-- | |||
-->{{#switch:{{{type}}}<!-- | |||
-->|Coop Animal<!-- | |||
-->|Barn Animal<!-- | |||
{{ | -->|Stable Animal<!-- | ||
| | -->= [[Category:{{lc:{{{type}}}s}}]]<!-- | ||
| | -->|#default = [[Category:Pages with wrong input]]<!-- | ||
| | -->}}<!-- | ||
-->{{#if:{{{rank|}}}|[[Category:Town rank {{{rank}}}]]}}<!-- | |||
| | -->{{#if:{{{year|}}}|[[Category:Year {{{year}}}]]}}<!-- | ||
-->}}</includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | |||
}}< | |||
{ | |||
</ | |||
</noinclude> |
Latest revision as of 05:49, 10 February 2024
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
Main | Documentation | Usage |