Difference between revisions of "Template:Honor index"
DesignerThan (talk | contribs) (removed the linebreak in the variable selectedcolumns) |
DesignerThan (talk | contribs) (remove the added temporary categories for the switch of the honor landing page) |
||
Line 15: | Line 15: | ||
|tablerow={{#var: tablerow}} | |tablerow={{#var: tablerow}} | ||
|category={{#var:argIncCat}} | |category={{#var:argIncCat}} | ||
− | |||
− | |||
|notcategory={{#if:{{{excat1|}}}|{{{excat1}}}{{GetLangSuffix}}}} | |notcategory={{#if:{{{excat1|}}}|{{{excat1}}}{{GetLangSuffix}}}} | ||
|notcategory={{#if:{{{excat2|}}}|{{{excat2}}}{{GetLangSuffix}}}} | |notcategory={{#if:{{{excat2|}}}|{{{excat2}}}{{GetLangSuffix}}}} |
Revision as of 20:48, 20 March 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 ;)Parameter | Description | Type | Status | |
---|---|---|---|---|
Shown columns (and order) | columnselection | This defines the shown columns and the order of those. Each column needs to be seperated 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 |