Template:CSWnt

This is a non-table version of the CSW template

This template formats a composer’s name in one column, and a work title in the adjacent column, in a manner similar to the {{LinkCompS}} and {{NoCompS}} templates. It includes the separation formatting between the two columns of the table, but not at either side (before and after).

The composer’s name, which in a category page is usually shown in order Surname, First Names (e.g. Mozart, Wolfgang Amadeus, should be entered as the first two variables, but in familiar writing order, First Names, Surname. The work title should then occupy the third variable (e.g. Die Zauberflöte, K.620):

  • {{CSWnt|Wolfgang Amadeus|Mozart|Die Zauberflöte, K.620}}

Like the NoCompS template, there are two optional parameters, omit and add, which can be used to customise the work title displayed. omit may be used to remove text from the end of the work title immediately before the composer’s name. add may be used to add extra text after the work title as part of the link. Both the omit and add variables can be used in the one template call, and can be used in any order:

  • {{CSWnt|Wolfgang Amadeus|Mozart|Die Zauberflöte|omit=, K.620|add=(1791)}}

N.B. The title parameter, together with the portion included using the omit variable, must together with the composer’s name make up the entire work title, or an invalid link will result. Neither the omit nor add variables may begin with a space. While these could be encoded as an HTML entity (i.e.,  ), it is rather simpler to use the shorthand variables o and a instead, as in the example below. There are also optional 4th and 5th fields which allow for the substition of different composer name and title (the omit option is not needed with these but the add option is also available).

  • {{CSWnt|Wolfgang Amadeus|Mozart|Die Zauberflöte|o=, K.620|a=(1791)|W.A. Mozart|The Magic Flute}}


This will include the required space at the level of the template call. Do not include the space for the link in the template variable or a red link will result!