Template:CatTxt: Difference between revisions
Jump to navigation
Jump to search
Documentation
mNo edit summary |
No edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 16: | Line 16: | ||
--> | --> | ||
|works = List of works | |works = List of works published in {{#sub:{{PAGENAME}}||-6}}. {{#ifexist: Category:{{#sub:{{PAGENAME}}||-6}} publications | See also a list of [[:Category:{{#sub:{{PAGENAME}}||-6}} publications|publications issued]] in {{#sub:{{PAGENAME}}||-6}}.}} | ||
[[Category:Works grouped by publication year| ]]<!-- | [[Category:Works grouped by publication year| ]]<!-- | ||
--> | --> | ||
|publications = List of publications | |publications = List of publications issued in {{#sub:{{PAGENAME}}||-13}}. {{#ifexist: Category:{{#sub:{{PAGENAME}}||-13}} works | See also a list of [[:Category:{{#sub:{{PAGENAME}}||-13}} works|works published]] in {{#sub:{{PAGENAME}}||-13}}.}} | ||
[[Category:Publications grouped by publication year| ]]<!-- | [[Category:Publications grouped by publication year| ]]<!-- | ||
--> | --> | ||
|births = {{Birthyr| {{#sub:{{#explode:{{PAGENAME}}||0}}|0|-1}} | {{#sub:{{#explode:{{PAGENAME}}||0}}|-1}} }} | |births = {{Birthyr|{{#sub:{{#explode:{{PAGENAME}}||0}}|0|-1}}|{{#sub:{{#explode:{{PAGENAME}}||0}}|-1}}}} | ||
|deaths = {{Deathyr| {{#sub:{{#explode:{{PAGENAME}}||0}}|0|-1}} | {{#sub:{{#explode:{{PAGENAME}}||0}}|-1}} }} | |deaths = {{Deathyr|{{#sub:{{#explode:{{PAGENAME}}||0}}|0|-1}}|{{#sub:{{#explode:{{PAGENAME}}||0}}|-1}}}} | ||
|composers = {{ComposerNationality|{{#sub:{{PAGENAME}}||-10}}}} | |composers = {{ComposerNationality|{{#sub:{{PAGENAME}}||-10}}}} | ||
|texts = {{TextsByLangCatTxt |{{#sub:{{PAGENAME}}|| -6}}}} | |texts = {{TextsByLangCatTxt |{{#sub:{{PAGENAME}}|| -6}}}} |
Revision as of 04:32, 5 January 2021
This multipurpose template adds proper header texts to the following types of categories:
|
|
|
- Usage
- Just add {{CatTxt}} to the new category. If it is added by mistake to a different category than the ones listed above, a warning message is displayed:
- ERROR: The template {{CatTxt}} was not designed for this category!
- Syntax with sort key
- Categories that contain a name (be it a composer, arranger or editor) are automatically sorted by the person's last name. If that is not the desirable result, a sort key can be added as a parameter:
- {{CatTxt|Johnson, Alexander}}