Template:New composer: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(added tutorial)
(seems silly to keep adding IMSLP by hand)
(29 intermediate revisions by 6 users not shown)
Line 1: Line 1:
To create a new composer page, copy all text below the horizontal line to the new page and replace portions <font color="red">in red</font> with the correct information, as indicated:
<includeonly>{{subst:New composer/Preload}}</includeonly><noinclude>{{Doc|1=


*<tt><nowiki>Image:</nowiki></tt> — if you have uploaded an image, uncomment this line (by removing <tt><nowiki><!--</nowiki></tt> and <tt><nowiki>--></nowiki></tt>) and replace text in red by the name of the image file.
This template is used to easily place the relevant code for a page for a new composer. It must be '''substituted''' as explained below.
*<tt><nowiki>Born:</nowiki></tt> — remove text in red if birth date/year is unknown.
*<tt><nowiki>Died:</nowiki></tt> — remove text in red if death date/year is unknown; remove the whole line if composer is still alive.
*<tt><nowiki>Biography</nowiki></tt> — if you don't have any biographical data to add, then just remove text in red.
*<tt><nowiki>External links</nowiki></tt> — add related links (one per line, preceded by an asterisk *), or just remove text in red.
*<tt>yyyy births</tt> — replace "yyyy" by the actual birth year, or by the word <tt>Unknown</tt>.
*<tt>yyyy deaths</tt> — replace "yyyy" by the actual death year, or by the word <tt>Unknown</tt>.
*<tt>Era composers</tt> — replace "Era" by one of these: <tt>Medieval&bull;Baroque&bull;Classical&bull;Romantic&bull;Early&nbsp;20th&nbsp;century&bull;Modern</tt>
*<tt>Nationality composers</tt> — replace "Nationality" by the corresponding one, or by the word <tt>Unknown</tt>.
*<tt><nowiki>DEFAULTSORT:</nowiki></tt> — composer's last name first, then first name (or names), exactly as they appear in page title.


==Composer template (copy text below)==
;Usage: <tt><nowiki>{{subst:new composer}}</nowiki></tt>
<tt><nowiki><!-- Composer template, this is a comment line and will not appear --></nowiki><br>
 
<nowiki><!-- optional items such as 'picture' and 'aliases' are commented out unless required --></nowiki><br>
The page must be saved once the above code has been placed on it. Edit the page once again and the relevant code will be written out in full.
<nowiki><!-- [[Image:</nowiki><font color="red">John_Doe.jpg</font>|thumb|<font color="red">John Doe</font><nowiki>]] --><!-- image must be uploaded previously, check image options in Help section --></nowiki><br>
 
The function <tt><nowiki>{{#SortWorks:}}</nowiki></tt> appears; it ensures that all works by this composer will be listed. Please leave it there, or automate this composer page in some other way; see [[Help:Automating the work list on composer pages]] for more information.
 
Substitute the texts in red with valid information, as indicated below:
 
*<tt>'''Image:'''</tt> if you have uploaded an image, uncomment this line (by removing <tt><nowiki><!--</nowiki></tt> and <tt><nowiki>--></nowiki></tt>) and replace text in red with the name of the image file.
*<tt>'''Aliases:'''</tt> if the composer name has any variant spellings, uncomment this line and add them here.
*<tt>'''Born:'''</tt> remove text in red if birth date/year is unknown.
*<tt>'''Died:'''</tt> remove text in red if death date/year is unknown; remove the whole line if composer is still alive.
*<tt>'''Biography:'''</tt> if you don't have any biographical data to add, just remove text in red.
*<tt>'''External links:'''</tt> add related links (one per line, preceded by an asterisk), or just remove text in red.
*<tt>'''DEFAULTSORT:'''</tt> '''''Only change this if strictly necessary'''''; the included code <tt><nowiki>{{DEFAULTSORT:{{NameSorter}}}}</nowiki></tt> will put the last word in the composer's name first, followed by a comma, space and then the other words in the composer name - with diacritical marks removed (for correct sorting).  For a name such as "Antonín Dvořák" the result will be equivalent to typing <tt><nowiki>{{DEFAULTSORT:Dvorak, Antonin}}</nowiki></tt>.  For a composer whose last name consists of more than one word, such as "Jean de Brébeuf" (last name is "de Brébeuf"), the line should read <tt><nowiki>{{DEFAULTSORT:De Brebeuf, Jean}}</nowiki></tt>.  Note additional requirements are that all words be capitalized (as with capitalization of "de" in the previous example), and letters following the initial letter in a word must be in lower-case (example, "Sally DeFord" is sorted as "Deford, Sally").  '''If you have any doubt, leave this line as it is,''' and an administrator will correct it later if required.  '''Do not insert something like''' <tt><nowiki>{{DEFAULTSORT:{{Beethoven}}}}</nowiki></tt> - putting the composer's last name in double curly braces results in the composer being sorted under "{" at the end of the alphabet, not under "B" where it should be.
*<tt>'''yyyy births:'''</tt> replace "Unknown" with the actual birth year if you know it.
*<tt>'''yyyy deaths:'''</tt> replace "Unknown" with the actual death year if you know it; remove the whole line if composer is still alive.
*<tt>'''Era:'''</tt> replace "Era" with one of these: "<tt>Medieval/Renaissance/Baroque/Classical/Romantic/Early&nbsp;20th&nbsp;century/Modern</tt>"
*<tt>'''Nationality:'''</tt> replace "Nationality" with the corresponding one, or by the word "<tt>Unknown</tt>". A list of currently used nationalities can be found at {{CiteCat|Composers grouped by nationality}}.
 
The source code pasted on the page is located at [[/Preload]]
 
===See also===
*[[Template:New editor]]
*[[Template:New lyricist]]
*[[Template:New text]]
}}
==Inserted text==
<tt>
<nowiki><!-- [[Image:</nowiki><font color="red">John_Doe.jpg</font>|thumb|<font color="red">John Doe</font>]] --><nowiki><!-- image must be uploaded previously --></nowiki><br>
<nowiki><!-- '''Aliases:''' --></nowiki><br>
<nowiki><!-- '''Aliases:''' --></nowiki><br>
<nowiki>==Life==</nowiki><br>
<nowiki>==Life==</nowiki><br>
Line 22: Line 39:
<nowiki>'''Died:'''</nowiki> <font color="red">dd Month yyyy</font>
<nowiki>'''Died:'''</nowiki> <font color="red">dd Month yyyy</font>


<nowiki>'''Biography'''<br></nowiki><br>
<nowiki>'''Biography'''</nowiki>
 
<font color="red"><nowiki>''add biographical data here''</nowiki></font>
<font color="red"><nowiki>''add biographical data here''</nowiki></font>


Line 28: Line 46:


<nowiki>==List of choral works==</nowiki><br>
<nowiki>==List of choral works==</nowiki><br>
<nowiki>{{Legend}}</nowiki>


<nowiki>{{#SortWorks:}}</nowiki><br>
<nowiki>{{CheckMissing}}</nowiki>


<nowiki>{{Whatlinkshere}}</nowiki>
<nowiki>{{Whatlinkshere}}</nowiki>
Line 37: Line 56:


<nowiki>==External links==</nowiki><br>
<nowiki>==External links==</nowiki><br>
<font color="red"><nowiki>''add web links here''</nowiki></font>
<nowiki>*{{IMSLP}}</nowiki><br>
 
<font color="red"><nowiki>''add additional web links here''</nowiki></font>


<nowiki>[[Category:</nowiki><font color="red">yyyy</font> births]]<br>
<nowiki>{{DEFAULTSORT:{{NameSorter}}}}</nowiki><br>
<nowiki>[[Category:</nowiki><font color="red">yyyy</font> deaths]]<br>
[[Category:<font color="red">Unknown</font> births]]<br>
[[Category:<font color="red">Unknown</font> deaths]]<br>
<nowiki>[[Category:Composers]]</nowiki><br>
<nowiki>[[Category:Composers]]</nowiki><br>
<nowiki>[[Category:</nowiki><font color="red">Era</font> composers]]<br>
[[Category:<font color="red">Era</font> composers]]<br>
<nowiki>[[Category:</nowiki><font color="red">Nationality</font> composers]]<br>
[[Category:<font color="red">Nationality</font> composers]]<br>
<nowiki>__NOTOC__</nowiki><br>
</tt>
<nowiki>{{DEFAULTSORT:</nowiki><font color="red">Last_Name</font>, <font color="red">First_Name(s)</font>}}</tt>
[[Category:Preload templates]]</noinclude>

Revision as of 21:56, 17 September 2019

Documentation

This template is used to easily place the relevant code for a page for a new composer. It must be substituted as explained below.

Usage
{{subst:new composer}}

The page must be saved once the above code has been placed on it. Edit the page once again and the relevant code will be written out in full.

The function {{#SortWorks:}} appears; it ensures that all works by this composer will be listed. Please leave it there, or automate this composer page in some other way; see Help:Automating the work list on composer pages for more information.

Substitute the texts in red with valid information, as indicated below:

  • Image: if you have uploaded an image, uncomment this line (by removing <!-- and -->) and replace text in red with the name of the image file.
  • Aliases: if the composer name has any variant spellings, uncomment this line and add them here.
  • Born: remove text in red if birth date/year is unknown.
  • Died: remove text in red if death date/year is unknown; remove the whole line if composer is still alive.
  • Biography: if you don't have any biographical data to add, just remove text in red.
  • External links: add related links (one per line, preceded by an asterisk), or just remove text in red.
  • DEFAULTSORT: Only change this if strictly necessary; the included code {{DEFAULTSORT:{{NameSorter}}}} will put the last word in the composer's name first, followed by a comma, space and then the other words in the composer name - with diacritical marks removed (for correct sorting). For a name such as "Antonín Dvořák" the result will be equivalent to typing {{DEFAULTSORT:Dvorak, Antonin}}. For a composer whose last name consists of more than one word, such as "Jean de Brébeuf" (last name is "de Brébeuf"), the line should read {{DEFAULTSORT:De Brebeuf, Jean}}. Note additional requirements are that all words be capitalized (as with capitalization of "de" in the previous example), and letters following the initial letter in a word must be in lower-case (example, "Sally DeFord" is sorted as "Deford, Sally"). If you have any doubt, leave this line as it is, and an administrator will correct it later if required. Do not insert something like {{DEFAULTSORT:{{Beethoven}}}} - putting the composer's last name in double curly braces results in the composer being sorted under "{" at the end of the alphabet, not under "B" where it should be.
  • yyyy births: replace "Unknown" with the actual birth year if you know it.
  • yyyy deaths: replace "Unknown" with the actual death year if you know it; remove the whole line if composer is still alive.
  • Era: replace "Era" with one of these: "Medieval/Renaissance/Baroque/Classical/Romantic/Early 20th century/Modern"
  • Nationality: replace "Nationality" with the corresponding one, or by the word "Unknown". A list of currently used nationalities can be found at Composers grouped by nationality.

The source code pasted on the page is located at /Preload

See also

Inserted text

<!-- [[Image:John_Doe.jpg|thumb|John Doe]] --><!-- image must be uploaded previously -->
<!-- '''Aliases:''' -->
==Life==
'''Born:''' dd Month yyyy

'''Died:''' dd Month yyyy

'''Biography'''

''add biographical data here''

{{WikipediaLink}}

==List of choral works==

{{#SortWorks:}}
{{CheckMissing}}

{{Whatlinkshere}}

==Publications==


==External links==
*{{IMSLP}}
''add additional web links here''

{{DEFAULTSORT:{{NameSorter}}}}
[[Category:Unknown births]]
[[Category:Unknown deaths]]
[[Category:Composers]]
[[Category:Era composers]]
[[Category:Nationality composers]]