Template:Item: Difference between revisions
Wyverwithy (talk | contribs) No edit summary |
Tag: Undo |
||
| (25 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
|price=Integer | |price=Integer | ||
|Currency=String | |Currency=String | ||
| | |Rarity=String | ||
|sell=Integer | |sell=Integer | ||
|flavor=String | |flavor=String | ||
|nature=String | |nature=String | ||
|curren | |curren | ||
}} | }} | ||
| Line 18: | Line 17: | ||
|gets={{{gets|}}} | |gets={{{gets|}}} | ||
|currency={{{curr|}}} | |currency={{{curr|}}} | ||
| | |rarity={{{rarity|}}} | ||
|price={{{price|}}} | |price={{{price|}}} | ||
|sell={{{sell|}}} | |sell={{{sell|}}} | ||
|flavor={{{flavor|}}} | |flavor={{{flavor|}}} | ||
|nature={{{nature|}}} | |nature={{{nature|}}} | ||
}} | }} | ||
{| class="infobox" style = "float: right; | {| class="infobox" style="float: right; margin:1%;" | ||
! colspan="4"|'''{{{name|{{PAGENAME | ! colspan="4"|'''{{#if: {{{name|}}}|{{{name|}}}|{{PAGENAME}} }}''' | ||
|- | |- | ||
! colspan="4" {{#if: {{{img|} | ! colspan="4" | {{#if: {{{img|}}}|[[File:{{{img}}}]]|[[File:Placeholder.png|200px]]{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Missing Image]]|#default=}}}} | ||
| | |||
|- | |- | ||
| colspan="4" style="text-align: center; | | colspan="4" style="text-align: center; background:#965c2d; color:white; border-radius:2em;"| <small>{{#if:{{{capt1|}}}|{{{capt1}}}|''Missing Caption'' }}</small> | ||
|- {{#if: {{{smallimg|}}}||style="display: none"}} | |||
! colspan="4" | [[File:{{{smallimg|}}}|x100px]] | |||
|- {{#if: {{{smallimg|}}}||style="display: none"}} | |||
| colspan="4" style="text-align: center; background:#965c2d; color:white; border-radius:2em;"| <small>{{{capt2|}}}</small> | |||
|- | |- | ||
| colspan="4" style="text-align: center; | | colspan="4" style="text-align: center; padding-left: 2px; padding-right: 2px;"| {{#if:{{{flavor_text|}}}|{{{flavor_text}}}|''Missing Description''{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Missing Description]]|#default=}}}} | ||
|- | |- | ||
! colspan=" | ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Type | ||
| colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| {{#if:{{{type|}}}|{{i|{{{type}}}}}|''Missing Type''{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Missing Type]]|#default=}}}} | |||
| colspan=" | |||
|- | |- | ||
! colspan="2" style="text-align: center;border-radius:2em; background:#965c2d; color:white; width:40%;"| | ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Obtainment Method | ||
| colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 10px; "| {{{gets|}}} | | colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:10px;"| {{#if:{{{gets|}}}|{{{gets}}}|''Missing Obtainment''{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Missing Obtainment]]|#default=}}}} | ||
|- | |- | ||
! style="text-align: center;border-radius:2em; background:#965c2d; color:white; width: | ! colspan="2" style="text-align: center;border-radius:2em; background:#965c2d; color:white; width:40%;"| Cost | ||
| style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px | | colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px;"| {{#if:{{{price|}}}|{{{price}}}{{#switch: {{lc:{{{curr|}}}}} | ||
|copper|c={{c}} | |||
| | |silver|s={{s}}|}}|N/A}} | ||
|- | |- | ||
! colspan="2" style="text-align: center;border-radius:2em; background:#965c2d; color:white; width:40%;"| Sell Price | |||
| colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px;"| {{#if: {{{sell|}}}|{{{sell}}}|0}}{{c}} | |||
|-{{#if: {{{flavor|}}}||style="display: none"}} | |-{{#if: {{{flavor|}}}||style="display: none"}} | ||
! colspan="2" style="text-align: center;border-radius:2em; background:#965c2d; color:white; width:40%;"| Flavor | ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Flavor | ||
| colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px; "| {{{flavor|}}} | | colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| {{{flavor|}}} | ||
|-{{#if: {{{nature|}}}||style="display: none"}} | |-{{#if: {{{nature|}}}||style="display: none"}} | ||
! colspan="2" style="text-align: center;border-radius:2em; background:#965c2d; color:white; width:40%;"| Nature | ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Nature | ||
| colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px; "| {{{nature|}}} | | colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| {{{nature|}}} | ||
|-! style="text-align: center;border-radius:2em; background:#965c2d; color:white; width: | |||
| style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px | |-{{#if: {{{position|}}}||style="display: none"}} | ||
! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Position | |||
| colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| {{{position}}} | |||
|-{{#if: {{{taxonomy|}}}||style="display: none"}} | |||
! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Taxonomy Class | |||
| colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| {{{taxonomy}}} | |||
|-{{#if: {{{stam|}}}||style="display: none"}} | |||
! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Stamina | |||
| colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| +{{{stam|}}} | |||
|- | |- | ||
! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Rarity | |||
| colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px;"| {{#switch: {{{rarity}}} | |||
|0=0[[Category:Rarity 0]] | |||
|1=[[File:Pb wiki rarity - 1 star.png|x25px]]{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Rarity 1]]|#default=}} | |||
|2|3|4|5|6=[[File:Pb wiki rarity - {{{rarity}}} stars.png|x25px]]{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Rarity {{{rarity}}}]]|#default=}} | |||
|#default=''Missing Rarity''{{#switch:{{NAMESPACE}}|{{ns:0}}=[[Category:Missing Rarity]]|#default=}} | |||
}} | |||
|-{{#if: {{{debut|}}}||style="display: none"}} | |-{{#if: {{{debut|}}}||style="display: none"}} | ||
! colspan="2" style="text-align: center;border-radius:2em; background:#965c2d; color:white; width:40%;"| Debut Date | ! colspan="2" style="text-align:center; border-radius:2em; background:#965c2d; color:white; width:40%;"| Debut Date | ||
| colspan="2" style="text-align: center;font-weight:bold; background:white; border-radius:2em;padding-left: 5px; "| {{{debut|}}} | | colspan="2" style="text-align:center; font-weight:bold; background:white; border-radius:2em; padding-left:5px;"| {{{debut|}}} | ||
|} | |}{{#switch: {{NAMESPACE}} | {{ns:0}} = [[Category:Items]]{{#switch:{{lc:{{{type}}}}} | ||
|accessory=[[Category:Accessories]] | |||
|backdrop=[[Category:Backdrops]] | |||
{{ | |combat=[[Category:Combat Items]] | ||
| | |crest=[[Category:Crests]] | ||
| | |decor=[[Category:Decor]] | ||
| | |dye=[[Category:Dyes]] | ||
| | |fauna=[[Category:Fauna]] | ||
| | |food=[[Category:Foods]] | ||
| | |formula=[[Category:Formulas]] | ||
| | |incense=[[Category:Incenses]] | ||
| | |metamorphic=[[Category:Metamorphics]] | ||
| | |pelt=[[Category:Pelts]] | ||
| | |pouch=[[Category:Pouches]]}}{{#switch:{{lc:{{{position}}}}} | ||
| | |back=[[Category:Back]] | ||
| | |back legs=[[Category:Back Legs]] | ||
| | |back paws=[[Category:Back Paws]] | ||
| | |body=[[Category:Body]] | ||
}} | |crown=[[Category:Crown]] | ||
</ | |ears=[[Category:Ears]] | ||
|face=[[Category:Face]] | |||
|front legs=[[Category:Front Legs]] | |||
|front paws=[[Category:Front Paws]] | |||
|full body=[[Category:Full Body]] | |||
|head=[[Category:Head]] | |||
|legs=[[Category:Legs]] | |||
|lower torso=[[Category:Lower Torso]] | |||
|neck=[[Category:Neck]] | |||
|shoulders=[[Category:Shoulders]] | |||
|tail=[[Category:Tail]] | |||
|upper torso=[[Category:Upper Torso]] | |||
|other=[[Category:Position Other]] | |||
}}{{#switch:{{lc:{{{taxonomy}}}}} | |||
|aquatic=[[Category:Aquatic]] | |||
|avian=[[Category:Avian]] | |||
|insectoid=[[Category:Insectoid]] | |||
|mammalian=[[Category:Mammalian]] | |||
|quartz=[[Category:Quartz]] | |||
|saurian=[[Category:Saurian]] | |||
|synthetic=[[Category:Synthetic]]}} | |||
| #default = }}</includeonly><noinclude> | |||
{{Documentation}} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 14:49, 4 May 2026
This template defines the table "Items". View table.
| Template documentation follows |
|---|
| Visit Template:Item/doc to edit this documentation. (How does this work?) |
| Editors can experiment in this template's sandbox and test case pages. |
Usage
An infobox template for items pages. All article pages that transclude this template are put into Category:Items. Additional categories are added if parameters meet certain criteria. See the list of automatic categories below.
Maintenance Categories:
- If
|flavor_text=is empty then Category:Missing Description - If
|type=is empty then Category:Missing Type - If
|img=is empty then Category:Missing Image - If
|gets=is empty then Category:Missing Obtainment - If
|rarity=is empty then Category:Missing Rarity
General Categories:
|item=|taxonomy=|position=- Category:Back
- Category:Back Legs
- Category:Back Paws
- Category:Body
- Category:Crown
- Category:Ears
- Category:Face
- Category:Front Legs
- Category:Front Paws
- Category:Full Body
- Category:Head
- Category:Legs
- Category:Lower Torso
- Category:Neck
- Category:Shoulders
- Category:Tail
- Category:Upper Torso
- Category:Position Other
|rarity=
Syntax
{{Item
|name=
|img=
|capt1=
|smallimg=
|capt2=
|flavor_text=
|type=
|gets=
|price=
|curr=
|sell=
|flavor=
|nature=
|position=
|taxonomy=
|stam=
|rarity=
|debut=
}}
Examples
| Item | |||
|---|---|---|---|
| Missing Caption | |||
| Missing Description | |||
| Type | Missing Type | ||
| Obtainment Method | Missing Obtainment | ||
| Cost | N/A | ||
| Sell Price | 0 | ||
| Rarity | Missing Rarity | ||
{{Item
|name=
|img=
|capt1=
|smallimg=
|capt2=
|flavor_text=
|type=
|gets=
|price=
|curr=
|sell=
|flavor=
|nature=
|position=
|taxonomy=
|stam=
|rarity=
|debut=
}}
| Northern Lunasagi | |||
|---|---|---|---|
| |||
| The Lunasagi | |||
| Caption Two | |||
| Hello world. | |||
| Type | |||
| Obtainment Method | Errands | ||
| Cost | 500 | ||
| Sell Price | 1000 | ||
| Flavor | |||
| Nature | |||
| Position | Back Legs | ||
| Taxonomy Class | Mammalian | ||
| Stamina | +20 | ||
| Rarity | |||
| Debut Date | Date Here | ||
{{Item
|name=Northern Lunasagi
|img=Lunasagi.png
|capt1=The Lunasagi
|smallimg=Placeholder.png
|capt2=Caption Two
|flavor_text=Hello world.
|type=Fauna
|gets=[[Errands]]
|price=500
|curr=silver
|sell=1000
|flavor={{f|Savory}}
|nature={{n|Nervous}}
|position=Back Legs
|taxonomy=Mammalian
|stam=20
|rarity=6
|debut=Date Here
}}
Template Parameters
Infobox template for item pages.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | name | Name of the item, defaults to page name.
| Unknown | required |
| img | img | Full resolution image of item.
| Unknown | required |
| capt1 | capt1 | Caption for large image.
| Unknown | required |
| smallimg | smallimg | no description | Unknown | optional |
| capt2 | capt2 | no description | Unknown | optional |
| flavor_text | flavor_text | The item's description/flavor text as seen in the database. | Unknown | required |
| type | type | Item category, associated icon and link are added automatically.
| Unknown | required |
| gets | gets | How the item is obtained. Obtainment methods should be linked, if there are multiple obtainment sources separate them with commas and order alphabetically. | Unknown | required |
| price | price | The Copper/Silver/USD price of the item if found in NPC shops or premium bundles. Default is "N/A" if left empty.
| Number | required |
| curr | curr | Adds {{c}} or {{s}} to the end of Price. Case insensitive.
| Unknown | suggested |
| sell | sell | Sell price of the item, defaults to 0.
| Number | required |
| flavor | flavor | Flavor of the item, if applicable. Wrap template {{f}} around each flavor.
| Unknown | suggested |
| nature | nature | Nature of the item, if applicable. Wrap template {{n}} around each nature.
| Unknown | suggested |
| position | position | For accessory items, the position of the accessory as seen in the Wardrobe. Adds associated category automatically.
| Unknown | suggested |
| taxonomy | taxonomy | For fauna items, the general taxonomy class as seen in the database. Adds associated category automatically.
| Unknown | optional |
| stam | stam | If a food item, the amount of replenished stamina upon use in Errands as seen in the database. | Unknown | suggested |
| rarity | rarity | Star rarity of the item. Rarity 1 and above have associated star icons. Each rarity applies a category. | Unknown | suggested |
| debut | debut | When the item was released. | Unknown | suggested |

