Template:Generic stats/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>OmegaK2
>Vinifera7
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{documentation subpage}}
{{Documentation subpage}}
{{lua|Module:Data tables}}
{{Lua|Module:Data tables}}
__TOC__
__TOC__


==Overview==
==Overview==
Template to store generic data to Cargo.
Template to store generic data to Cargo.
==Parameters==
===General parameters===
{| class="wikitable"
! Parameter
! Type
! {{abbr|Opt|Optional}}
! {{abbr|Auto|PyPoE exported?}}
! Table & field
! Description
|-
| name
| str
| {{no}}
| {{no}}
| generic_stats.name
| Name of this group of data
|}
===Progression parameters===
Replace <code><nowiki><M></nowiki></code> with the number of the argument. Start numbers with 1, and don't leave gaps. The order matters and each parameter must be specified for an individual element of M.
Code support: 1 <= M
{| class="wikitable"
! Parameter
! Type
! {{abbr|Opt|Optional}}
! Table & field
! Description
|-
| stat<nowiki><M></nowiki>_id
| str
| {{yes}}
| generic_stats.id
| The internal id of the stat
|-
| stat<nowiki><M></nowiki>_value
| int
| {{yes}}
| generic_stats.value
| The associated value with the stat
|-
| stat<nowiki><M></nowiki>_stat_text
| str
| {{yes}}
| generic_stats.stat_text
| The stat text of the stat.
|}
Example of valid stat parameters:
<pre>
stat1_id =
stat1_value =
stat1_stat_text =
stat2_id =
stat2_value =
stat2_stat_text =
</pre>


==Cargo table declarations & data==
==Cargo table declarations & data==
{{subpages}}
{{subpages}}


<includeonly>
{{Documentation categories|
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- Categories and interwikis go here. -->
[[Category:Data templates]]
[[Category:Data templates]]
</includeonly>
}}

Latest revision as of 09:57, 2 December 2020