Difference between revisions of "Template:CompanionTrick"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|name = CompanionTrick | |name = CompanionTrick | ||
|description = Template for a consistent appearance of tricks in companions. | |description = Template for a consistent appearance of tricks in companions. | ||
|category = | |category = Companion Templates | ||
|usesnamedparameters = no | |usesnamedparameters = no | ||
|example1 = <nowiki>{{CompanionTrick|Crayfish Trick - Attack}}</nowiki> | |example1 = <nowiki>{{CompanionTrick|Crayfish Trick - Attack}}</nowiki> | ||
Line 14: | Line 14: | ||
|parameter3name = Page Name | |parameter3name = Page Name | ||
|parameter3description = The name of the page to link to if different than the trick name | |parameter3description = The name of the page to link to if different than the trick name | ||
}}</noinclude><onlyinclude>{{ | }}</noinclude><onlyinclude>{{PageExists|File:{{#if: {{{2|}}}|{{{2|}}}|{{{1}}}}}_Icon.png|{{IconImageWithLink|{{{1}}}|{{{2|}}}|{{PageLink|{{{1|}}}|{{{3|}}}}}}}}}{{PageLink|{{{1|}}}|{{{3|}}}}}</onlyinclude> |
Latest revision as of 20:49, 24 July 2024
CompanionTrick[edit]
Template for a consistent appearance of tricks in companions.
Example Usage | |
{{CompanionTrick|Crayfish Trick - Attack}} | ![]() |
{{CompanionTrick|Crayfish Trick - Attack}} | ![]() |
Usage[edit]
Parameter Documentation | |
Name | The name of the trick |
Icon | The icon to use if the default doesn't work |
Page Name | The name of the page to link to if different than the trick name |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
[[File:{{{1}}}_Icon.png|link=File:{{{1}}}_Icon.png|36px|x36px|]][[]]