Template:Generic stats/doc: Difference between revisions
Jump to navigation
Jump to search
>Illviljan No edit summary |
>Illviljan |
||
Line 32: | Line 32: | ||
! Type | ! Type | ||
! Optional | ! Optional | ||
! | ! Table and field | ||
! Description | ! Description | ||
|- | |- |
Revision as of 00:07, 26 September 2018
This subpage provides documentation for Template:Generic stats.
Overview
Template to store generic data to Cargo.
Parameters
General parameters
Parameter | Type | Opt | Auto | Table & field | Description |
---|---|---|---|---|---|
name | str | ✗
|
✗
|
generic_stats.name | Name of this group of data |
Progression parameters
Replace <M>
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
Parameter | Type | Optional | Table and field | Description |
---|---|---|---|---|
stat<M>_id | str | ✓
|
generic_stats.id | The internal id of the stat |
stat<M>_value | int | ✓
|
generic_stats.value | The associated value with the stat |
stat<M>_stat_text | str | ✓
|
generic_stats.stat_text | The stat text of the stat. |
Example of valid stat parameters:
stat1_id = stat1_value = stat1_stat_text = stat2_id = stat2_value = stat2_stat_text =
Cargo table declarations