Difference between revisions of "Template:Companion"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
|description = | |description = | ||
|icon= | |icon= | ||
|image | |image= | ||
|bug= | |bug= | ||
|tricks= | |tricks= | ||
|othertricks= | |othertricks= | ||
|certificate= | |||
|droplocation= | |||
|update= | |||
}} | }} | ||
</pre> | </pre> | ||
Line 21: | Line 24: | ||
|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 = icon | |parameter3name = icon | ||
|parameter3description = The icon to use for this item, overrides the icon using the item name | |parameter3description = The icon to use for this item, overrides the icon using the item name, default is 'name Certificate' | ||
|parameter4name = image | |parameter4name = image | ||
|parameter4description = The image for the companion, if the default named one doesn't work. | |parameter4description = The image for the companion, if the default named one doesn't work. | ||
Line 30: | Line 33: | ||
|parameter7name = othertricks | |parameter7name = othertricks | ||
|parameter7description = Contains a bulleted list of tricks that are only available separately. | |parameter7description = Contains a bulleted list of tricks that are only available separately. | ||
|parameter8name = droplocation | |||
|parameter8description = This specifies information on where this drops. Use one of the drop location templates to specify it. The list of templates can be found here: [[:Category:DropLocation Templates]]. If there is more than one, put each on its own line starting with an asterisk. ONLY USE IF THERE IS NOT A CERTIFICATE | |||
|parameter9name = update | |||
|parameter9description = Which update was this item added to the game in. | |||
}} | }} | ||
</noinclude> | </noinclude> | ||
Line 40: | Line 47: | ||
<table class="table table-condensed"> | <table class="table table-condensed"> | ||
<tr> | <tr> | ||
<td class="col-sm-1">{{ | <td class="col-sm-1">{{IconImageWithLink|{{{name}}} Certificate|{{{icon|}}}}}</td> | ||
<td class="col-sm-11 center"> | <td class="col-sm-11 center"> | ||
<span class="big">'''{{{name}}}'''</span> | <span class="big">'''{{{name}}}'''</span> | ||
Line 71: | Line 78: | ||
<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> | |||
<td>'''Added to Stable Using:''' {{#if: {{{certificate|}}}|{{RenderLink|{{{certificate|}}}}}|{{#if: {{{droplocation|}}}|{{WrapMultiLine|{{{droplocation}}}}}|[[{{{name}}} Certificate]]}}}}</td> | |||
</tr> | |||
{{#if: {{{bug|}}}|<tr> | {{#if: {{{bug|}}}|<tr> | ||
<td> | <td> | ||
Line 79: | Line 92: | ||
</table> | </table> | ||
</div> | </div> | ||
</div>[[Category:Companion]]{{#if: {{{update|}}}|[[Category: Update {{{update}}} Companions]]}} | </div>[[Category:Companion]]{{#if: {{{update|}}}|[[Category: Update {{{update}}} Companions]] | [[Category:Items without an Update]]}} | ||
{{#seo: | {{#dplvar:set|seoimage|{{PageExists|File: {{{image|}}}.png|{{filepath:{{{image|}}}.png}}|}}}}{{#if: {{#dplvar:seoimage|}}||{{#dplvar:set|seoimage|{{PageExists|File: {{{name|}}}.png|{{filepath:{{{name|}}}.png}}|}}}}}}{{#if: {{#dplvar:seoimage|}}||{{#dplvar:set|seoimage|{{PageExists|File: {{{icon|}}} Icon.png|{{filepath:{{{icon|}}} Icon.png}}}}}}}}{{#if: {{#dplvar:seoimage|}}||{{#dplvar:set|seoimage|{{PageExists|File: {{{name|}}} Icon.png|{{filepath:{{{name|}}} Icon.png}}}}}}}}{{#seo: | ||
|type=website | |type=website | ||
|image={{# | |image={{#if: {{#dplvar:seoimage|}}|{{#dplvar:seoimage}}}} | ||
|description= | |||
Type: Companion | |||
Added to Stable Using: {{#if: {{{certificate|}}}|{{#replace:{{#replace:{{{certificate}}}|[|}}|]|}}|{{#if: {{#dplvar:seodroplocation}}|{{#dplvar:seodroplocation}}|{{{name}}} Certificate}}}} | |||
|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 | |keywords=Dungeons,and,Dragons,Online,DDO,{{#replace:{{{name}}}| |,}},Companion | ||
}}</includeonly> | }}{{#dplvar:set|seoimage|}}{{#dplvar:set|seodroplocation|}}</includeonly> |
Latest revision as of 21:40, 21 December 2024
{{Template:Companion |name = |description = |icon= |image= |bug= |tricks= |othertricks= |certificate= |droplocation= |update= }}
Companion[edit]
This template is used to render information about a companion.
Usage[edit]
Parameter Documentation | |
name | The name of the companion. |
description | Enter the description that is on the examine window at the bottom. |
icon | The icon to use for this item, overrides the icon using the item name, default is 'name Certificate' |
image | The image for the companion, if the default named one doesn't work. |
bug | Contains any information about a bug related to the item. Use Template:Bug |
tricks | Contains a bulleted list of tricks that are included when you get the companion |
othertricks | Contains a bulleted list of tricks that are only available separately. |
droplocation | This specifies information on where this drops. Use one of the drop location templates to specify it. The list of templates can be found here: Category:DropLocation Templates. If there is more than one, put each on its own line starting with an asterisk. ONLY USE IF THERE IS NOT A CERTIFICATE |
update | Which update was this item added to the game in. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.