Template:Generic stats/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>Illviljan
No edit summary
>Vinifera7
mNo edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{Documentation subpage}}
{{lua|Module:Data tables}}
{{Lua|Module:Data tables}}
__TOC__
__TOC__


Line 6: Line 6:
Template to store generic data to Cargo.
Template to store generic data to Cargo.


==Parameters==
==Cargo table declarations & data==
===General parameters===
{{subpages}}
{| 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===
{{Documentation categories|
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.
<!-- Categories and interwikis go here. -->
Code support: 1 <= M
 
{| class="wikitable"
! Parameter
! Type
! Optional
! Property
! 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==
* [[Template:Cargo/generic_stats]]
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Data templates]]
[[Category:Data templates]]
</includeonly>
}}

Latest revision as of 09:57, 2 December 2020