Difference between revisions of "Template:Companion"

From DDO Compendium
Line 7: Line 7:
|image
|image
|bug=
|bug=
|tricks=
|othertricks=
}}
}}
</pre>
</pre>
{{TemplateDocumentation
{{TemplateDocumentation
|name = Companion
|name = Companion
|description = This template is used to render information about a cosmetic.
|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 pet.
|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.
Line 24: Line 26:
|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.
}}
}}
</noinclude>
</noinclude>
Line 46: Line 52:
<tr>
<tr>
<td>'''Description:''' ''{{{description}}}''</td>
<td>'''Description:''' ''{{{description}}}''</td>
</tr>
}}
{{#if: {{{tricks|}}}|
<tr>
<td>'''Included Tricks:'''&nbsp;{{WrapMultiLine|{{{tricks}}}}}</td>
</tr>
}}
{{#if: {{{othertricks|}}}|
<tr>
<td>'''Other Tricks:'''&nbsp;{{WrapMultiLine|{{{othertricks}}}}}</td>
</tr>
</tr>
}}
}}

Revision as of 18:23, 28 January 2021

{{Template:Companion
|name =
|description =
|icon=
|image
|bug=
|tricks=
|othertricks=
}}

Companion[edit]

This template is used to render information about a companion.

Usage[edit]

Parameter Documentation
nameThe name of the companion.
descriptionEnter the description that is on the examine window at the bottom.
iconThe icon to use for this item, overrides the icon using the item name
imageThe image for the companion, if the default named one doesn't work.
bugContains any information about a bug related to the item. Use Template:Bug
tricksContains a bulleted list of tricks that are included when you get the companion
othertricksContains a bulleted list of tricks that are only available separately.

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.