Template:Modifier link/doc: Difference between revisions
m (16 revisions imported) |
No edit summary |
||
Line 22: | Line 22: | ||
|- | |- | ||
|'''id''' | |'''id''' | ||
| Modifier id or modid (<code>mods.id</code>). Defaults to first unnamed input, <nowiki>{{{1}}}</nowiki>. | |||
Even though the modifier id is the required input it will search through the following cargo fields: | Even though the modifier id is the required input it will search through the following cargo fields: | ||
# <code>mods.name</code> | # <code>mods.name</code> | ||
Line 29: | Line 29: | ||
# <code>mods.stat_text_raw</code> | # <code>mods.stat_text_raw</code> | ||
This simplifies finding the correct modifier considerably, since the lua error will display the mods the query found and the correct modifier id in an easy copy/paste way. | This simplifies finding the correct modifier considerably, since the lua error will display the mods the query found and the correct modifier id in an easy copy/paste way. | ||
| {{no}} | |||
|- | |- | ||
|'''statid''' | |'''statid''' | ||
| Stat id. Required when querying for exact values instead of stat text. | |||
Searches <code>mod_stats.id</code> that are on the same page as the modifier id. | Searches <code>mod_stats.id</code> that are on the same page as the modifier id. | ||
| {{yes}} | |||
|- | |- | ||
|'''display''' | |'''display''' | ||
| Display formats. Choose between: | |||
* abbr - Abbreviated stat text. (Default) | * abbr - Abbreviated stat text. (Default) | ||
* id - Show the modifier id. | * id - Show the modifier id. | ||
Line 44: | Line 44: | ||
* min - Minimum value for a stat. Requires <code>statid</code> to be defined. | * min - Minimum value for a stat. Requires <code>statid</code> to be defined. | ||
* max - Maximum value for a stat. Requires <code>statid</code> to be defined. | * max - Maximum value for a stat. Requires <code>statid</code> to be defined. | ||
| {{yes}} | |||
|} | |} | ||
Line 120: | Line 120: | ||
[[Category:Link formatting templates]] | [[Category:Link formatting templates]] | ||
[[Category:Query templates]] | [[Category:Query templates]] | ||
{{Sister|poewiki}} | |||
}} | }} |
Latest revision as of 18:36, 20 October 2024

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. 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 (mods.id ). Defaults to first unnamed input, {{{1}}}.
Even though the modifier id is the required input it will search through the following cargo fields:
This simplifies finding the correct modifier considerably, since the lua error will display the mods the query found and the correct modifier id in an easy copy/paste way. |
![]() |
statid | Stat id. Required when querying for exact values instead of stat text.
Searches |
![]() |
display | Display formats. Choose between:
|
![]() |
Examples
Code | Result |
---|---|
{{Modifier link |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8 }} |
Module Error: No results found. |
{{Modifier link |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8 |display=id }} |
Module Error: No results found. |
{{Modifier link |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8 |display=verbose }} |
Module Error: No results found. |
{{Modifier link |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8 |display=stat_text }} |
Module Error: No results found. |
{{Modifier link |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8 |display=min |statid=local_physical_damage_+% }} |
Module Error: No results found. |
{{Modifier link |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8 |display=max |statid=local_physical_damage_+% }} |
Module Error: No results found. |
Maintenance
When this template returns errors the page will show up in following categories: