Template:CatTxt: Difference between revisions
Jump to navigation
Jump to search
Documentation
(added a column for mother categories) |
(now it also replaces {{Birthyr}} and {{Deathyr}}) |
||
Line 24: | Line 24: | ||
--> | --> | ||
|birth = {{Birthyr| {{#sub:{{#explode:{{PAGENAME}}||0}}|0|-1}} | {{#sub:{{#explode:{{PAGENAME}}||0}}|-1}} }} | |||
|death = {{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}}}} | ||
Line 52: | Line 54: | ||
:<tt>Category:<language>_translations</tt> | :<tt>Category:<language>_translations</tt> | ||
:<tt>Category:<nationality>_composers</tt> | :<tt>Category:<nationality>_composers</tt> | ||
:<tt>Category:<year>_births</tt> | |||
:<tt>Category:<year>_deaths</tt> | |||
:<tt>Category:<year>_works</tt> | :<tt>Category:<year>_works</tt> | ||
:<tt>Category:<year>_publications</tt> | :<tt>Category:<year>_publications</tt> | ||
Line 65: | Line 69: | ||
:{{CiteCat|Translations (by language)}} | :{{CiteCat|Translations (by language)}} | ||
:{{CiteCat|Composers grouped by nationality}} | :{{CiteCat|Composers grouped by nationality}} | ||
:{{CiteCat|People grouped by birth year}} | |||
:{{CiteCat|People grouped by death year}} | |||
:{{CiteCat|Works grouped by publication year}} | :{{CiteCat|Works grouped by publication year}} | ||
:{{CiteCat|Publications grouped by publication year}} | :{{CiteCat|Publications grouped by publication year}} | ||
Line 78: | Line 84: | ||
:alias for {{tl|TranslationsCatTxt|<language>}} | :alias for {{tl|TranslationsCatTxt|<language>}} | ||
:alias for {{tl|ComposerNationality|<nationality>}} | :alias for {{tl|ComposerNationality|<nationality>}} | ||
:alias for {{tl|Birthyr|<yea>|<r>}} | |||
:alias for {{tl|Deathyr|<yea>|<r>}} | |||
:original template | :original template | ||
:original template | :original template |
Revision as of 17:07, 22 October 2019
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}}