Difference between revisions of "Template:Certificate"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(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:''' {{WrapMultiLine|{{{droplocation}}}}}{{#if: | {{#if: {{{droplocation|}}} | '''Where To Find:''' {{WrapMultiLine|{{{droplocation}}}}}{{#if: | ||
{{{storedescription|}}} | {{{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:''' {{{storedescription}}}}} | {{{storedescription|}}} | '''Store Description:''' {{{storedescription|}}}}} | ||
{{#if: {{{bug|}}} | <br>'''Bugs:''' | {{#if: {{{bug|}}} | <br>'''Bugs:''' | ||
{{{bug}}}}} | {{{bug}}}}} | ||
Line 123: | Line 128: | ||
{{#if: {{{companionpage|}}} | | {{#if: {{{companionpage|}}} | | ||
<tr> | <tr> | ||
<td class="extra-details">'''Companion Added:''' {{RenderLink|{{{companionpage}}}}}</td> | <td class="extra-details">{{#switch: {{lc:{{{type}}}}} | ||
|mount='''Mount Added:''' | |||
|#default='''Companion Added:'''}} {{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={{ | |image={{PageExists|File:{{{name}}}.png|{{filepath:{{{name}}}.png|nowiki}}|{{PageExists|File:{{{name}}} Icon.png|{{filepath:{{{name}}} Icon.png|nowiki}}}}}} | ||
| | |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 | |
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.