Template:Modifier link/doc: Difference between revisions
Jump to navigation
Jump to search
>Illviljan mNo edit summary |
>Illviljan mNo edit summary |
||
Line 7: | Line 7: | ||
==Overview== | ==Overview== | ||
The template will do the following: | The template will do the following: | ||
* Query modifier. | * 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. | * Format the result in a familiar way. | ||
Consider using {{tlx|Modifier table}} instead if you want to create large tables. | |||
==Parameters== | ==Parameters== | ||
Line 19: | Line 21: | ||
|- | |- | ||
|'''id''' | |'''id''' | ||
|| Modifier id or modid. Defaults to first unnamed input, <nowiki>{{{1}}}</nowiki>. | || Modifier id or modid. Defaults to first unnamed input, <nowiki>{{{1}}}</nowiki>. | ||
Searches through the cargo fields: | |||
* <code>mods.id</code> | |||
* <code>mods.name</code> | |||
* <code>mods.stat_text</code> | |||
* <code>mods.stat_text_raw</code> | |||
If there are more results than 1, then it will return a module error that suggests which modifier id to use. | |||
|| {{no}} | || {{no}} | ||
|- | |- | ||
Line 80: | Line 88: | ||
<includeonly> | <includeonly> | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
[[Category:Query templates]] | |||
</includeonly> | </includeonly> |
Revision as of 12:46, 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. |