Template:Infobox animal: Difference between revisions
Jump to navigation
Jump to search
Salty Nori (talk | contribs) No edit summary |
Salty Nori (talk | contribs) No edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
<image source="image"> | <image source="image"> | ||
<default>{{Exists|File:{{#titleparts:{{PAGENAME}}}}.png|{{#titleparts:{{PAGENAME}}}}.png|}}</default> | <default>{{Exists|File:{{#titleparts:{{PAGENAME}}}}.png|{{#titleparts:{{PAGENAME}}}}.png|}}</default> | ||
</image> | </image> | ||
<group> | <group> | ||
<header>Information</header> | <header>Information</header> | ||
<format><!-- | <data source="type"> | ||
<label>Type</label> | |||
<format><!-- | |||
-->{{#switch:{{{type}}}<!-- | |||
-->|Coop Animal<!-- | |||
-->|Barn Animal<!-- | |||
-->|Stable Animal<!-- | |||
--> = [[{{{type}}}]]<!-- | |||
</ | -->|#default = {{{type|}}}<!-- | ||
<data source=" | -->}} | ||
<label> | </format> | ||
<format>{{Icon|{{{ | </data> | ||
<data source="description"> | |||
<label>Description</label> | |||
</data> | |||
<data source="building"> | |||
<label>Building</label> | |||
<format>{{#if:{{{building|}}}|{{Icon|{{#explode:{{{building|}}}|;|0}}}}{{#if:{{#explode:{{{building|}}}|;|1}}| Lv. {{#explode:{{{building|}}}|;|1}}}}}}</format> | |||
</data> | </data> | ||
<data> | <data> | ||
Line 29: | Line 34: | ||
-->{{#if:{{{year|}}}|<br />Year {{{year|}}}}}<!-- | -->{{#if:{{{year|}}}|<br />Year {{{year|}}}}}<!-- | ||
-->{{#if:{{{building|}}}|<br />{{#explode:{{{building|}}}|;|0}}{{#if:{{#explode:{{{building|}}}|;|1}}| Lv. {{#explode:{{{building|}}}|;|1}}}}}}<!-- | -->{{#if:{{{building|}}}|<br />{{#explode:{{{building|}}}|;|0}}{{#if:{{#explode:{{{building|}}}|;|1}}| Lv. {{#explode:{{{building|}}}|;|1}}}}}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></default> | --></default> | ||
Line 42: | Line 42: | ||
<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><noinclude>{{Documentation|type=Infobox}}</noinclude> | </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> |
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 |