Difference between revisions of "Template:Infobox clothing"
Jump to navigation
Jump to search
Margotbean (talk | contribs) (Selling Price > Sell Value) |
Margotbean (talk | contribs) (Ingredients do not display if empty/missing, added Adventurer's Guild Purchase price) |
||
Line 14: | Line 14: | ||
|id="infoboxsection"|Source: | |id="infoboxsection"|Source: | ||
|id="infoboxdetail"|{{#if:{{{source|}}}|{{{source|N/A}}}|N/A}} | |id="infoboxdetail"|{{#if:{{{source|}}}|{{{source|N/A}}}|N/A}} | ||
+ | {{#if:{{{ingredients|}}}|<nowiki/> | ||
+ | {{!}}- | ||
+ | {{!}}id="infoboxsection"{{!}}Ingredients: | ||
+ | {{!}}id="infoboxdetail"{{!}}{{{ingredients|}}}|}} | ||
|- | |- | ||
− | |id="infoboxsection" | + | !colspan="2" id="infoboxsection"|Adventurer's Guild |
− | + | {{#if:{{{gprice|}}}|<nowiki/> | |
+ | {{!}}- | ||
+ | {{!}}id="infoboxsection"{{!}}Purchase Price: | ||
+ | {{!}}id="infoboxdetail"{{!}}{{#iferror:{{#expr:{{{gprice|0}}}>0}}|{{#if:{{{gprice|}}}|{{{gprice|Not Sold}}}|Not Sold}}|{{#if:{{{gprice|}}}|{{price|{{{gprice|}}} }}|N/A }} }} | ||
|- | |- | ||
− | |id="infoboxsection"|Sell | + | |id="infoboxsection"|Sell Price: |
− | |id="infoboxdetail"|{{#iferror:{{#expr:{{{value|}}} | + | |id="infoboxdetail"|{{#iferror:{{#expr:{{{value|0}}}>0}}|{{#if:{{{value|}}}|{{{value|Not Sold}}}|Not Sold}}|{{#if:{{{value|}}}|{{price|{{{value|}}} }}|N/A }} }} |
|- | |- | ||
|colspan=2 id="infoboxfooter"| | |colspan=2 id="infoboxfooter"| |
Revision as of 17:56, 19 February 2017
Description
This template displays an infobox for clothing.
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 clothing |name = |image = |description = |source = |ingredients = |stats = |gprice = |value = }}
Parameters
{{Infobox clothing |name = |image = |description = Description (optional -- populated by Template:Description if omitted) |source = Where it comes from |ingredients = What makes it (optional) |stats = Stat boosts from wearing the item (optional) |gprice = Adventurer's Guild purchase price |value = Adventurer's Guild sell price }}
Example
{{Infobox clothing |name = Magnet Ring |image = Magnet Ring.png |description = {{Description|Magnet Ring}} |source = [[The Mines]] |stats = {{name|Defense|+4}} |gprice = Not sold |value = 100 }}
Magnet Ring | |
Increases your radius for collecting items. | |
Information | |
Name: | Magnet Ring |
Source: | The Mines |
Adventurer's Guild
{{#if:Not sold| | |
---|---|
Purchase Price: | Not sold |
Sell Price: | 100g |
Error: {{#seo:}} must contain at least one non-empty attribute.