Template:Modifier link/doc: Difference between revisions
(category) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{ | {{Documentation subpage}} | ||
{{ | |||
{{ | {{Lua|Module:Modifier table}} | ||
{{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 92: | Line 93: | ||
* [[:Category:Pages with script errors]] | * [[:Category:Pages with script errors]] | ||
< | {{Documentation categories| | ||
<!-- Categories and interwikis go here. --> | |||
[[Category:Link formatting templates]] | [[Category:Link formatting templates]] | ||
[[Category:Query templates]] | [[Category:Query templates]] | ||
}} |
Revision as of 10:41, 3 December 2020
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}}}.
Eventhough 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. |
data-sort-value="No" class="table-no" | |
statid | Stat id. Required when querying for exact values instead of stat text.
Searches |
data-sort-value="Yes" class="table-yes" | |
display | Display formats. Choose between:
|
data-sort-value="Yes" class="table-yes" | |
Examples
Code | Result |
---|---|
{{Modifier link |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8 }} |
Module Error: No results found. |
{{Ml |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8 |display=max |statid=local_physical_damage_+% }} |
Module Error: No results found. |
{{Ml |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8 |display=verbose }} |
Module Error: No results found. |
{{Ml |LocalIncreasedPhysicalDamagePercentAndAccuracyRating8 |display=stat_text }} |
Module Error: No results found. |
Maintenance
When this template returns errors the page will show up in following categories: