Difference between revisions of "Template:Cosmetic"

From DDO Compendium
 
(14 intermediate revisions by the same user not shown)
Line 19: Line 19:
|weapontype=
|weapontype=
|otherversions=
|otherversions=
|note=
|enchantments =
|options=
|material =
|hardness =
|durability =
|extracategories=
}}
}}
</pre>
</pre>
Line 75: Line 82:
|parameter17name = otherversions
|parameter17name = otherversions
|parameter17description = Other related version (i.e. heroic vs legendary or epic, feytwisted, etc)
|parameter17description = Other related version (i.e. heroic vs legendary or epic, feytwisted, etc)
|parameter18name = note
|parameter18description = Any notes related to this cosmetic.
|parameter19name = enchantments
|parameter19description = These are a bulleted list of templates (each on its own line starting with an asterisk) found in [[:Category:Item_Enchantment_Template|Enchantment Templates]]. If the enchantment is a one just for this item, just enter the information directly. The enchantment that is added because of the material (i.e. Flametouched Iron) is automatically added.
|parameter27name = options
|parameter27description = Use [[Template:ItemOptions]], displays options about the item
|parameter28name = material
|parameter28description = Enter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron).
|parameter29name = hardness
|parameter29description = Enter the hardness shown in the examine window.
|parameter30name = durability
|parameter30description = Enter the maximum durability value shown in the examine window.
|parameter31name = extracategories
|parameter31description = A list of extra categories for this weapon, use [[Template:CategoryList]]
}}
}}
</noinclude>
</noinclude>
<includeonly>{{#ifeq:{{#dplvar:rendertype}}|ingredient|{{RenderIngredient|{{{name}}}|{{{icon|}}}|{{{link|}}}}}|<div class="row">
<includeonly>{{#ifeq:{{#dplvar:rendertype}}|ingredient|{{RenderIngredient|{{{name}}}|{{{icon|}}}|{{{link|}}}}}|<div class="row">
<div class="col-sm-6">
<div class="col-sm-6"><table class="table table-bordered table-striped table-condensed"><tr><td><table class="table table-condensed"><tr><td class="col-sm-1">{{IconImageWithLink|{{{name}}}|{{{icon|}}}}}</td><td class="col-sm-11 center"><span class="big">{{{name}}}</span><br>[[:Category:Cosmetic {{{type}}}|Cosmetic {{{type}}}]]{{#if: {{{weapontype|}}}|<br>Looks like a {{{weapontype}}}}}</td></tr></table></td></tr><tr><td>{{#if: {{{restriction|}}}|{{{restriction}}}<br>}}
<table class="table table-bordered table-striped table-condensed">
{{ItemBinding|{{{binding}}}}}{{#if: {{{options|}}}|<br>{{{options}}}}}</td></tr>{{#if: {{{enchantments|}}}|<tr><td>'''Enchantments:'''&nbsp;
<tr>
{{{enchantments|}}}</td></tr>}}{{#if: {{{material|}}}|<tr><td>{{ItemMaterial|{{{material}}}|{{#if:{{{hardness|}}}|{{{hardness}}} |}}|{{#if:{{{durability|}}}|{{{durability}}}|}}}}</td></tr>}}{{#if: {{{description|}}}|<tr><td>'''Description:''' ''{{{description}}}''</td></tr>}}{{#if: {{{weight|}}}{{{basevalue|}}}|<tr><td><table class="table table-condensed"><tr><td class="col-sm-6 text-left">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}}</td><td class="col-sm-6 text-right">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td></tr></table></td></tr>}}</table></div><div class="visible-xs-block hidden-sm hidden-md hidden-lg"><hr></div><div class="col-sm-6"><table class="table table-bordered table-striped table-condensed"><tr style="background: rgb(0,0,0);"><td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td></tr>{{#if: {{{droplocation|}}} | <tr><td>'''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}</td></tr>|[[Category:Items without a Drop Location]]}}{{#if: {{{storedescription|}}} | <tr><td>'''Store Description:'''&nbsp;{{{storedescription}}}</td></tr>}}{{#if: {{{bug|}}} | <tr><td>'''Bugs:'''&nbsp;
<td>
{{{bug}}}</td></tr>}}{{#if: {{{upgradeable|}}} | <tr><td class="extra-details">'''Upgradeable:'''&nbsp;{{WrapMultiLine|{{{upgradeable}}}}}</td></tr>}}{{#if: {{{replaced|}}} |<tr><td class="extra-details topborder">{{{replaced}}}</td></tr>}}
<table class="table table-condensed">
{{#if: {{{note|}}} | <tr><td class="extra-details topborder">'''Notes:'''&nbsp;
<tr>
{{{note}}}</td></tr>}}{{#if: {{{otherversions|}}} | <tr><td class="extra-details topborder">'''Related Items:'''{{WrapMultiLine|{{{otherversions}}}}}</td></tr>}}</table></div></div>[[Category:Cosmetic {{{type}}}]]{{#if: {{{update|}}}|[[Category: Update {{{update}}} Loot]]}}{{#if: {{{extracategories|}}}|{{{extracategories}}}}}{{#dplvar:set|seoimage|{{PageExists|File: {{{image|}}}.png|{{filepath:{{{image|}}}.png}}|}}}}{{#if: {{#dplvar:seoimage|}}||{{#dplvar:set|seoimage|{{PageExists|File: {{{name|}}}.png|{{filepath:{{{name|}}}.png}}|}}}}}}{{#if: {{#dplvar:seoimage|}}||{{#dplvar:set|seoimage|{{PageExists|File: {{{icon|}}} Icon.png|{{filepath:{{{icon|}}} Icon.png}}}}}}}}{{#if: {{#dplvar:seoimage|}}||{{#dplvar:set|seoimage|{{PageExists|File: {{{name|}}} Icon.png|{{filepath:{{{name|}}} Icon.png}}}}}}}}{{#seo:
<td class="col-sm-1">{{IconImageWithLink|{{{name}}}|{{{icon|}}}}}</td><td class="col-sm-11 center"><span class="big">{{{name}}}</span><br>[[:Category:Cosmetic {{{type}}}|Cosmetic {{{type}}}]]{{#if: {{{weapontype|}}}|<br>Looks like a {{{weapontype}}}}}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
{{#if: {{{restriction|}}}|{{{restriction}}}<br>}}
{{ItemBinding|{{{binding}}}}}
</td>
</tr>
{{#if: {{{enchantments|}}}|
<tr>
<td>
'''Enchantments:'''&nbsp;
{{{enchantments|}}}
</td>
</tr>
}}
{{#if: {{{description|}}}|
<tr>
<td>'''Description:''' ''{{{description}}}''</td>
</tr>
}}
{{#if: {{{weight|}}}{{{basevalue|}}}|
<tr>
<td>
<table class="table table-condensed">
<tr>
<td class="col-sm-6 text-left">{{#if:{{{basevalue|}}}|Base Value: {{{basevalue}}}}}</td>
<td class="col-sm-6 text-right">{{#if:{{{weight|}}}|{{{weight}}} lbs}}</td>
</tr>
</table>
</td>
</tr>
}}
</table>
</div>
<div class="visible-xs-block hidden-sm hidden-md hidden-lg">
<hr>
</div>
<div class="col-sm-6">
<table class="table table-bordered table-striped table-condensed">
<tr style="background: rgb(0,0,0);">
<td>[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|center|300px|]]</td>
</tr>
{{#if: {{{droplocation|}}} | <tr><td>'''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}</td></tr>|[[Category:Items without a Drop Location]]}}{{#if: {{{storedescription|}}} | <tr><td>'''Store Description:'''&nbsp;{{{storedescription}}}</td></tr>}}
{{#if: {{{bug|}}} | <tr><td>'''Bugs:'''&nbsp;
{{{bug}}}</td></tr>}}
{{#if: {{{upgradeable|}}} | <tr><td class="extra-details">'''Upgradeable:'''&nbsp;{{WrapMultiLine|{{{upgradeable}}}}}</td></tr>}}{{#if: {{{replaced|}}} |
<tr>
<td class="extra-details topborder">{{{replaced}}}</td>
</tr>
}}
{{#if: {{{otherversions|}}} | <tr><td class="extra-details topborder">'''Related Items:'''
{{WrapMultiLine|{{{otherversions}}}}}</td></tr>}}</table>
</div>
</div>[[Category:Cosmetic {{{type}}}]]{{#if: {{{update|}}}|[[Category: Update {{{update}}} Loot]]}}
{{#seo:
|type=website
|type=website
|image={{#ifexist:File:{{{name}}}.png|{{filepath:{{{name}}}.png|nowiki}}|{{#ifexist:File:{{{name}}} Icon.png|{{filepath:{{{name}}} Icon.png|nowiki}}|}}}}
|image={{#if: {{#dplvar:seoimage}}|{{#dplvar:seoimage}}}}
|description=Cosmetic Type: {{{type}}}
|description=
Drop Location: {{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{droplocation}}}|[|}}|]|}}|Category:Loot|}}|{|}}|}|}}|DropLocation{{!}}|}}|{{!}}|, }}
Cosmetic Type: {{{type}}}
Drop Location: {{#dplvar:seodroplocation}}
|site_name={{SITENAME}}
|site_name={{SITENAME}}
|published_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}
|published_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}
|theme-color=#FF0000
|theme-color=#FF0000
|keywords=Dungeons,and,Dragons,Online,DDO,{{#replace:{{{name}}}| |,}},{{#replace:{{{type|}}}| |,}},{{#replace:{{{droplocation|}}}| |,}},{{#replace:{{{upgradeable|}}}| |,}}
|keywords=Dungeons,and,Dragons,Online,DDO,{{#replace:{{{name}}}| |,}},{{#replace:{{{type|}}}| |,}},{{#replace:{{#dplvar:seodroplocation}}| |,}}
}}}}</includeonly>
}}}}{{#dplvar:set|seoimage|}}{{#dplvar:set|seodroplocation|}}</includeonly>

Latest revision as of 03:15, 22 December 2024

{{Template:Cosmetic
|name =
|type =
|binding = 
|description =
|droplocation = 
|storedescription =
|restriction = 
|icon=
|image=
|bug=
|weight=
|basevalue=
|update=
|upgradeable =
|link=
|weapontype=
|otherversions=
|note=
|enchantments =
|options=
|material =
|hardness =
|durability =
|extracategories=
}}

Item[edit]

This template is used to render information about a cosmetic.

Usage[edit]

Parameter Documentation
nameThe name of the item.
typeWhat type of item is it.
Possible Values:
  • Headwear
  • Cloak
  • Armor
  • Docent
  • War Paint
  • Weapon
  • Weapon Aura
bindingHow is this item bound - leave blank it is unbound.
Possible Values:
  • btc for Bound to Character
  • bta for Bound to Account
  • btcoe for Bound to Character on Equip
  • btcoa for Bound to Character on Acquire
  • btaoe for Bound to Account on Equip
  • btaoa for Bound to Account on Acquire
descriptionEnter the description that is on the examine window at the bottom.
droplocationThis specifies information on where this drops. Use Template:DropLocation, Template:ItemIconicReceived, Template:StorePurchase, Template:CollectablePurchase, Template:RaidRunePurchase to specify it. IF there is more than one, put each on its own line starting with an asterisk.
storedescriptionThis is the description of the item found in the store.
restrictionThis is used when there is some kind of restriction. If it is a trait (Lawful, Good, etc), use Template:ItemRequiredTrait. If there is a race restriction, use Template:ItemRestrictedRace.
iconThe icon to use for this item, overrides the image using the item name
imageImage file, use if the image doesn't change between heroic and epic types. Do not include extension.
bugContains any information about a bug related to the item. Use Template:Bug
weightThis is the weight, in lbs, as shown on the examine window. The "lbs" will be added.
basevalueThis is the base value as shown in the examine window. Use Template:Price.
updateUpdate this was released in
upgradeableIf this item is upgradeable, use Template:ItemUpgrade. If there is more than one (i.e. it is in the middle of a crafting chain), include multiple templates in a bulleted list.
linkThe link to this page, if it isn't the same as the name.
weapontypeWhen a cosmetic weapon, the type of weapon this looks like
otherversionsOther related version (i.e. heroic vs legendary or epic, feytwisted, etc)
noteAny notes related to this cosmetic.
enchantmentsThese are a bulleted list of templates (each on its own line starting with an asterisk) found in Enchantment Templates. If the enchantment is a one just for this item, just enter the information directly. The enchantment that is added because of the material (i.e. Flametouched Iron) is automatically added.
optionsUse Template:ItemOptions, displays options about the item
materialEnter what the item is made from (i.e. Leather, Glass, Gem, Flametouched Iron).
hardnessEnter the hardness shown in the examine window.
durabilityEnter the maximum durability value shown in the examine window.
extracategoriesA list of extra categories for this weapon, use Template:CategoryList

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.