Difference between revisions of "Template:TomeFeat"
From DDO Compendium
MNDeveloper (talk | contribs) (Created page with "<noinclude>{{TemplateDocumentation |name = TomeFeat |description = This template is used on equipment to grant a feat when used (like a tome). |category=Item Enchantment Templ...") |
MNDeveloper (talk | contribs) |
||
Line 5: | Line 5: | ||
|example1 = <nowiki>{{TomeFeat|Inherent Magical Resistance}}</nowiki> | |example1 = <nowiki>{{TomeFeat|Inherent Magical Resistance}}</nowiki> | ||
|example1output = {{TomeFeat|Inherent Magical Resistance}} | |example1output = {{TomeFeat|Inherent Magical Resistance}} | ||
|example2 = <nowiki>{{TomeFeat|Inherent Magical Resistance|Upgrade}}</nowiki> | |example2 = <nowiki>{{TomeFeat|Inherent Magical Resistance|Upgrade|2|1}}</nowiki> | ||
|example2output = {{TomeFeat|Inherent Magical Resistance|Upgrade}} | |example2output = {{TomeFeat|Inherent Magical Resistance|Upgrade|2|1}} | ||
|parameter1name = Feat | |parameter1name = Feat | ||
|parameter1description = Which feat is being added. | |parameter1description = Which feat is being added. | ||
Line 21: | Line 21: | ||
|parameter5description = The title if different than the default | |parameter5description = The title if different than the default | ||
}} | }} | ||
<onlyinclude>{{EnchTitle|{{{1}}}|Feat Grant- {{{1}}} | <onlyinclude>{{EnchTitle|{{{1}}}|Feat Grant - {{{1}}}|{{{5|}}}||True}}{{EnchBody|Upon usage, this item {{#switch: {{lc:{{{2|}}}}} | ||
|upgrade=increases the number of {{{1}}} feats granted from {{{4}}} to {{{3}}}. | |upgrade=increases the number of {{RenderLink|{{{1}}}}} feats granted from {{{4}}} to {{{3}}}. | ||
|#default=grants the feat {{{1}}} {{#if:{{{3|}}}|{{{3}}} times|once}}.}}}}{{EnchCat|ItemFeat|Items that grant the {{{1}}} Feat|Items that grant a Feat}}</onlyinclude> | |#default=grants the feat {{RenderLink|{{{1}}}}} {{#if:{{{3|}}}|{{{3}}} times|once}}.}}}}{{EnchCat|ItemFeat|Items that grant the {{{1}}} Feat|Items that grant a Feat}}</onlyinclude> |
Revision as of 17:34, 11 November 2021
TomeFeat[edit]
This template is used on equipment to grant a feat when used (like a tome).
Example Usage | |
{{TomeFeat|Inherent Magical Resistance}} | Upon usage, this item grants the feat Inherent Magical Resistance once. |
{{TomeFeat|Inherent Magical Resistance|Upgrade|2|1}} | Upon usage, this item increases the number of Inherent Magical Resistance feats granted from 1 to 2. |
Usage[edit]
{{TomeFeat|(Feat)|(type)|(new count)|(old count)|(title)}}
Parameter Documentation | |
Feat | Which feat is being added. |
type | What type of grant is it Possible Values:
|
new count | The number of times this is granted, defaults to one |
old count | The number that this upgrades from |
title | The title if different than the default |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
Upon usage, this item grants the feat [[{{{1}}}]] once.[[Category:Items that grant the {{{1}}} Feat]]