Difference between revisions of "Template:Companion"
From DDO Compendium
MNDeveloper (talk | contribs) (Created page with "<noinclude> <pre> {{Template:Certificate |name = |description = |binding = |droplocation = |storedescription = |icon= |bug= |weight= |basevalue= |update= |companionpage= }}...") |
MNDeveloper (talk | contribs) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<pre> | <pre> | ||
{{Template: | {{Template:Companion | ||
|name = | |name = | ||
|description = | |description = | ||
|icon= | |icon= | ||
|image= | |||
|bug= | |bug= | ||
| | |tricks= | ||
| | |othertricks= | ||
| | |certificate= | ||
| | |droplocation= | ||
}} | }} | ||
</pre> | </pre> | ||
{{TemplateDocumentation | {{TemplateDocumentation | ||
|name = Companion | |name = Companion | ||
|description = This template is used to render information about a | |description = This template is used to render information about a companion. | ||
|category=Companion Templates | |category=Companion Templates | ||
|usesnamedparameters = true | |usesnamedparameters = true | ||
|parameter1name = name | |parameter1name = name | ||
|parameter1description = The name of the | |parameter1description = The name of the companion. | ||
|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 = 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. | ||
|parameter5name = bug | |parameter5name = bug | ||
|parameter5description = Contains any information about a bug related to the item. Use [[Template:Bug]] | |parameter5description = Contains any information about a bug related to the item. Use [[Template:Bug]] | ||
|parameter6name = tricks | |||
|parameter6description = Contains a bulleted list of tricks that are included when you get the companion | |||
|parameter7name = othertricks | |||
|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 | |||
}} | }} | ||
</noinclude> | </noinclude> | ||
Line 40: | Line 44: | ||
<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 52: | Line 56: | ||
<tr> | <tr> | ||
<td>'''Description:''' ''{{{description}}}''</td> | <td>'''Description:''' ''{{{description}}}''</td> | ||
</tr> | |||
}} | |||
{{#if: {{{tricks|}}}| | |||
<tr> | |||
<td>'''Included Tricks:''' {{WrapMultiLine|{{{tricks}}}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{othertricks|}}}| | |||
<tr> | |||
<td>'''Other Tricks:''' {{WrapMultiLine|{{{othertricks}}}}}</td> | |||
</tr> | </tr> | ||
}} | }} | ||
Line 61: | Line 75: | ||
<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 72: | Line 92: | ||
{{#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=Companion | |description=Companion | ||
|site_name={{SITENAME}} | |site_name={{SITENAME}} |
Latest revision as of 00:41, 15 June 2024
{{Template:Companion |name = |description = |icon= |image= |bug= |tricks= |othertricks= |certificate= |droplocation= }}
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 |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.