Template:Itembox/doc
Jump to navigation
Jump to search
Captioned box containing item icons, links, quantity and cost (ideal for ingredient / reagent / vendor lists and quest rewards). Maximum 30 items per box. For more than 30, regular tables should probably be used instead; using multiple itemboxes can quickly put a page in Category:Pages with too many expensive parser function calls.
Use:
- {{Itembox|<caption=>|<itemn=>|<qn=>|<lqn=>|<cn=>|<...>|<item30=>|<q30=>|<lq30=>|<c30=>}}
- caption=
- (optional) Caption of the item box.
- itemn=
- Item number n. Icon and quality are shown automatically.
- qn=
- Quantity of item n. Defaults to show nothing.
- lqn=
- Limited quantity of vendor item n. Defaults to show nothing.
- sn=
- Stack number of vendor item n. Alias of qn. Defaults to show nothing.
- cn=
- Cost of item n. Use together with {{cost}}. Defaults to show nothing.
Examples
Common uses
{{itembox|caption=Requires Enchanting (275) and |item1=Adamantite Rod|q1=1 |item2=Greater Planar Essence|q2=8 |item3=Adamantite Rod|q3=1}}
File:Inv misc questionmark.png | 1x Adamantite Rod | File:Inv misc questionmark.png | 8x Greater Planar Essence | |
File:Inv misc questionmark.png | 1x Adamantite Rod |
{{itembox|caption=Vendor sells this stuff: |item1=Adamantite Rod|c1={{cost|5}} |item2=Greater Planar Essence|c2={{cost||50}}}}
File:Inv misc questionmark.png | Adamantite Rod 5g |
File:Inv misc questionmark.png | Greater Planar Essence 50s |
{{itembox|You will be able to choose one of these rewards: |Borean Smasher |Axe of Frozen Death |Staff of the Purposeful Mendicant |Fury of the Raging Dragon |Fang of the Desolate Soul |Tower of the Infinite Mind}}
{{itembox|You will receive one of these rewards: |Talador Sentinel Gauntlets|c1={{ClassIcon|Druid}}{{ClassIcon|Monk}}{{ClassIcon|Rogue}} |Sha'tari Keeper Gauntlets|c2={{ClassIcon|Death knight}}{{ClassIcon|Paladin}}{{ClassIcon|Warrior}} |Auchenai Keeper Handwraps|c3={{ClassIcon|Mage}}{{ClassIcon|Priest}}{{ClassIcon|Warlock}} |Sha'tari Deadeye Mitts|c4={{ClassIcon|Hunter}}{{ClassIcon|Shaman}}}}
{{Itembox|Limited Quantity |Pattern: Green Whelp Bracers|c1={{Cost||22|40}}|lq1=1 }}
File:Inv misc questionmark.png | (1) Pattern: Green Whelp Bracers 22s 40c |
{{Itembox|Stack Size |Pattern: Green Whelp Bracers|c1={{Cost||22|40}}|s1=5 }}
File:Inv misc questionmark.png | 5x Pattern: Green Whelp Bracers 22s 40c |
{{Itembox|Limited Quantity + Stack Size |Pattern: Green Whelp Bracers|c1={{Cost||22|40}}|lq1=1|s1=5 }}
File:Inv misc questionmark.png | (1) 5x Pattern: Green Whelp Bracers 22s 40c |
No caption
{{itembox|caption= |item1=Snowfall Lager|c1={{costitem|2|Relic of Ulduar}} |item2=Drakefire Chile Ale|c2={{costitem|2|Relic of Ulduar}} |item3=Airy Pale Ale|c3={{costitem|10|Relic of Ulduar}} |item4=Worg Tooth Oatmeal Stout|c4={{costitem|10|Relic of Ulduar}} |item5=Iron Boot Flask|c5={{costitem|10|Relic of Ulduar}} }}
{{itembox| |item1=Snowfall Lager|c1={{costitem|2|Relic of Ulduar}} |item2=Drakefire Chile Ale|c2={{costitem|2|Relic of Ulduar}} |item3=Airy Pale Ale|c3={{costitem|10|Relic of Ulduar}} |item4=Worg Tooth Oatmeal Stout|c4={{costitem|10|Relic of Ulduar}} |item5=Iron Boot Flask|c5={{costitem|10|Relic of Ulduar}} }}
...will both result in: