Difference between revisions of "Template:Honor index"
DesignerThan (talk | contribs) (add support for pilots) |
|||
Line 44: | Line 44: | ||
|excat2=AY Honors/Approved by North American Division | |excat2=AY Honors/Approved by North American Division | ||
}} | }} | ||
+ | <div style="width:100%, white-space:nowrap; border:2px solid; padding:5px;"> | ||
+ | To add a tiny icon for a region (such as [[File:SAD tiny.png]] or [[File:PRU tiny.png]]) and have it correctly displayed in the honor index for a non-NAD honor, follow these steps: | ||
+ | |||
+ | # [[Special:Upload|Upload]] the image with the naming convention "XXXX_tiny.png", where XXXX is the abbreviation of the region (ex. South American Division = SAD). | ||
+ | # Make sure to include the abbreviation given in the image file name into the [[Template:Division abbrev|Division Abbreviation template]]. | ||
+ | # Make sure the name of the regional organization is included in the [[Localization:Authorities|Authorizaties Localization]] page. | ||
+ | # When creating the Overview page for the honor, make sure to include the ''Insignia Source'' parameter in the [[Template:HonorLanding|HonorLanding template]] and add the name or abbreviation of the region. | ||
+ | # This will activate the [[Template:Insignia_source|Insignia Source template]]. | ||
+ | # The [[Template:Division abbrev|Division Abbreviation template]] will switch the name to the regional abbreviation, if necessary. This will allow the [[Template:Honor_index|Honor Index template]] to then find the "DivAbbrev+tiny" image file and display it in the index. | ||
+ | </div> | ||
+ | |||
+ | |||
<templatedata> | <templatedata> | ||
+ | |||
{ | { | ||
"params": { | "params": { |
Revision as of 02:50, 8 July 2022
Honor | Patch | Approval | Skill Level | Year |
---|---|---|---|---|
Fabric Yo-Yo | 1 | 2012 | ||
Music - Beginners | 1 | Unknown | ||
Papercraft | 1 | 2012 |
Honor | Patch | Category | Approval | Skill Level | Year |
---|---|---|---|---|---|
Fabric Yo-Yo | Arts, Crafts and Hobbies | 1 | 2012 | ||
Music - Beginners | Arts, Crafts and Hobbies | 1 | Unknown | ||
Papercraft | Arts, Crafts and Hobbies | 1 | 2012 |
To add a tiny icon for a region (such as or ) and have it correctly displayed in the honor index for a non-NAD honor, follow these steps:
- Upload the image with the naming convention "XXXX_tiny.png", where XXXX is the abbreviation of the region (ex. South American Division = SAD).
- Make sure to include the abbreviation given in the image file name into the Division Abbreviation template.
- Make sure the name of the regional organization is included in the Authorizaties Localization page.
- When creating the Overview page for the honor, make sure to include the Insignia Source parameter in the HonorLanding template and add the name or abbreviation of the region.
- This will activate the Insignia Source template.
- The Division Abbreviation template will switch the name to the regional abbreviation, if necessary. This will allow the Honor Index template to then find the "DivAbbrev+tiny" image file and display it in the index.
This template creates a table view, containing the honors in this wiki. The columns shown can be modified also it can be defined which categories should be included and which excluded.
It is very complex so I try to explain what is going on. First in the template we create the needed variables for defining the table (text's of the header, wanted columns, row template). After we did that magic, we have the magic that enables the template to have a dynamic count of needed (included) categories.
That is the whole preparation. Now we only let DPL do it's magic and a nice table will be created... hopefully ;)Parameter | Description | Type | Status | |
---|---|---|---|---|
Shown columns (and order) | columnselection | This defines the shown columns and the order of those. Each column needs to be separated by a ":" and it needs to be started with a ":". Possible columns are: honorname, insignia, category, authority, skill, year
| Unknown | optional |
First excluded Category | excat1 | The honor isn't allowed to be in that category.
| Unknown | optional |
Second excluded Category | excat2 | The honor isn't allowed to be in that category.
| Unknown | optional |
Third excluded Category | excat3 | The honor isn't allowed to be in that category.
| Unknown | optional |
Fourth excluded Category | excat4 | The honor isn't allowed to be in that category.
| Unknown | optional |
Fifth excluded Category | excat5 | The honor isn't allowed to be in that category.
| Unknown | optional |
Included Category | catn | This category needs to be included. The n needs to be replaced with an upcounting number, that way it is possible to add multiple categories. An honor included in the list needs to have every added category. For example add those arguments: cat1=mycategory1|cat2=mycategory2 and so on.
| Unknown | optional |