Template:Legacy variant table header/doc: Difference between revisions

From Path of Exile 2 Wiki
Jump to navigation Jump to search
(Sister interwiki)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
! Description
! Description
|-
|-
| <code><nowiki>|base=</nowiki></code>
| {{para|base}}
| bool
| bool
| {{yes}}
| {{yes}}
| Whether to show a column header for base item type. Defaults to false.
| Whether to show a column header for base item type. Defaults to false.
|-  
|-  
| <code><nowiki>|level=</nowiki></code>
| {{para|level}}
| bool
| bool
| {{yes}}
| {{yes}}
Line 33: Line 33:
! Description
! Description
|-
|-
| <code><nowiki>|version=</nowiki></code>
| {{para|version}}, {{para|1}}
| str
| str
| {{no}}
| {{no}}
| The version this legacy variant was discontinued. Defaults to the value of the first unnamed parameter.
| The version this legacy variant was discontinued. Defaults to the value of the first unnamed parameter.
|-
|-
| <code><nowiki>|implicit=</nowiki></code>
| {{para|implicit}}
| str
| str
| {{yes}}
| {{yes}}
| The implicit stat 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.
| The implicit stat block of this legacy variant. For backwards compatibility, this defaults to the value of the second unnamed parameter as long as {{para|explicit}} or the third unnamed parameter is also set. '''It is highly recommended to use the named parameter.'''
|-
|-
| <code><nowiki>|explicit=</nowiki></code>
| {{para|explicit}}
| str
| str
| {{yes}}
| {{yes}}
| The explicit stat 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.
| The explicit stat block of this legacy variant. For backwards compatibility, this defaults to the value of the third unnamed parameter as long as {{para|implicit}} or the second unnamed parameter is also set; otherwise it defaults to the value of the second unnamed parameter. '''It is highly recommended to use the named parameter.'''
|-
|-
| <code><nowiki>|base=</nowiki></code>
| {{para|base}}
| str
| str
| {{yes}}
| {{yes}}
| The base item type of this legacy variant.
| The base item type of this legacy variant.
|-  
|-  
| <code><nowiki>|level=</nowiki></code>
| {{para|level}}
| str
| str
| {{yes}}
| {{yes}}
Line 69: Line 69:
<pre>
<pre>
{{Legacy variant table header|base=yes|level=yes}}
{{Legacy variant table header|base=yes|level=yes}}
{{Legacy variant table row|1.2.0|base=[[Cured Quiver]]|level=22|
{{Legacy variant table row|1.2.0|base=[[Cured Quiver]]|level=22
|implicit =
* {{c|mod|Adds 2 to 4 Fire Damage to Attacks}}
* {{c|mod|Adds 2 to 4 Fire Damage to Attacks}}
|
|explicit =
* 10% increased Attack Speed
* 10% increased Attack Speed
* {{c|mod|+20 to Evasion Rating}}
* {{c|mod|+20 to Evasion Rating}}
Line 83: Line 84:


{{Legacy variant table header|base=yes|level=yes}}
{{Legacy variant table header|base=yes|level=yes}}
{{Legacy variant table row|1.2.0|base=[[Cured Quiver]]|level=22|
{{Legacy variant table row|1.2.0|base=[[Cured Quiver]]|level=22
|implicit =
* {{c|mod|Adds 2 to 4 Fire Damage to Attacks}}
* {{c|mod|Adds 2 to 4 Fire Damage to Attacks}}
|
|explicit =
* 10% increased Attack Speed
* 10% increased Attack Speed
* {{c|mod|+20 to Evasion Rating}}
* {{c|mod|+20 to Evasion Rating}}

Latest revision as of 13:21, 15 June 2025

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 Yes Whether to show a column header for base item type. Defaults to false.
|level= bool Yes 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=, |1= str No The version this legacy variant was discontinued. Defaults to the value of the first unnamed parameter.
|implicit= str Yes The implicit stat block of this legacy variant. For backwards compatibility, this defaults to the value of the second unnamed parameter as long as |explicit= or the third unnamed parameter is also set. It is highly recommended to use the named parameter.
|explicit= str Yes The explicit stat block of this legacy variant. For backwards compatibility, this 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. It is highly recommended to use the named parameter.
|base= str Yes The base item type of this legacy variant.
|level= str Yes The required level of this legacy variant.

End

There are no parameters for {{legacy variant table end}}.

Usage

When constructing the stat blocks of an item's legacy variant, compare the legacy variant to the current variant and format each stat line accordingly:

  • To show that a stat line has different values in the legacy variant, format the text using {{c|mod|…}}.
  • There is no need to format the text of stats 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
|implicit =
* {{c|mod|Adds 2 to 4 Fire Damage to Attacks}}
|explicit =
* 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}}
}}
{{Legacy variant table end}}

Yields:

Version discontinued Base item Required level Stats Compare each legacy variant to the current variant.
  • Stat line – Same as current variant
  • Stat line – Different from current variant

1.2.0 Cured Quiver 22
  • Adds 2 to 4 Fire Damage to Attacks
  • 10% increased Attack Speed
  • +20 to Evasion Rating
  • +(10-30) to maximum Mana
  • (30-50)% of Physical Damage Converted to Fire Damage

Cargo

Table Declared by Attached by
legacy_variants {{Legacy variant table row/cargo/legacy variants/declare}} {{Legacy variant table row/cargo/legacy variants/attach}}