Template:Mod: Difference between revisions

From Melvor Idle
(Created new template for invoking modifiers)
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
For invoking modifier text. For example, {{T|Mod|increasedGlobalAccuracy|5}} gives {{Mod|increasedGlobalAccuracy|5}}.
<onlyinclude><includeonly><span style="display:inline-block">{{#invoke:Constants|getModifierText|{{{1|}}}|{{{2|}}}|{{{3|}}}|skill={{{skill|}}}}}</span></includeonly></onlyinclude><noinclude>{{/doc}}</noinclude>
 
Color can be suppressed by adding `|false` to the end. For example, {{T|Mod|increasedGlobalAccuracy|5|false}} gives {{Mod|increasedGlobalAccuracy|5|false}}.
 
For skill specific bonuses, skill can be specified. For example, {{T|Mod|increasedMasteryXP|skill=Fishing|5}} gives {{Mod|increasedMasteryXP|skill=Fishing|5}}
 
<onlyinclude><includeonly><span style="display:inline-block">{{#invoke:Constants|getModifierText|{{{1|}}}|{{{2|}}}|{{{3|}}}|skill={{{skill|}}}}}</span></includeonly></onlyinclude>

Latest revision as of 13:44, 9 April 2024

For invoking modifier text. For example, {{Mod|increasedGlobalAccuracy|5}} gives +5% Accuracy Rating.

Color can be suppressed by adding `|false` to the end. For example, {{Mod|increasedGlobalAccuracy|5|false}} gives +5% Accuracy Rating.

For skill specific bonuses, skill can be specified. For example, {{Mod|increasedMasteryXP|5|skill=Fishing}} gives +5% Fishing Mastery XP