Template:Legacy variant table header: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>Illviljan
(Check if the page has the property Has rarity. If it is Normal then use Base, otherwise use the Has rarity value for the category.)
(Added optional parameter for level column)
Line 1: Line 1:
<onlyinclude>{| class="wikitable" style="{{#if: {{{width|}}} | width: {{{width}}}; }} text-align: center;"
<onlyinclude>{| class="wikitable" style="{{#if: {{{width|}}} | width: {{{width}}}; }} text-align: center;"
! Version Discontinued {{yesno|{{{base|}}}|yes=!! Base Item}} !! {{abbr|Modifiers|Compare legacy variants to the current one.&#10;Bright text indicates a modifier that is different in a legacy variant.&#10;Strike-through text indicates a modifier that does not exist in a legacy variant.}}<includeonly>[[Category: {{#ifeq: {{#Show:{{PAGENAME}}|?Has rarity}} | Normal | Base | {{#Show:{{PAGENAME}}|?Has rarity}} }} items with legacy variants]]</includeonly></onlyinclude>
! Version Discontinued {{yesno|{{{base|}}}|yes=!! Base Item}} {{yesno|{{{level|}}}|yes=!! [[File:Level_up_icon_small.png|Lvl.|link=]]}} !! {{abbr|Modifiers|Compare legacy variants to the current one.&#10;Bright text indicates a modifier that is different in a legacy variant.&#10;Strike-through text indicates a modifier that does not exist in a legacy variant.}}<includeonly>[[Category: {{#ifeq: {{#Show:{{PAGENAME}}|?Has rarity}} | Normal | Base | {{#Show:{{PAGENAME}}|?Has rarity}} }} items with legacy variants]]</includeonly></onlyinclude>
|}
|}
<noinclude>
<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 00:10, 13 November 2017

Version Discontinued Modifiers
Template documentation[view] [edit] [history] [purge]


{{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 stat 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 stat 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 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|
* {{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}}
}}
{{Legacy variant table end}}

Yields:

Version Discontinued Base Item Lvl. Modifiers[[Category: {{#Show:Legacy variant table header|?Has rarity}} items with legacy variants]]
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}}