Difference between revisions of "Template:Certificate"

From DDO Compendium
(Created page with "<noinclude> <pre> {{Template:Certificate |name = |type = |binding = |description = |droplocation = |storedescription = |icon= |image= |bug= |weight= |basevalue= |update= }}...")
 
 
(18 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{Template:Certificate
{{Template:Certificate
|name =
|name =
|type =
|description =
|binding =  
|binding =  
|description =
|droplocation =  
|droplocation =  
|storedescription =
|storedescription =
|icon=
|icon=
|image=
|bug=
|bug=
|weight=
|weight=
|basevalue=
|basevalue=
|update=
|update=
|companionpage=
|note=
|type=
}}
}}
</pre>
</pre>
{{TemplateDocumentation
{{TemplateDocumentation
|name = Item
|name = Certificate
|description = This template is used to render information about a cosmetic.
|description = This template is used to render information about a cosmetic.
|category=Item Templates
|category=Companion Templates
|usesnamedparameters = true
|usesnamedparameters = true
|parameter1name = name
|parameter1name = name
|parameter1description = The name of the item.
|parameter1description = The name of the item.
|parameter2name = type
|parameter2name = description
|parameter2description = What type of item is it.
|parameter2description = Enter the description that is on the examine window at the bottom.
|parameter2values =
* Headwear
* Cloak
* Armor
* Docent
* War Paint
|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 35:
* btaoe for Bound to Account on Equip
* btaoe for Bound to Account on Equip
* btaoa for Bound to Account on Acquire
* btaoa for Bound to Account on Acquire
|parameter4name = description
|parameter4name = droplocation
|parameter4description = Enter the description that is on the examine window at the bottom.
|parameter4description = 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.
|parameter5name = droplocation
|parameter5name = storedescription
|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.
|parameter5description = This is the description of the item found in the store.
|parameter6name = storedescription
|parameter6name = icon
|parameter6description = This is the description of the item found in the store.
|parameter6description = The icon to use for this item, overrides the icon using the item name
|parameter7name = icon
|parameter7name = bug
|parameter7description = The icon to use for this item, overrides the image using the item name
|parameter7description = Contains any information about a bug related to the item.  Use [[Template:Bug]]
|parameter8name = image
|parameter8name = weight
|parameter8description = Image file, use if the image doesn't change between heroic and epic types.  Do not include extension.
|parameter8description = This is the weight, in lbs, as shown on the examine window.  The "lbs" will be added.
|parameter9name = bug
|parameter9name = basevalue
|parameter9description = Contains any information about a bug related to the item.  Use [[Template:Bug]]
|parameter9description = This is the base value as shown in the examine window.  Use [[Template:Price]].
|parameter10name = weight
|parameter10name = update
|parameter10description = This is the weight, in lbs, as shown on the examine window.  The "lbs" will be added.
|parameter10description = Update this was released in
|parameter11name = basevalue
|parameter11name = companionpage
|parameter11description = This is the base value as shown in the examine window.  Use [[Template:Price]].
|parameter11description = The location of the companion/mount page.  Use [[Template:PageLink]]
|parameter12name = update
|parameter12name = note
|parameter12description = Update this was released in
|parameter12description = Any notes to display
|parameter13name = type
|parameter13description = What type of certificate is this
* Companion - default if not specified
* Mount - horse, unicorn, etc.
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>{{#ifeq:{{#dplvar:rendertype}}|ingredient|{{RenderIngredient|{{{name}}}|{{{icon|}}}}}|
<div class="row">
<div class="row">
<div class="col-sm-6">
<div class="col-sm-6">
Line 71: Line 70:
<td class="col-sm-11 center">
<td class="col-sm-11 center">
<span class="big">'''{{{name}}}'''</span>
<span class="big">'''{{{name}}}'''</span>
<br>[[:Category:Cosmetic {{{type}}}|Cosmetic {{{type}}}]]
<br>{{#switch: {{lc:{{{type}}}}}
|mount=[[:Category:Mount Certificate|Mount Certificate]]
|#default=[[:Category:Companion Certificate|Companion Certificate]]}}
</td>
</td>
</tr>
</tr>
Line 77: Line 78:
</td>
</td>
</tr>
</tr>
{{#if: {{{binding|}}}|
<tr>
<tr>
<td>
<td>{{ItemBinding|{{{binding}}}}}</td>
{{ItemBinding|{{{binding}}}}}
</td>
</tr>
</tr>
}}
{{#if: {{{description|}}}|
{{#if: {{{description|}}}|
<tr>
<tr>
<td>'''Description:''' ''{{{description}}}''</td>
<td>'''Description:''' ''{{{description}}}''</td>
</tr>
}}
{{#if: {{{note|}}}|
<tr>
<td>'''Note:''' ''{{{note}}}''</td>
</tr>
</tr>
}}
}}
Line 106: Line 112:
<div class="col-sm-6">
<div class="col-sm-6">
<table class="table table-bordered table-striped table-condensed">
<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:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}{{#if:
{{#if: {{{droplocation|}}} | '''Where To Find:'''&nbsp;{{WrapMultiLine|{{{droplocation}}}}}{{#if:
{{{storedescription|}}} |<br><br>}}|[[Category:Items without a Drop Location]]}}{{#if:
{{{storedescription|}}}}}|[[Category:Items without a Drop Location]]}}
{{{storedescription|}}} | '''Store Description:'''&nbsp;{{{storedescription}}}<br>}}
</td>
{{#if: {{{bug|}}} | '''Bugs:'''&nbsp;
</tr>
{{#if: {{{storedescription|}}}{{{bug|}}}|
<tr>
<td>{{#if:
{{{storedescription|}}} | '''Store Description:'''&nbsp;{{{storedescription|}}}}}
{{#if: {{{bug|}}} | <br>'''Bugs:'''&nbsp;
{{{bug}}}}}
{{{bug}}}}}
</td>
</td>
</tr>
</tr>}}
{{#if: {{{replaced|}}} |
{{#if: {{{companionpage|}}} |
<tr>
<tr>
<td class="extra-details topborder">{{{replaced}}}</td>
<td class="extra-details">{{#switch: {{lc:{{{type}}}}}
|mount='''Mount Added:'''
|#default='''Companion Added:'''}}&nbsp;{{RenderLink|{{{companionpage}}}}}</td>
</tr>
</tr>
}}
}}
</table>
</table>
</div>
</div>
</div>[[Category:Cosmetic {{{type}}}]]{{#if: {{{update|}}}|[[Category: Update {{{update}}} Loot]]}}
</div>{{#switch: {{lc:{{{type}}}}}
|mount=[[Category:Mount Certificate]]
|#default=[[Category:Companion Certificate]]}}{{#if: {{{update|}}}|[[Category: Update {{{update}}} Loot]]}}
{{#seo:
{{#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={{PageExists|File:{{{name}}}.png|{{filepath:{{{name}}}.png|nowiki}}|{{PageExists|File:{{{name}}} Icon.png|{{filepath:{{{name}}} Icon.png|nowiki}}}}}}
|description=Cosmetic Type: {{{type}}}
|description={{#switch: {{lc:{{{type}}}}}
|mount=Mount Certificate
|#default=Companion Certificate}}
Drop Location: {{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{droplocation}}}|[|}}|]|}}|Category:Loot|}}|{|}}|}|}}|DropLocation{{!}}|}}|{{!}}|, }}
Drop Location: {{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{droplocation}}}|[|}}|]|}}|Category:Loot|}}|{|}}|}|}}|DropLocation{{!}}|}}|{{!}}|, }}
|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}}}| |,}},{{#switch: {{lc:{{{type}}}}}
}}</includeonly>
|mount=Mount
|#default=Companion}},Certificate,{{#replace:{{{droplocation|}}}| |,}},{{#replace:{{{upgradeable|}}}| |,}}
}}}}</includeonly>

Latest revision as of 17:33, 24 September 2022

{{Template:Certificate
|name =
|description =
|binding = 
|droplocation = 
|storedescription =
|icon=
|bug=
|weight=
|basevalue=
|update=
|companionpage=
|note=
|type=
}}

Certificate[edit]

This template is used to render information about a cosmetic.

Usage[edit]

Parameter Documentation
nameThe name of the item.
descriptionEnter the description that is on the examine window at the bottom.
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
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.
iconThe icon to use for this item, overrides the icon using the item name
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
companionpageThe location of the companion/mount page. Use Template:PageLink
noteAny notes to display
typeWhat type of certificate is this
  • Companion - default if not specified
  • Mount - horse, unicorn, etc.
  • Template

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