The wiki is currently a work in progress. If you'd like to help out, please check the Community Portal and our getting started guide. Also, check out our sister project on poewiki.net.
Template:Legacy variant table header/doc: Difference between revisions
(category) |
No edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{ | {{tl|Legacy variant table header}} is used with {{tl|legacy variant table row}} and {{tl|legacy variant table end}} to display a table of an item's [[legacy variant]]s. | ||
==Parameters== | ==Parameters== | ||
===Header=== | ===Header=== | ||
{{tl|Legacy variant table header}} takes the following parameters. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! Parameter | ! Parameter | ||
Line 12: | Line 13: | ||
! Description | ! Description | ||
|- | |- | ||
| base | | <code><nowiki>|base=</nowiki></code> | ||
| bool | | bool | ||
| {{yes}} | | {{yes}} | ||
| | | Whether to show a column header for base item type. Defaults to false. | ||
|- | |- | ||
| level | | <code><nowiki>|level=</nowiki></code> | ||
| bool | | bool | ||
| {{yes}} | | {{yes}} | ||
| | | Whether to show a column header for required level. Defaults to false. | ||
|} | |} | ||
===Row=== | ===Row=== | ||
{{tl|Legacy variant table row}} takes the following parameters. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! Parameter | ! Parameter | ||
! Value | ! Value | ||
! Optional | ! Optional | ||
! Description | ! Description | ||
|- | |- | ||
| version | | <code><nowiki>|version=</nowiki></code> | ||
| str | | str | ||
| {{no}} | | {{no}} | ||
| | | The version this legacy variant was discontinued. Defaults to the value of the first unnamed parameter. | ||
|- | |- | ||
| implicit | | <code><nowiki>|implicit=</nowiki></code> | ||
| str | | str | ||
| {{yes}} | | {{yes}} | ||
| | | The implicit modifier block of this legacy variant. Defaults to the value of the second unnamed parameter as long as <code><nowiki>|explicit=</nowiki></code> or the third unnamed parameter is also set. | ||
|- | |- | ||
| explicit | | <code><nowiki>|explicit=</nowiki></code> | ||
| str | | str | ||
| {{ | | {{yes}} | ||
| | | The explicit modifier block of this legacy variant. Defaults to the value of the third unnamed parameter as long as <code><nowiki>|implicit=</nowiki></code> or the second unnamed parameter is also set; otherwise it defaults to the value of the second unnamed parameter. | ||
|- | |- | ||
| base | | <code><nowiki>|base=</nowiki></code> | ||
| str | | str | ||
| {{yes}} | | {{yes}} | ||
| | | The base item type of this legacy variant. | ||
|- | |- | ||
| level | | <code><nowiki>|level=</nowiki></code> | ||
| str | | str | ||
| {{yes}} | | {{yes}} | ||
| | | The required level of this legacy variant. | ||
|} | |} | ||
== | ===End=== | ||
There are no parameters for {{tl|legacy variant table end}}. | |||
==Usage== | |||
When constructing the modifier blocks of an item's legacy variant, compare the legacy variant to the current variant and format each modifier accordingly: | |||
* To show that a modifier has different values in the legacy variant, format the text using {{tlx|c|mod|...}}. | |||
* To show that a modifier exists only in the legacy variant, format the text using {{tlx|c|mod|...}}. | |||
* To show that a modifier does not exist in the legacy variant, format the text using {{tlx|c|not|...}}. | |||
* There is no need to format the text of modifiers that are unchanged from the legacy variant. | |||
<pre> | <pre> | ||
{{ | {{Legacy variant table header|base=yes|level=yes}} | ||
{{ | {{Legacy variant table row|1.2.0|base=[[Cured Quiver]]|level=22| | ||
* {{c|mod|Adds 2 to 4 Fire Damage to Attacks}} | * {{c|mod|Adds 2 to 4 Fire Damage to Attacks}} | ||
| | | | ||
Line 83: | Line 80: | ||
* {{c|not|Adds 5 to 10 Fire Damage to Attacks with Bows}} | * {{c|not|Adds 5 to 10 Fire Damage to Attacks with Bows}} | ||
}} | }} | ||
{{Legacy variant table end}} | |||
</pre> | </pre> | ||
Yields: | |||
{{Legacy variant table header|base=yes|level=yes}} | |||
{{Legacy variant table row|1.2.0|base=[[Cured Quiver]]|level=22| | |||
* {{c|mod|Adds 2 to 4 Fire Damage to Attacks}} | |||
| | |||
* 10% increased Attack Speed | |||
* {{c|mod|+20 to Evasion Rating}} | |||
* +(10-30) to maximum Mana | |||
* {{c|mod|(30-50)% of Physical Damage Converted to Fire Damage}} | |||
* {{c|not|Adds 5 to 10 Fire Damage to Attacks with Bows}} | |||
}} | |||
{{Legacy variant table end}} | |||
{{Documentation categories| | {{Documentation categories| |
Revision as of 19:11, 22 July 2022

This subpage provides documentation for Template:Legacy variant table header.
{{Legacy variant table header}} is used with {{legacy variant table row}} and {{legacy variant table end}} to display a table of an item's legacy variants.
Parameters
Header
{{Legacy variant table header}} takes the following parameters.
Parameter | Value | Optional | Description |
---|---|---|---|
|base=
|
bool | ![]() |
Whether to show a column header for base item type. Defaults to false. |
|level=
|
bool | ![]() |
Whether to show a column header for required level. Defaults to false. |
Row
{{Legacy variant table row}} takes the following parameters.
Parameter | Value | Optional | Description |
---|---|---|---|
|version=
|
str | ![]() |
The version this legacy variant was discontinued. Defaults to the value of the first unnamed parameter. |
|implicit=
|
str | ![]() |
The implicit modifier block of this legacy variant. Defaults to the value of the second unnamed parameter as long as |explicit= or the third unnamed parameter is also set.
|
|explicit=
|
str | ![]() |
The explicit modifier block of this legacy variant. Defaults to the value of the third unnamed parameter as long as |implicit= or the second unnamed parameter is also set; otherwise it defaults to the value of the second unnamed parameter.
|
|base=
|
str | ![]() |
The base item type of this legacy variant. |
|level=
|
str | ![]() |
The required level of this legacy variant. |
End
There are no parameters for {{legacy variant table end}}.
Usage
When constructing the modifier blocks of an item's legacy variant, compare the legacy variant to the current variant and format each modifier accordingly:
- To show that a modifier has different values in the legacy variant, format the text using
{{c|mod|...}}
. - To show that a modifier exists only in the legacy variant, format the text using
{{c|mod|...}}
. - To show that a modifier does not exist in the legacy variant, format the text using
{{c|not|...}}
. - There is no need to format the text of modifiers that are unchanged from the legacy variant.
{{Legacy variant table header|base=yes|level=yes}} {{Legacy variant table row|1.2.0|base=[[Cured Quiver]]|level=22| * {{c|mod|Adds 2 to 4 Fire Damage to Attacks}} | * 10% increased Attack Speed * {{c|mod|+20 to Evasion Rating}} * +(10-30) to maximum Mana * {{c|mod|(30-50)% of Physical Damage Converted to Fire Damage}} * {{c|not|Adds 5 to 10 Fire Damage to Attacks with Bows}} }} {{Legacy variant table end}}
Yields:
Version discontinued | Base item | ![]() |
Stats ![]() |
---|---|---|---|
1.2.0 | Cured Quiver | 22 |
|