Template:Modifier link/doc: Difference between revisions
Jump to navigation
Jump to search
>Illviljan mNo edit summary |
>Illviljan mNo edit summary |
||
Line 85: | Line 85: | ||
}} | }} | ||
|} | |} | ||
==Maintenance== | |||
When this template returns errors the page will show up in following categories: | |||
* [[:Category:Pages with modifier link errors]] | |||
* [[:Category:Pages with script errors]] | |||
<includeonly> | <includeonly> |
Revision as of 13:07, 10 February 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. 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:
If there are more results than 1, then it will return a module error that suggests which modifier id to use. |
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
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: