Difference between revisions of "Template:Cosmetic"

From DDO Compendium
(Created page with "<noinclude> <pre> {{Template:Cosmetic |name = |type = |binding = |description = |droplocation = |details = |restriction = |icon= |image= |bug= }} </pre> {{TemplateDocumenta...")
 
 
(32 intermediate revisions by 2 users not shown)
Line 7: Line 7:
|description =
|description =
|droplocation =  
|droplocation =  
|details =
|storedescription =
|restriction =  
|restriction =  
|icon=
|icon=
|image=
|image=
|bug=
|bug=
|weight=
|basevalue=
|update=
|upgradeable =
|link=
|weapontype=
|otherversions=
}}
}}
</pre>
</pre>
Line 24: Line 31:
|parameter2description = What type of item is it.
|parameter2description = What type of item is it.
|parameter2values =  
|parameter2values =  
* Headgear
* Headwear
* Cloak
* Cloak
* Armor
* Armor
* Docent
* Docent
* War Paint
* Weapon
* Weapon Aura
|parameter3name = binding
|parameter3name = binding
|parameter3description = How is this item bound - leave blank it is unbound.
|parameter3description = How is this item bound - leave blank it is unbound.
Line 40: Line 50:
|parameter4description = Enter the description that is on the examine window at the bottom.
|parameter4description = Enter the description that is on the examine window at the bottom.
|parameter5name = droplocation
|parameter5name = droplocation
|parameter5description = This specifies information on where this drops.  Use [[Template:DropLocation]] to specify it.  IF there is more than one, put each on its own line starting with an asterisk.
|parameter5description = This 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.
|parameter6name = details
|parameter6name = storedescription
|parameter6description = Enter any details that a player may need to know about this (i.e. if not working correctly, etc).
|parameter6description = This is the description of the item found in the store.
|parameter7name = restriction
|parameter7name = restriction
|parameter7description = This 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]].
|parameter7description = This 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]].
Line 51: Line 61:
|parameter10name = bug
|parameter10name = bug
|parameter10description = Contains any information about a bug related to the item.  Use [[Template:Bug]]
|parameter10description = Contains any information about a bug related to the item.  Use [[Template:Bug]]
|parameter11name = weight
|parameter11description = This is the weight, in lbs, as shown on the examine window.  The "lbs" will be added.
|parameter12name = basevalue
|parameter12description = This is the base value as shown in the examine window.  Use [[Template:Price]].
|parameter13name = update
|parameter13description = Update this was released in
|parameter14name = upgradeable
|parameter14description = If 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.
|parameter15name = link
|parameter15description = The link to this page, if it isn't the same as the name.
|parameter16name = weapontype
|parameter16description = When a cosmetic weapon, the type of weapon this looks like
|parameter17name = otherversions
|parameter17description = Other related version (i.e. heroic vs legendary or epic, feytwisted, etc)
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>{{#ifeq:{{#dplvar:rendertype}}|ingredient|{{RenderIngredient|{{{name}}}|{{{icon|}}}|{{{link|}}}}}|<div class="row">
<table class="item-table background-color">
<div class="col-sm-6">
<tr>
<table class="table table-bordered table-striped table-condensed">
<td class="item-info-side">
<table class="background-color">
<tr>
<tr>
<td>
<td>
<table class="background-color">
<table class="table table-condensed">
<tr>
<tr>
<td class="icon">
<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>
<!-- Icon Image -->
{{IconImage|{{{name}}}|{{{icon|}}}}}
</td>
<td class="title">
'''{{{name}}}'''<br>[[:Category:Cosmetic {{{type}}}|Cosmetic {{{type}}}]]
</td>
</tr>
</tr>
</table>
</table>
Line 75: Line 91:
<tr>
<tr>
<td>
<td>
{{#if: {{{restriction|}}}|{{{restriction}}}<br>}}{{ItemBinding|{{{binding}}}}}<br>{{#if: {{{description|}}}|<br>
{{#if: {{{restriction|}}}|{{{restriction}}}<br>}}
<br>
{{ItemBinding|{{{binding}}}}}
'''Description:''' ''{{{description}}}''}}
</td>
</td>
</tr>
</tr>
</table>
{{#if: {{{enchantments|}}}|
<tr>
<td>
'''Enchantments:'''&nbsp;
{{{enchantments|}}}
</td>
</td>
<td class="item-image-side">
</tr>
<table class="item-image-table background-color" >
}}
{{#if: {{{image|}}}|<tr><td class="item-image">[[File:{{#if: {{{image|}}}|{{{image}}}|{{{name}}}}}.png|300px|]]</td></tr>}}
{{#if: {{{description|}}}|
<tr>
<tr>
<td class="extra-details">{{#if: {{{droplocation|}}} | '''Drop Location:'''&nbsp;
<td>'''Description:''' ''{{{description}}}''</td>
{{{droplocation}}}<br>|[[Category:Items without a Drop Location]]}}{{#if: {{{details|}}} | '''Extra Details:'''&nbsp;{{{details}}}<br>}}
</tr>
{{#if: {{{bug|}}} | '''Bugs:'''&nbsp;
}}
{{{bug}}}<br>}}</td>
{{#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>
</tr>
</table>
</table>
</td>
</td>
</tr>
</tr>
}}
</table>
</table>
[[Category:Cosmetic {{{type}}}]]
</div>
</includeonly>
<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
|image={{PageExists|File:{{{name}}}.png|{{filepath:{{{name}}}.png|nowiki}}|{{PageExists|File:{{{name}}} Icon.png|{{filepath:{{{name}}} Icon.png|nowiki}}}}}}
|description=Cosmetic Type: {{{type}}}
Drop Location: {{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{droplocation}}}|[|}}|]|}}|Category:Loot|}}|{|}}|}|}}|DropLocation{{!}}|}}|{{!}}|, }}
|site_name={{SITENAME}}
|published_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}
|theme-color=#FF0000
|keywords=Dungeons,and,Dragons,Online,DDO,{{#replace:{{{name}}}| |,}},{{#replace:{{{type|}}}| |,}},{{#replace:{{{droplocation|}}}| |,}},{{#replace:{{{upgradeable|}}}| |,}}
}}}}</includeonly>

Latest revision as of 01:30, 10 October 2023

{{Template:Cosmetic
|name =
|type =
|binding = 
|description =
|droplocation = 
|storedescription =
|restriction = 
|icon=
|image=
|bug=
|weight=
|basevalue=
|update=
|upgradeable =
|link=
|weapontype=
|otherversions=
}}

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)

Template

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