Difference between revisions of "Template:Certificate"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(17 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
{{Template:Certificate | {{Template:Certificate | ||
|name = | |name = | ||
|description = | |||
|binding = | |binding = | ||
|droplocation = | |droplocation = | ||
|storedescription = | |storedescription = | ||
|icon= | |icon= | ||
|bug= | |bug= | ||
|weight= | |weight= | ||
|basevalue= | |basevalue= | ||
|update= | |update= | ||
|companionpage= | |||
|note= | |||
|type= | |||
}} | }} | ||
</pre> | </pre> | ||
{{TemplateDocumentation | {{TemplateDocumentation | ||
|name = | |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= | |category=Companion Templates | ||
|usesnamedparameters = true | |usesnamedparameters = true | ||
|parameter1name = name | |parameter1name = name | ||
|parameter1description = The name of the item. | |parameter1description = The name of the item. | ||
|parameter2name = binding | |parameter2name = description | ||
| | |parameter2description = Enter the description that is on the examine window at the bottom. | ||
| | |parameter3name = binding | ||
|parameter3description = How is this item bound - leave blank it is unbound. | |||
|parameter3values = | |||
* btc for Bound to Character | * btc for Bound to Character | ||
* bta for Bound to Account | * bta for Bound to Account | ||
Line 31: | 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 = droplocation | |parameter4name = droplocation | ||
|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. | |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. | ||
Line 38: | Line 40: | ||
|parameter5description = This is the description of the item found in the store. | |parameter5description = This is the description of the item found in the store. | ||
|parameter6name = icon | |parameter6name = icon | ||
|parameter6description = The icon to use for this item, overrides the | |parameter6description = The icon to use for this item, overrides the icon using the item name | ||
|parameter7name = | |parameter7name = bug | ||
|parameter7description | |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 62: | 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> | <br>{{#switch: {{lc:{{{type}}}}} | ||
|mount=[[:Category:Mount Certificate|Mount Certificate]] | |||
|#default=[[:Category:Companion Certificate|Companion Certificate]]}} | |||
</td> | </td> | ||
</tr> | </tr> | ||
Line 68: | 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 97: | 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> | <tr> | ||
<td> | <td> | ||
{{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}}{{#if: | {{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}}{{#if: | ||
{{{storedescription|}}} | {{{storedescription|}}}}}|[[Category:Items without a Drop Location]]}} | ||
{{{storedescription|}}} | '''Store Description:''' {{{storedescription}}} | </td> | ||
{{#if: {{{bug|}}} | '''Bugs:''' | </tr> | ||
{{#if: {{{storedescription|}}}{{{bug|}}}| | |||
<tr> | |||
<td>{{#if: | |||
{{{storedescription|}}} | '''Store Description:''' {{{storedescription|}}}}} | |||
{{#if: {{{bug|}}} | <br>'''Bugs:''' | |||
{{{bug}}}}} | {{{bug}}}}} | ||
</td> | </td> | ||
</tr> | </tr>}} | ||
{{#if: {{{ | {{#if: {{{companionpage|}}} | | ||
<tr> | <tr> | ||
<td class="extra-details | <td class="extra-details">{{#switch: {{lc:{{{type}}}}} | ||
|mount='''Mount Added:''' | |||
|#default='''Companion Added:'''}} {{RenderLink|{{{companionpage}}}}}</td> | |||
</tr> | </tr> | ||
}} | }} | ||
</table> | </table> | ||
</div> | </div> | ||
</div> | </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={{ | |image={{PageExists|File:{{{name}}}.png|{{filepath:{{{name}}}.png|nowiki}}|{{PageExists|File:{{{name}}} Icon.png|{{filepath:{{{name}}} Icon.png|nowiki}}}}}} | ||
|description= | |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}}}| |,}},{{# | |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 | |
name | The name of the item. |
description | Enter the description that is on the examine window at the bottom. |
binding | How is this item bound - leave blank it is unbound. Possible Values:
|
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. |
icon | The icon to use for this item, overrides the icon using the item name |
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 |
companionpage | The location of the companion/mount page. Use Template:PageLink |
note | Any notes to display |
type | What type of certificate is this
|
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.