Difference between revisions of "Template:ITEM infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Template:ItemColor needs a second parameter of Dark now to choose the correct palette for ITEM infobox)
m (with update to ItemColor template, needs an #if to default to common quality)
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="{{ItemColor|{{{quality|}}}|Dark}};">{{{name|name}}}</div></div>
+
|<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"

Revision as of 09:08, 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}}
}}}}
}}
icon_5015.png
Fire Dust
This bright red powder always feels warm to the touch.
Value: 90

Stack Size:
99
Keywords:

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}}
}}}}
}}
icon_10102.png
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.
icon_101.png Max Armor
 
+25

icon_108.png Sprint Speed Boost
 
+2

icon_105.png Health from Combat Refresh Abilities
 
+30

icon_105.png Power from Combat Refresh Abilities
 
+27
Value: 150

Craft Points:
100
Equip Slot:
Feet
Stack Size:
1
Keywords:
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.)
Error: Item not found
name
-
Value: -
-