Difference between revisions of "Template:Cosmetic"
From DDO Compendium
MNDeveloper (talk | contribs) |
m (converting template over to new style; adding seo) |
||
Line 62: | Line 62: | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<includeonly>< | <includeonly> | ||
< | <div class="row"> | ||
<div class="col-sm-6"> | |||
<table class=" | <table class="table table-bordered table-striped table-condensed"> | ||
<tr> | <tr> | ||
<td> | <td> | ||
<table class=" | <table class="table table-condensed"> | ||
<tr> | <tr> | ||
<td class=" | <td class="col-sm-1">{{IconImage|{{{name}}}|{{{icon|}}}}}</td> | ||
<td class="col-sm-11 center"> | |||
{{IconImage|{{{name}}}|{{{icon|}}}}} | <span class="big">'''{{{name}}}'''</span> | ||
<br>[[:Category:Cosmetic {{{type}}}|Cosmetic {{{type}}}]] | |||
</td> | </td> | ||
< | </tr> | ||
</table> | |||
</td> | </td> | ||
</tr> | </tr> | ||
</ | <tr> | ||
<td> | |||
{{#if: {{{restriction|}}}|{{{restriction}}}<br>}} | |||
{{ItemBinding|{{{binding}}}}} | |||
</td> | |||
</tr> | |||
{{#if: {{{enchantments|}}}| | |||
<tr> | |||
<td> | |||
'''Enchantments:''' | |||
{{{enchantments|}}}{{ItemMaterialDR|{{{material}}}}} | |||
</td> | </td> | ||
</tr> | </tr> | ||
}} | |||
<tr> | <tr> | ||
<td> | <td> | ||
{{ | {{ItemMaterial|{{{material}}}|{{#if: {{{hardness|}}}|{{{hardness}}}}}|{{#if: | ||
{{{durability|}}}|{{{durability}}}|}}}} | |||
</td> | </td> | ||
</tr>{{#if: {{{weight|}}}{{{basevalue|}}}|<tr><td><table class=" | </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> | </table> | ||
</td> | </td> | ||
< | </tr> | ||
<table class=" | }} | ||
<tr><td | </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> | |||
<tr> | <tr> | ||
<td | <td> | ||
{{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}}{{#if: | |||
{{{storedescription|}}} |<br><br>}}|[[Category:Items without a Drop Location]]}}{{#if: | |||
{{{storedescription|}}} | '''Store Description:''' {{{storedescription}}}<br>}} | |||
{{#if: {{{bug|}}} | '''Bugs:''' | {{#if: {{{bug|}}} | '''Bugs:''' | ||
{{{bug}}}< | {{{bug}}}}} | ||
</td> | |||
</tr> | |||
{{#if: {{{replaced|}}} | | |||
<tr> | |||
<td class="extra-details topborder">{{{replaced}}}</td> | |||
</tr> | </tr> | ||
}} | |||
</table> | </table> | ||
</ | </div> | ||
</ | </div>[[Category:Cosmetic {{{type}}}]]{{#if: {{{update|}}}|[[Category: Update {{{update}}} Loot]]}} | ||
{{#seo: | |||
|type=website | |||
|image={{#ifexist:File:{{{name}}}.png|{{filepath:{{{name}}}.png|nowiki}}|{{#ifexist:File:{{{name}}} Icon.png|{{filepath:{{{name}}} Icon.png|nowiki}}|}}}} | |||
|description=Cosmetic Type: {{{type}}} | |||
Min Level: {{{minlevel}}} | |||
Material: {{{material}}} | |||
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> |
Revision as of 13:56, 9 November 2020
{{Template:Cosmetic |name = |type = |binding = |description = |droplocation = |storedescription = |restriction = |icon= |image= |bug= |weight= |basevalue= |update= }}
Item[edit]
This template is used to render information about a cosmetic.
Usage[edit]
Parameter Documentation | |
name | The name of the item. |
type | What type of item is it. Possible Values:
|
binding | How is this item bound - leave blank it is unbound. Possible Values:
|
description | Enter the description that is on the examine window at the bottom. |
droplocation | 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. |
storedescription | This is the description of the item found in the store. |
restriction | 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. |
icon | The icon to use for this item, overrides the image using the item name |
image | Image file, use if the image doesn't change between heroic and epic types. Do not include extension. |
bug | Contains any information about a bug related to the item. Use Template:Bug |
weight | This is the weight, in lbs, as shown on the examine window. The "lbs" will be added. |
basevalue | This is the base value as shown in the examine window. Use Template:Price. |
update | Update this was released in |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.