Template:OpusList

From ChoralWiki
Jump to navigation Jump to search


Documentation

This template presents the works of a composer in a table, in order of an index: an Opus list or other index. It depends on the template {{Opus}} being placed on each work page. The template is intended for use on a composer page, but it can be used on any page.

Format: {{OpusList|<composer>|<index>|other,mvt,comment,yr,gen,subgen,ly,vo,voices|categ=<category>|head=<header>}}

Parameters:

  1. Composer. The full name of the composer, as in Category:Composers. If blank, defaults to name of the current page.
  2. Index. Code for the index used: see {{Opus}} for a list of codes. This alphanumeric parameter must be specified.
  3. Columns. Codes for the third and following columns in the table, comma-delimited, with no spaces. Codes may be specified in any order. If this parameter is blank, Index number and Title are displayed by default.
    • other – Alternate index and number, the contents of template {{Opus}}, parameter other= on the work page.
    • mvt – Number of movements or sections, the contents of template {{Opus}}, parameter mvt= on the work page.
    • comment – Comment, the contents of template {{Opus}}, parameter comment= on the work page.
    • gen – Genre, the contents of template {{Genre}}, parameter 1 on the work page.
    • subg – Subgenre, the contents of template {{Genre}}, parameter 2 on the work page.
    • vo – Number of voices, the contents of template {{Voicing}}, parameter 1 on the work page.
    • voices – Voices, the contents of template {{Voicing}}, parameter 2 on the work page.
    • ly – Lyricist, the contents of template {{Lyricist}}, parameter 1 on the work page.
    • yr – Year first published or composed, the contents of template {{Pub}}, parameter 2 on the work page.
  4. Category.categ= an optional category limiting the display. If not specified, all works by the composer will be shown.
  5. Header.head= an alternate header text. If not specified, <category> works of <composer> at CPDL, using index <index code> using header h2.

Before the table, the header will be shown. In the table, Index number and Title will always be shown first, and the table will be sorted by index number. After the first two columns, column headers will be in the order specified, except Year will always be the last column if it is listed.

Examples.

{{OpusList|José Maurício Nunes Garcia|CPM|mvt,gen,subg,vo,voices,yr,ly}}
shows
OpusListEx1.jpg
… all 179 works of this composer