Template:Mastery group/doc: Difference between revisions
(Created page with "{{Documentation subpage}} {{Lua|Module:Mastery group}} __TOC__ The '''Mastery group''' template is used to submit mastery group data to the cargo data base. It should be use...") |
No edit summary |
||
Line 16: | Line 16: | ||
Example for exporting by id: | Example for exporting by id: | ||
<code>pypoe_exporter wiki mastery groups id --wiki --wiki-user <username> --wiki-password <bot_password> < | <code>pypoe_exporter wiki mastery groups id --wiki --wiki-user <username> --wiki-password <bot_password> <id_of_the_mastery_group1> [id_of_the_mastery_group2] [...] [id_of_the_mastery_group3]</code> | ||
==Parameters== | ==Parameters== | ||
Line 37: | Line 37: | ||
| {{yes}} | | {{yes}} | ||
| mastery_groups.id | | mastery_groups.id | ||
| Internal Id of the mastery | | Internal Id of the mastery group. | ||
| {{n/a}} | | {{n/a}} | ||
|- | |- | ||
Line 53: | Line 53: | ||
| {{no}} | | {{no}} | ||
| mastery_groups.main_page | | mastery_groups.main_page | ||
| Name of the main article for this mastery | | Name of the main article for this mastery in the wiki. | ||
This is used for linking to articles; if left empty, the name will be used instead. | This is used for linking to articles; if left empty, the name will be used instead. |
Revision as of 04:07, 26 November 2021
This subpage provides documentation for Template:Mastery group.
The Mastery group template is used to submit mastery group data to the cargo data base. It should be used from the main page for the mastery group.
Overview
The template will do the following:
- add cargo data to the page
- show an infobox showing the information for a mastery
PyPoE export
PyPoE can be used to export this data from the game to the wiki. pypoe_exporter wiki mastery groups
is responsible for handling the export.
Example for exporting by id:
pypoe_exporter wiki mastery groups id --wiki --wiki-user <username> --wiki-password <bot_password> <id_of_the_mastery_group1> [id_of_the_mastery_group2] [...] [id_of_the_mastery_group3]
Parameters
These correspond to fields in the cargo tables.
General
Parameter | Type | PyPoE Export |
Required | Field | Description | Default |
---|---|---|---|---|---|---|
id | str (unique) | ✓
|
✓
|
mastery_groups.id | Internal Id of the mastery group. | N/A |
name | str | ✓
|
✓
|
mastery_groups.name | Name of the mastery as it appears in the skill tree | N/A |
main_page | str | ✗
|
✗
|
mastery_groups.main_page | Name of the main article for this mastery in the wiki.
This is used for linking to articles; if left empty, the name will be used instead. |
N/A |
Cargo tables
Cargo table declarations:
Name | Declaration |
---|---|
mastery_groups | {{Mastery group/cargo/mastery_groups}}
|