Template:CompCatTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
m (not really necessary to be hidden)
(28 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This is category lists the works on CPDL by {{{1|<composer given name(s)>}}} {{{2|<composer surname>}}}, sorted alphabetically by title of the works pages. For the composer page itself{{switch|{{{3}}}|case: 3=, with works sorted by {{{3}}}}}, [[{{{1}}} {{{2}}}|click here]].
<includeonly>This category provides a list of [[{{#sub:{{PAGENAME}}||-13}}]] works on CPDL, sorted alphabetically by title of the works pages{{#if:{{{sort|}}}|. See the composer page for a list of works sorted by {{{sort}}}}}.
<includeonly>[[Category:Compositions by composer|{{{2}}}, {{{1}}}]]</includeonly><noinclude>
 
[[Category:Templates|{{PAGENAME}}]]<br>{{prot-temp}}</noinclude>
[[Category:Composer works categories|{{{1|{{NameSorter|{{#sub:{{PAGENAME}}||-13}}}} }}}]]</includeonly><noinclude>
{{prot-temp}}<br>
{{DisplayBox|bgcolor=g|text=
<center><big>'''Usage'''</big></center>
 
'''Syntax:'''
:{{tl|CompCatTxt}}
which inserts the text
:This category provides a list of ''<composer>'' works on CPDL, sorted alphabetically by title of the works pages.
The ''<composer>'' field is automatically extracted from the page name. The page is included in category {{CiteCat|Composer works categories}}, sorted by ''<composer>'''s last name.
 
'''Syntax with sort key:'''
:{{tl|CompCatTxt|Vaughan Williams, Ralph}}
which inserts the text
:This category provides a list of ''<composer>'' works on CPDL, sorted alphabetically by title of the works pages.
The ''<composer>'' field is automatically extracted from the category's name. The page is included in category {{CiteCat|Composer works categories}}, using the sort key "Vaughan Williams, Ralph".
 
In both cases, the category link ("''<composer>''_compositions") becomes hidden in the works pages (because the information contained in it is supposedly in the same order than that found in the composer page).
}}
 
[[Category:Category header templates]]
</noinclude>

Revision as of 03:19, 3 November 2014


Usage

Syntax:

{{CompCatTxt}}

which inserts the text

This category provides a list of <composer> works on CPDL, sorted alphabetically by title of the works pages.

The <composer> field is automatically extracted from the page name. The page is included in category Composer works categories, sorted by <composer>'s last name.

Syntax with sort key:

{{CompCatTxt|Vaughan Williams, Ralph}}

which inserts the text

This category provides a list of <composer> works on CPDL, sorted alphabetically by title of the works pages.

The <composer> field is automatically extracted from the category's name. The page is included in category Composer works categories, using the sort key "Vaughan Williams, Ralph".

In both cases, the category link ("<composer>_compositions") becomes hidden in the works pages (because the information contained in it is supposedly in the same order than that found in the composer page).