Difference between revisions of "Template:CustomEnhancement"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 5: | Line 5: | ||
|category=Item Enchantment Template | |category=Item Enchantment Template | ||
|usesnamedparameters = | |usesnamedparameters = | ||
|example1=<nowiki>{{CustomEnhancement|Venomed Ammunition|On Ranged Attack: {{Dice||1|2}} Poison Damage}}</nowiki> | |||
|example1output={{CustomEnhancement|Venomed Ammunition|On Ranged Attack: {{Dice||1|2}} Poison Damage}} | |||
|parameter1name = Title | |parameter1name = Title | ||
|parameter1description = The title of the effect | |parameter1description = The title of the effect | ||
Line 15: | Line 17: | ||
|parameter5name = Text Only | |parameter5name = Text Only | ||
|parameter5description = Set to True if this is only text, no page. | |parameter5description = Set to True if this is only text, no page. | ||
}}</noinclude><onlyinclude>{{EnchTitle|{{#if: {{{4|}}}|{{{4}}}|{{{1|}}}}}|{{{1}}}||{{{5|}}}}}{{#ifeq: {{#dplvar:enhview}}|titleonly|| | }}</noinclude><onlyinclude>{{EnchTitle|{{#if: {{{4|}}}|{{{4}}}|{{{1|}}}}}|{{{1}}}||{{{5|}}}}}{{#ifeq: {{#dplvar:enhview}}|titleonly||{{#if: {{{5|}}}|{{{2|}}}{{#if: {{{3|}}}|<br><br><span style="color:#6e5c8e">{{{3}}}</span>}}|{{#ifeq: {{FULLPAGENAME}} |Template:CustomEnhancement||[[Category:Items with Custom Enhancements (Template)]][[Category:Items with {{{1|}}}]]}}{{{2|}}}{{#if: {{{3|}}}|<br><br><span style="color:#6e5c8e">{{{3}}}</span>}}}}}}</onlyinclude> | ||
{{#if: {{{5|}}}|{{{2|}}}{{#if: {{{3|}}}|<br><br><span style="color:#6e5c8e">{{{3}}}</span>}}|{{#ifeq: {{FULLPAGENAME}} |Template:CustomEnhancement||[[Category:Items with Custom Enhancements (Template)]][[Category:Items with {{{1|}}}]]}}{{{2|}}}{{#if: {{{3|}}}|<br><br><span style="color:#6e5c8e">{{{3}}}</span>}}}}</onlyinclude> |
Revision as of 16:43, 5 December 2019
CustomEnhancement[edit]
Adds a custom enhancement.
For people looking for pages using this template, link is Category:Items with Custom Enhancements (Template)
Example Usage | |
{{CustomEnhancement|Venomed Ammunition|On Ranged Attack: {{Dice||1|2}} Poison Damage}} | Venomed Ammunition: On Ranged Attack: 1d2 Poison Damage |
Usage[edit]
{{CustomEnhancement|(Title)|(Description)|(quote)|(Link)|(Text Only)}}
Parameter Documentation | |
Title | The title of the effect |
Description | The description of the effect |
quote | If there is a colored quote in the enchantmnt |
Link | Link to the enchantment page, if different from title |
Text Only | Set to True if this is only text, no page. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{{1}}}: