Template:Modifier link/doc

From Path of Exile Wiki
Revision as of 13:07, 10 February 2018 by >Illviljan
Jump to navigation Jump to search

This subpage provides documentation for Template:Modifier link.

Lua logo

This template uses the following modules:

Shortcut

The Modifier link template is used to show mod names and stat text in short and concise way. Mainly to be used in the main text.

Overview

The template will do the following:

  • Query modifier. If results are more than 1, it returns an error that suggests which mod id to use.
  • Format the result in a familiar way.

Consider using {{Modifier table}} instead if you want to create large tables.

Parameters

All parameters should be filled in if possible to ensure it's working correctly.

Parameter Description Optional
id Modifier id or modid. Defaults to first unnamed input, {{{1}}}.

Searches through the cargo fields:

  • mods.id
  • mods.name
  • mods.stat_text
  • mods.stat_text_raw

If there are more results than 1, then it will return a module error that suggests which modifier id to use.

statid stat id. Required when querying for exact values instead of stat text.
display Display formats. Choose between:
  • abbr - Abbreviated stat text. (Default)
  • verbose - Show both modifier name and stat text.
  • stat_text - Show only stat text.
  • max - Maximum value for a stat. Requires statid to be defined.
  • min - Minimum value for a stat. Requires statid to be defined.

Examples

Code Result
{{Modifier link
 |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8
}}
Dictator'sDictator's
Prefix
(75-79)% increased Physical Damage
+(175-200) to Accuracy Rating
 
{{Ml
 |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8
 |display=max
 |statid=local_physical_damage_+%
}} 
79
 
{{Ml
 |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8
 |display=verbose
}} 
Dictator's - (75-79)% increased Physical Damage, +(175-200) to Accuracy Rating (Prefix)
 
{{Ml
 |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8
 |display=stat_text
}} 
(75-79)% increased Physical Damage
+(175-200) to Accuracy Rating

Maintenance

When this template returns errors the page will show up in following categories: