Year of the Dragon: Through May 28th, claim free Expansion Pack (excluding Vecna Unleashed) or a Greater Elixir of Discovery! Speak to Xatheral in the Hall of Heroes. edit

Game mechanicsNewbie guideIn developmentDDO StoreSocial Media


ChallengesClassesCollectablesCraftingEnhancementsEpic DestiniesFavorFeats

GlossaryItemsMapsMonstersPlacesQuestsRacesReincarnationSkillsSpells


Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!

Template talk:V Desc box

From DDO wiki
(Redirected from Template talk:Item)
Jump to navigation Jump to search

Currently only supports equiptment and armor,
will make some changes to support items and weapons too. Neouni 07:13, December 21, 2010 (EST)

Might be better to change Feat to Subtype and Subtype to Icon
And let's see if I can add a colorswitch to the borders
Adding weapons seems to have caused a bug in the Example, will need to check that Neouni 13:19, March 22, 2011 (EDT)

Stuff I can't get too work[edit]

  • Making descriptions in the durability bar smaller makes it unreadable
  • Can't seem to find how to do simple math functions on wiki {{#expr:}}

Pulling the Source apart[edit]

<onlyinclude>{| class="toccolours" style="background:#111111; border:solid silver; border-width: 3px 3px 0px 3px; float:right; width:350px; border-spacing: 0;"
|
{| style="color: white; font-size:90%; margin:0 0 0.5em 0.9em; width:320px"
| colspan="2" style="text-align: center;"| <div style="float:left;">{{#if: {{{subtype|}}} 
|[[{{ns:6}}:Icon_ItemType_{{{subtype}}}.png|32px]] 
|[[{{ns:6}}:Icon_ItemSlot_.png|32px]] 
	}}</div><!--
-->{{{name|{{PAGENAME}}}}}<br><!--
-->{{#if: {{{feat|}}} 
	| {{{feat}}} {{#switch:{{ucfirst:{{{type}}}}}
		|1h|1H=(one-handed)
		|Light={light)
		|Thrown=(thrown)
		|2h|2H=(two-handed)
		|Ranged=
		|#default={{{type}}}
		}}
	|
	}}
|-
| style="vertical-align: top; color: white;" |
'''Bound to {{SITENAME}}'''<br>
<div style="padding-left: 1em; text-align: right;"> Equips to:{{#switch:{{ucfirst:{{{type}}}}}
	|1h|1H|Light|Thrown=Main Hand, Off Hand
	|2h|2H|Ranged=Main Hand
	|#default={{{type}}}
	}}<br></div><!--
-->{{#ifeq:{{{race}}}|Warforged
	|{{#switch:{{ucfirst:{{{feat}}}}}
		|=
		|Light|Medium|Heavy={{ucfirst:{{{feat}}}}} Armor Proficiency<br>
		|Dagger|Light mace|Sickle|Club|Heavy mace|Morningstar|Quarterstaff|Heavy crossbow|Light crossbow|Dart|Throwing dagger=Simple Weapon Proficiency<br>
		|Kama|Bastard sword|Dwarven axe|Khopesh|Great crossbow|Repeating heavy crossbow|Repeating light crossbow|Shuriken=Exotic Weapon Proficiency<br>
		|Handaxe|Kukri|Light hammer|Light pick|Shortsword|Battleaxe|Heavy pick|Longsword|Rapier|Scimitar|Warhammer|Falchion|Greataxe|Greatclub|Maul|Greatsword|Shortbow|Longbow|Composite shortbow|Composite longbow|Throwing axe=Martial Weapon Proficiency<br>
		|#default={{{type}}}
		}}
	}}<!--
-->{{#ifeq:{{{type}}}|Armor
	|{{#if: {{{race|}}} 
		| Race Absolutely Required: {{{race}}}<br>
		|Race Absolutely Excluded: Warforged<br>
		}}
	|
	}}<!--
-->Minimum level:{{{minlevel}}}<br><!--
-->{{#if: {{{bind|}}} 
	| {{{bind}}}<br>
	|
	}}<!--
-->{{#if: {{{exclusive|}}} 
	|Exclusive<br>
	|
	}}<!--
-->{{#if: {{{maxdexbonus|}}} 
	| Armor bonus w/Dex: <span style="color: #8ACA8C;">+{{#expr:{{{ac}}}+{{{maxdexbonus}}}}}</span><br>
	|
	}}<!--
-->{{#if: {{{ac|}}} 
	| Armor bonus: <span style="color: #8ACA8C;">+{{{ac}}}</span><br>
	|
	}}<!--
-->{{#if: {{{maxdexbonus|}}} 
	| Max Dex Bonus: {{{maxdexbonus}}}<br>
	|
	}}{{#if:{{{asf|}}}
	|Spell Failure: <span style="color: #E4E21F;">{{{asf}}}%</span><br>
	|
	}}
{{{enhancements}}}
|}
|-
|style="padding: 0 0 0 1em;"|<!--
-->{{#ifeq: {{{durability}}} | {{{material}}} 
	| 
	|<!--
--><table style="align:center; float: center;text-align: center; color: white; background:#6A82CF; border: 1px solid white; width:320px;"><tr><td>Durability: {{{durability}}} / {{{durability}}}<br><!--
-->{{{material}}} (Hardness: {{{hardness}}})</table>
	}}
|-
|
{| style="font-size:90%; margin:0 0 0.5em 0.9em; width:320px"
|-
| style="vertical-align: top; color: white;" |{{{description}}}
|}
|-style="background:silver;"
|
{|
|style="width:10px; height:18px;"|
|style="background:#111111; color: white; -moz-border-radius: 9px; width:210px; padding: .1em 0 .1em .5em;"|<!--
-->{{#if: {{{basevalue|}}} 
	| Base Value: {{{basevalue}}}
	|
	}}
|style="width:4px;"|
|style="background:#111111; color: white; -moz-border-radius: 9px; width:80px; padding: .1em 0 .1em .5em;"|<!--
-->{{#if: {{{lbs|}}} 
	| {{{lbs}}}
	|
	}}
|}
|}
{{#switch:{{ucfirst:{{{bind|}}}}}
	|[[:Category:Binds on acquire|Binds on acquire]]=[[Category:Binds on acquire]]
	|Binds on acquire=[[Category:Binds on acquire]]
	}}
</onlyinclude>