Template:CompCatTxt: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(Category: header templates)
mNo edit summary
Line 7: Line 7:


'''Syntax:'''
'''Syntax:'''
{{tl|CompCatTxt}}
:{{tl|CompCatTxt}}
which inserts the text
which inserts the text
:This category provides a list of ''<composer>'' works on CPDL, sorted alphabetically by title of the works pages.
:This category provides a list of ''<composer>'' works on CPDL, sorted alphabetically by title of the works pages.
Line 13: Line 13:


'''Syntax with sort key:'''
'''Syntax with sort key:'''
{{tl|CompCatTxt|Vaughan Williams, Ralph}}
:{{tl|CompCatTxt|Vaughan Williams, Ralph}}
which inserts the text
which inserts the text
:This category provides a list of ''<composer>'' works on CPDL, sorted alphabetically by title of the works pages.
:This category provides a list of ''<composer>'' works on CPDL, sorted alphabetically by title of the works pages.
Line 21: Line 21:
}}
}}


[[Category:Category: header templates]]
[[Category:Category header templates]]
</noinclude>
</noinclude>

Revision as of 17:25, 12 May 2013


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 Compositions by composer 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 Compositions by composer 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).