Difference between revisions of "Template:Honor index"

From Pathfinder Wiki
Line 37: Line 37:
 
|excat2=AY Honors/Approved by North American Division
 
|excat2=AY Honors/Approved by North American Division
 
}}
 
}}
</noinclude>
+
<templatedata>
 +
{
 +
"params": {
 +
"columnselection": {
 +
"label": "Shown columns (and order)",
 +
"description": "This defines the shown columns and the order of those. Everyone needs to be seperated by a \":\" and it needs to be started with a \":\". Possible columns are: honorname, insignia, category, authority, skill, year",
 +
"example": ":honorname:insignia:category:authority:skill:year",
 +
"default": ":honorname:insignia:category:authority:skill:year",
 +
"autovalue": ":honorname:insignia:category:authority:skill:year"
 +
},
 +
"excat1": {
 +
"label": "First excluded Category",
 +
"description": "The honor isn't allowed to be in that category.",
 +
"example": "AY Honors/Approved by General Conference",
 +
"autovalue": ""
 +
},
 +
"excat2": {
 +
"label": "Second excluded Category",
 +
"description": "The honor isn't allowed to be in that category.",
 +
"example": "AY Honors/Approved by General Conference"
 +
},
 +
"excat3": {
 +
"label": "Third excluded Category",
 +
"description": "The honor isn't allowed to be in that category.",
 +
"example": "AY Honors/Approved by General Conference"
 +
},
 +
"excat4": {
 +
"label": "Fourth excluded Category",
 +
"description": "The honor isn't allowed to be in that category.",
 +
"example": "AY Honors/Approved by General Conference"
 +
},
 +
"excat5": {
 +
"label": "Fifth excluded Category",
 +
"description": "The honor isn't allowed to be in that category.",
 +
"example": "AY Honors/Approved by General Conference"
 +
},
 +
"catn": {
 +
"label": "Included Category",
 +
"description": "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.",
 +
"example": "AY Honors/Skill Level 1"
 +
}
 +
},
 +
"description": "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.\n\nIt 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). \nAfter we did that magic, we have the magic that enables the template to have a dynamic count of needed (included) categories.\n\nThat is the whole preparation. Now we only let DPL do it's magic and a nice table will be created... hopefully ;) ",
 +
"paramOrder": [
 +
"columnselection",
 +
"excat1",
 +
"excat2",
 +
"excat3",
 +
"excat4",
 +
"excat5",
 +
"catn"
 +
]
 +
}
 +
</templatedata></noinclude>

Revision as of 02:47, 25 February 2021



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 ;)

Template parameters

ParameterDescriptionTypeStatus
Shown columns (and order)columnselection

This defines the shown columns and the order of those. Everyone needs to be seperated by a ":" and it needs to be started with a ":". Possible columns are: honorname, insignia, category, authority, skill, year

Default
:honorname:insignia:category:authority:skill:year
Example
:honorname:insignia:category:authority:skill:year
Auto value
:honorname:insignia:category:authority:skill:year
Unknownoptional
First excluded Categoryexcat1

The honor isn't allowed to be in that category.

Example
AY Honors/Approved by General Conference
Auto value
Unknownoptional
Second excluded Categoryexcat2

The honor isn't allowed to be in that category.

Example
AY Honors/Approved by General Conference
Unknownoptional
Third excluded Categoryexcat3

The honor isn't allowed to be in that category.

Example
AY Honors/Approved by General Conference
Unknownoptional
Fourth excluded Categoryexcat4

The honor isn't allowed to be in that category.

Example
AY Honors/Approved by General Conference
Unknownoptional
Fifth excluded Categoryexcat5

The honor isn't allowed to be in that category.

Example
AY Honors/Approved by General Conference
Unknownoptional
Included Categorycatn

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.

Example
AY Honors/Skill Level 1
Unknownoptional