Difference between revisions of "Template:ITEM infobox"
From Project: Gorgon Wiki
m (Experiment) |
m (fixed(?) parser function syntax) |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
{| style="margin:1px; border:1px solid#423930; float:right; text-align:left; position:relative; border-radius:5px; background:#1e1615ff;" cellpadding="5" | {| style="margin:1px; border:1px solid#423930; float:right; text-align:left; position:relative; border-radius:5px; background:#1e1615ff;" cellpadding="5" | ||
|{{Item icon|{{{name}}}}} | |{{Item icon|{{{name}}}}} | ||
− | |<div class="ib-tbl-hdt"><div style=" | + | |<div class="ib-tbl-hdt"><div style="{{ItemColor|{{#if:{{{quality|}}}|{{{quality}}}|Common}}|Dark}};">{{{name|name}}}</div></div> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
{{ #if:{{{skillreqs|}}}|{{pipe}}- valign="top" ! style= "width:400px;" colspan="2" align="left" | {{ #if:{{{skillreqs|}}}|{{pipe}}- valign="top" ! style= "width:400px;" colspan="2" align="left" | ||
Line 18: | Line 11: | ||
| style= "width:400px;" colspan="2" align="left" | <div class="block2" style="color:#ffffff" width:"400px;">{{{description|-}}}</div> | | style= "width:400px;" colspan="2" align="left" | <div class="block2" style="color:#ffffff" width:"400px;">{{{description|-}}}</div> | ||
|- valign="top" | |- valign="top" | ||
− | + | {{ #if:{{{basemods|}}}|{{pipe}}- valign="top" | |
+ | ! style="color:#ffffff; width:400px;" colspan="2" {{pipe}}{{{basemods}}} | ||
+ | }} | ||
|- | |- | ||
! colspan="2" align="left"| <div class="block2" style="color:#ffffff;"> Value: {{{value|-}}}</div> | ! colspan="2" align="left"| <div class="block2" style="color:#ffffff;"> Value: {{{value|-}}}</div> |
Latest revision as of 09:12, 5 December 2020
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Description
- Use this template to illustrate in infobox of an item as it appears in-game.
Syntax
{{ITEM infobox |name = |skillreqs= |description= |basemods= |value= |extra= }}
Parameters
- name
- REQUIRED. This should match the name of the item.
- quality
- OPTIONAL. This field is used to change the color of the name of the item. Options are common, uncommon, rare, exceptional, epic, legendary. Defaults to common (white).
- skillreqs
- OPTIONAL. This field is used for items like the Windstep Shoes that have a skill-based requirement. Animal form requirements are also listed here. This text will appear red.
- description
- REQUIRED. Matches the in-game description of the item.
- basemods
- OPTIONAL. Used on gear or items that grant attributes when consumed. See examples below for details on use.
- value
- REQUIRED. The in-game value of the item.
- extra
- OPTIONAL. See next section for details.
ITEM EXTRA infobox Parameters
- craftpoints
Optional. The number of Crafting Points the item has.
- equipslot
Optional. The Equip Slot the item fits into.
- stack
Optional. The Maximum stack size for the item.
- keywords
Required. Uses KW template to add keywords to the page (and will eventually display them).
Sample item output
{{ITEM infobox |name = Fire Dust |description = This bright red powder always feels warm to the touch. |basemods = |value = 90 |extra = {{Spoiler| |{{ITEM EXTRA infobox | stack = 99 | keywords = {{KW|AlchemyIngredient}}{{KW|FireDust}}{{KW|MagicDust}} }}}} }}
Fire Dust | |||||
This bright red powder always feels warm to the touch.
| |||||
Value: 90
| |||||
---|---|---|---|---|---|
|
Sample gear output
{{ITEM infobox |name = Windstep Shoes |quality= legendary |skillreqs= Endurance 40 |description = Popular with elven messengers, these elegant cloth footwraps make your feet move much faster! But they don't protect your feet very well, so you'll need significant endurance to tolerate the numerous stubbed toes and sprained ankles. |basemods ={{Attribute|MAX_ARMOR|+25}}<br>{{Attribute|SPRINT_BOOST|+2}}<br>{{Attribute|COMBAT_REFRESH_HEALTH_DELTA|+30}}<br>{{Attribute|COMBAT_REFRESH_POWER_DELTA|+27}} |value = 150 |extra = {{Spoiler| |{{ITEM EXTRA infobox | craftpoints = 100 | equipslot = Feet | stack = 1 | keywords = {{KW|Armor}}{{KW|ArmorOrShield}}{{KW|Equipment}}{{KW|Feet}} {{KW|ClothArmor}}{{KW|ClothBoots}}{{KW|ClothDyableArmor}}{{KW|Fashionable}}{{KW|Loot}} }}}} }}
Windstep Shoes | |||||||||
Endurance 40
| |||||||||
Popular with elven messengers, these elegant cloth footwraps make your feet move much faster! But they don't protect your feet very well, so you'll need significant endurance to tolerate the numerous stubbed toes and sprained ankles.
| |||||||||
Max Armor
+25
Sprint Speed Boost
+2
Health from Combat Refresh Abilities
+30
Power from Combat Refresh Abilities
+27 | |||||||||
---|---|---|---|---|---|---|---|---|---|
Value: 150
| |||||||||
|
The above text is transcluded from Template:ITEM infobox/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:ITEM infobox/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:ITEM infobox/doc. (View all subpages of this page.)
Error: Item not found | name |
-
| |
Value: -
| |
---|---|
- |