Template:Modifier link/doc: Difference between revisions
Jump to navigation
Jump to search
>Illviljan mNo edit summary |
>Illviljan mNo edit summary |
||
Line 1: | Line 1: | ||
{{documentation subpage}} | |||
{{lua|Module:Modifier table}} | |||
{{template shortcut|Ml}} | {{template shortcut|Ml}} | ||
The '''{{BASEPAGENAME}}''' template is used to show mod names and stat text in short and concise way. Mainly to be used in the main text. | The '''{{BASEPAGENAME}}''' template is used to show mod names and stat text in short and concise way. Mainly to be used in the main text. | ||
Line 18: | Line 19: | ||
|- | |- | ||
|'''id''' | |'''id''' | ||
|| Modifier id. Defaults to first unnamed input, <nowiki>{{{1}}}</nowiki>. | || Modifier id or modid. Defaults to first unnamed input, <nowiki>{{{1}}}</nowiki>. | ||
|| {{no}} | || {{no}} | ||
|- | |||
|'''statid''' | |||
|| stat id. Required when querying for exact values instead of stat text. | |||
|| {{yes}} | |||
|- | |||
|'''display''' | |||
|| Display formats. Choose between | |||
* abbr - Abbreviated stat text. (Default) | |||
* max - Maximum value for a stat. Requires <code>statid</code> to be defined. | |||
* min - Minimum value for a stat. Requires <code>statid</code> to be defined. | |||
|| {{yes}} | |||
|} | |} | ||
==Examples== | ==Examples== | ||
<pre> {{Modifier link| | <pre> {{Modifier link|LocalIncreasedPhysicalDamagePercentAndAccuracyRating8}} | ||
</pre> | </pre> | ||
yields: {{Modifier link| | yields: {{Modifier link|LocalIncreasedPhysicalDamagePercentAndAccuracyRating8}} | ||
<pre> {{Ml| | <pre> | ||
{{Ml|LocalIncreasedPhysicalDamagePercentAndAccuracyRating8|display=max|statid=local_physical_damage_+%}} | |||
</pre> | </pre> | ||
yields: | yields: {{Ml|LocalIncreasedPhysicalDamagePercentAndAccuracyRating8|display=max|statid=local_physical_damage_+%}} | ||
{{Ml| | |||
Revision as of 21:35, 23 January 2018
This subpage provides documentation for Template:Modifier link.
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.
- Format the result in a familiar way.
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}}}. | data-sort-value="No" class="table-no" | |
statid | stat id. Required when querying for exact values instead of stat text. | data-sort-value="Yes" class="table-yes" | |
display | Display formats. Choose between
|
data-sort-value="Yes" class="table-yes" | |
Examples
{{Modifier link|LocalIncreasedPhysicalDamagePercentAndAccuracyRating8}}
yields: Module Error: No results found.
{{Ml|LocalIncreasedPhysicalDamagePercentAndAccuracyRating8|display=max|statid=local_physical_damage_+%}}
yields: Module Error: No results found.