Difference between revisions of "Template:Certificate"

From DDO Compendium
 
(5 intermediate revisions by the same user not shown)
Line 14: Line 14:
|companionpage=
|companionpage=
|note=
|note=
|type=
}}
}}
</pre>
</pre>
Line 49: Line 50:
|parameter10description = Update this was released in
|parameter10description = Update this was released in
|parameter11name = companionpage
|parameter11name = companionpage
|parameter11description = The location of the companion page.  Use [[Template:PageLink]]
|parameter11description = The location of the companion/mount page.  Use [[Template:PageLink]]
|parameter12name = note
|parameter12name = note
|parameter12description = Any notes to display
|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 65: 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 73: Line 80:
{{#if: {{{binding|}}}|
{{#if: {{{binding|}}}|
<tr>
<tr>
<td>
<td>{{ItemBinding|{{{binding}}}}}</td>
{{ItemBinding|{{{binding}}}}}
</td>
</tr>
</tr>
}}
}}
Line 110: 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]]}}
{{{storedescription|}}}}}|[[Category:Items without a Drop Location]]}}
</td>
</td>
</tr>
</tr>
{{#if: {{{storedescription|}}{{{bug|}}}|
{{#if: {{{storedescription|}}}{{{bug|}}}|
<tr>
<tr>
<td>{{#if:
<td>{{#if:
{{{storedescription|}}} | '''Store Description:'''&nbsp;{{{storedescription}}}}}
{{{storedescription|}}} | '''Store Description:'''&nbsp;{{{storedescription|}}}}}
{{#if: {{{bug|}}} | <br>'''Bugs:'''&nbsp;
{{#if: {{{bug|}}} | <br>'''Bugs:'''&nbsp;
{{{bug}}}}}
{{{bug}}}}}
Line 123: Line 128:
{{#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.