85
editsMore actions
add parameter to block "Enchantment:" text
(Created page with "<includeonly>{{SmallIcon|Dippable Icon.png}} Enchantment: {{#switch: {{{1|}}} <!-- Accept various kinds of empty/zero values for ease of use from other templates. --> | | + | 0 | +0 | + 0 = None <!-- #8239 is NARROW NO-BREAK SPACE --> | +1 | + 1 = '''+ 1''' | +2 | + 2 = '''+ 2''' | +3 | + 3 = '''+ 3''' | +4 | + 4 = '''+ 4''' | +5 | + 5 = '''+ 5''' }}</includeonly><noinclude> Usage: {{code|<nowiki>{{enchantment|}}</nowiki>}} Result: {{enchan...") |
(add parameter to block "Enchantment:" text) |
||
Line 1: | Line 1: | ||
<includeonly>{{SmallIcon|Dippable Icon.png}} Enchantment: {{#switch: {{{1|}}} | <includeonly>{{SmallIcon|Dippable Icon.png}} {{#if:{{{notext|}}}| |Enchantment: }} {{#switch: {{{1|}}} | ||
<!-- Accept various kinds of empty/zero values for ease of use from other templates. --> | <!-- Accept various kinds of empty/zero values for ease of use from other templates. --> | ||
| | + | 0 | +0 | + 0 = None | | | + | 0 | +0 | + 0 = None | ||
Line 36: | Line 36: | ||
Result: {{enchantment|+ 1}} | Result: {{enchantment|+ 1}} | ||
<!-- Examples showing the effect of the notext parameter --> | |||
Usage: {{code|<nowiki>{{enchantment|+3|notext=1}}</nowiki>}} | |||
Result when notext is used: {{enchantment|+3|notext=1}} | |||
Usage: {{code|<nowiki>{{enchantment|+2|notext=true}}</nowiki>}} | |||
Result when notext is used: {{enchantment|+2|notext=true}} | |||
[[Category:Weapon Property Templates]] | [[Category:Weapon Property Templates]] | ||
</noinclude> | </noinclude> |