Difference between revisions of "Template:Infobox animal"
Jump to navigation
Jump to search
m |
Margotbean (talk | contribs) |
||
(25 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div id="infoboxborder"> | <includeonly><div id="infoboxborder"> | ||
{| id="infoboxtable" | {| id="infoboxtable" | ||
− | |colspan=2 id="infoboxheader"|{{{name|{{PAGENAME}}}}} | + | |colspan="2" id="infoboxheader"|{{{name|{{PAGENAME}}}}} |
|- | |- | ||
− | |colspan=2|{{#if:{{{image}}}|[[File:{{{image|}}}| | + | |colspan="2" style="text-align: center; padding-bottom: 5px;"|{{#if:{{{image}}}|[[File:{{{image|}}}|link=]]}}{{#if:{{{image2|}}}| [[File:{{{image2|}}}|link=]]|}}{{#if:{{{image3|}}}| [[File:{{{image3|}}}|link=]]|}} |
|- | |- | ||
− | |colspan=2|{{#if:{{{ | + | |colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;"|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} |
+ | |- | ||
+ | |colspan="2" id="infoboxsection" style="text-align: center;"|Information | ||
|- | |- | ||
|id="infoboxsection"|Building | |id="infoboxsection"|Building | ||
− | |id="infoboxdetail"|{{#if:{{{building|}}}| | + | |id="infoboxdetail"|{{#if:{{{building|}}}|{{{building|N/A}}}|N/A}} |
+ | |- | ||
+ | |id="infoboxsection"|Purchase Price | ||
+ | |id="infoboxdetail"|{{#iferror:{{#expr:{{{buyprice|}}}<0}}|{{{buyprice|N/A}}}|{{price|{{{buyprice|}}} }} }} | ||
|- | |- | ||
|id="infoboxsection"|Produce | |id="infoboxsection"|Produce | ||
|id="infoboxdetail"|{{#if:{{{produce|}}}|{{{produce|N/A}}}|N/A}} | |id="infoboxdetail"|{{#if:{{{produce|}}}|{{{produce|N/A}}}|N/A}} | ||
|- | |- | ||
− | + | |}</div>{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | |
− | |} | ||
− | </div> | ||
− | |||
− |
Latest revision as of 22:38, 27 May 2022
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? }}