Difference between revisions of "Template:Infobox animal"
Jump to navigation
Jump to search
Margotbean (talk | contribs) (allow name template in building parameter) |
Margotbean (talk | contribs) (add purchase price) |
||
Line 11: | Line 11: | ||
|id="infoboxsection"|Building | |id="infoboxsection"|Building | ||
|id="infoboxdetail"|{{#if:{{{building|}}}|{{{building|N/A}}}|N/A}} | |id="infoboxdetail"|{{#if:{{{building|}}}|{{{building|N/A}}}|N/A}} | ||
+ | |- | ||
+ | |id="infoboxsection"|Purchase Price | ||
+ | |id="infoboxdetail"|{{#iferror:{{price|{{{buyprice|N/A}}}}}|N/A|{{price|{{{buyprice|}}} }} }} | ||
|- | |- | ||
|id="infoboxsection"|Produce | |id="infoboxsection"|Produce |
Revision as of 06:17, 5 November 2019
Description
This template displays an infobox for animal pages.
Use
This template can be used by entering the following onto a relevant page. Do not use this on your user page. It is reserved for content pages.
{{Infobox animal |image = |image2 = |image3 = |buyprice = |building = |produce = }}
Parameters
{{Infobox animal |image = Primary image |image2 = second image (optional) |image3 = third image (optional) |buyprice = Cost to purchase from Marnie's Ranch (unformatted) |building = What building does it live in? |produce = What does it produce? }}