Difference between revisions of "Template:Certificate"

From DDO Compendium
 
(9 intermediate revisions by the same user not shown)
Line 4: Line 4:
|name =
|name =
|description =
|description =
|binding =
|droplocation =  
|droplocation =  
|storedescription =
|storedescription =
Line 12: Line 13:
|update=
|update=
|companionpage=
|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
Line 23: Line 26:
|parameter2name = description
|parameter2name = description
|parameter2description = Enter the description that is on the examine window at the bottom.
|parameter2description = Enter the description that is on the examine window at the bottom.
|parameter3name = droplocation
|parameter3name = binding
|parameter3description = 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.
|parameter3description = How is this item bound - leave blank it is unbound.
|parameter4name = storedescription
|parameter3values =
|parameter4description = This is the description of the item found in the store.
* btc for Bound to Character
|parameter5name = icon
* bta for Bound to Account
|parameter5description = The icon to use for this item, overrides the icon using the item name
* btcoe for Bound to Character on Equip
|parameter6name = bug
* btcoa for Bound to Character on Acquire
|parameter6description = Contains any information about a bug related to the item.  Use [[Template:Bug]]
* btaoe for Bound to Account on Equip
|parameter7name = weight
* btaoa for Bound to Account on Acquire
|parameter7description = This is the weight, in lbs, as shown on the examine window.  The "lbs" will be added.
|parameter4name = droplocation
|parameter8name = basevalue
|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.
|parameter8description = This is the base value as shown in the examine window.  Use [[Template:Price]].
|parameter5name = storedescription
|parameter9name = update
|parameter5description = This is the description of the item found in the store.
|parameter9description = Update this was released in
|parameter6name = icon
|parameter10name = companionpage
|parameter6description = The icon to use for this item, overrides the icon using the item name
|parameter10description = The location of the companion page.  Use [[Template:PageLink]]
|parameter7name = bug
|parameter7description = Contains any information about a bug related to the item.  Use [[Template:Bug]]
|parameter8name = weight
|parameter8description = This is the weight, in lbs, as shown on the examine window.  The "lbs" will be added.
|parameter9name = basevalue
|parameter9description = This is the base value as shown in the examine window.  Use [[Template:Price]].
|parameter10name = update
|parameter10description = Update this was released in
|parameter11name = companionpage
|parameter11description = The location of the companion/mount page.  Use [[Template:PageLink]]
|parameter12name = note
|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 52: 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:Companion Certificate|Companion Certificate]]
<br>{{#switch: {{lc:{{{type}}}}}
|mount=[[:Category:Mount Certificate|Mount Certificate]]
|#default=[[:Category:Companion Certificate|Companion Certificate]]}}
</td>
</td>
</tr>
</tr>
Line 58: Line 78:
</td>
</td>
</tr>
</tr>
{{#if: {{{binding|}}}|
<tr>
<td>{{ItemBinding|{{{binding}}}}}</td>
</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 85: Line 115:
<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: {{{companionpage|}}} |
{{#if: {{{companionpage|}}} |
<tr>
<tr>
<td class="extra-details">'''Companion Added:'''&nbsp;{{RenderLink|{{{companionpage}}}}}</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:Companion Certificate]]{{#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=Companion Certificate
|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}}}| |,}},Companion,Certificate,{{#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.