Difference between revisions of "Template:Guard"
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 5: | Line 5: | ||
|example1 = <nowiki>{{Guard|Fire|3}}</nowiki> | |example1 = <nowiki>{{Guard|Fire|3}}</nowiki> | ||
|example1output = {{Guard|Fire|3}} | |example1output = {{Guard|Fire|3}} | ||
|example2 = <nowiki>{{Guard|Haste}}</nowiki> | |||
|example2output = {{Guard|Haste}} | |||
|parameter1name = Damage Type | |parameter1name = Damage Type | ||
|parameter1description = The type of damage that is added | |parameter1description = The type of damage that is added, or effect that occurs | ||
|parameter1values = | |parameter1values = | ||
|parameter2name = Additional Dice | |parameter2name = Additional Dice | ||
Line 16: | Line 18: | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude>[[Category:Items with {{{1}}} Guard]]'''[[Guard|{{{1}}} Guard +{{{2}}}d{{{3|6}}}:]]''' When hit or missed in Melee: Deals {{Dice||{{{2}}}|{{{3|6}}}}} damage to your attacker.</onlyinclude> | <onlyinclude>[[Category:Items with {{{1}}} Guard]]{{#switch: {{lc:{{{1}}}}} | ||
|haste='''[[Guard|{{{1}}} Guard:]]''' When you are hit by enemies, there is a chance you will be Hasted, quickening your attack and movement speed. | |||
|#default='''[[Guard|{{{1}}} Guard +{{{2}}}d{{{3|6}}}:]]''' When hit or missed in Melee: Deals {{Dice||{{{2}}}|{{{3|6}}}}} damage to your attacker.</onlyinclude> |
Revision as of 02:08, 18 September 2018
Guard[edit]
This template is used on equipment for the Guard enchantment. Guard is an enchantment that adds damage when the defender is successfully hit.
Example Usage | |
{{Guard|Fire|3}} | {{#switch: fire
|haste=Fire Guard: When you are hit by enemies, there is a chance you will be Hasted, quickening your attack and movement speed. |#default=Fire Guard +3d6: When hit or missed in Melee: Deals 3d6 damage to your attacker. |
{{Guard|Haste}} | {{#switch: haste
|haste=Haste Guard: When you are hit by enemies, there is a chance you will be Hasted, quickening your attack and movement speed. |#default=Haste Guard +{{{2}}}d6: When hit or missed in Melee: Deals {{{2}}}d6 damage to your attacker. |
Usage[edit]
{{Guard|(Damage Type)|(Additional Dice)|(Die Side)}}
Parameter Documentation | |
Damage Type | The type of damage that is added, or effect that occurs |
Additional Dice | This is the number of dice of damage that is done |
Die Side | This is the number of sides the dice that are rolled have. If you leave this off it defaults to a d6. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
[[Category:Items with {{{1}}} Guard]]{{#switch: {{{1}}} |haste={{{1}}} Guard: When you are hit by enemies, there is a chance you will be Hasted, quickening your attack and movement speed. |#default={{{1}}} Guard +{{{2}}}d6: When hit or missed in Melee: Deals {{{2}}}d6 damage to your attacker.