Difference between revisions of "Template:Cite Grove/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(copy of current code)
imported>PBS
m (PBS moved page Template:GroveOnline/sandbox to Template:Cite Grove/sandbox: As proposed and agreed on the talk page. This removes a code fork by moving the article with the older and longer edit history over the newer fork)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{Cite encyclopedia
+
{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
|title={{if empty|{{{title|}}}|{{{3|}}}}}
+
  |_exclude=id, _debug
|authors={{{authors|}}}
+
 
|author={{if empty|{{{author|{{{author1|}}}}}}|{{{2|}}}}}
+
  |edition={{#if:{{{url|}}}{{{doi|}}}{{{id|}}}|8th}}
|author2={{{author2|}}}
+
  |encyclopedia={{#if:{{{url|}}}{{{id|}}}{{{doi|}}}|[[The New Grove Dictionary of Music and Musicians#Grove Music Online and Oxford Music Online|Grove Music Online]]|[[The New Grove Dictionary of Music and Musicians]]}}
|author3={{{author3|}}}
+
  |publisher=[[Oxford University Press]]
|author4={{{author4|}}}
+
  |url-access={{#if:{{{url|}}}|subscription}}
|author5={{{author5|}}}
+
  |doi={{#if:{{{id|}}}|10.1093/gmo/9781561592630.article.{{{id|}}}}}
|author6={{{author6|}}}
+
  |editor-last={{#if:{{{url|}}}{{{doi|}}}{{{id|}}}||Root}}
|author7={{{author7|}}}
+
  |editor-first={{#if:{{{url|}}}{{{doi|}}}{{{id|}}}||Deane L.}}
|author8={{{author8|}}}
+
  |date=2001
|author9={{{author9|}}}
+
}}<!--
|author10={{{author10|}}}
+
-->{{main other|
|author1-link={{{author1-link|{{{author1link|{{{author-link1|{{{authorlink1|{{{author-link|{{{authorlink|}}}}}}}}}}}}}}}}}}
+
    [[Category:Wikipedia articles incorporating the GroveOnline template]]
|author2-link={{{author2-link|{{{author2link|{{{author-link2|{{{authorlink2|}}}}}}}}}}}}
+
    {{#if:{{{1|}}}|[[Category:Wikipedia articles incorporating the GroveOnline template with an unnamed parameter]]}}
|author3-link={{{author3-link|{{{author3link|{{{author-link3|{{{authorlink3|}}}}}}}}}}}}
+
    {{#if:{{{url|}}}|[[Category:Wikipedia articles incorporating the GroveOnline template with a url parameter‎]]}}
|author4-link={{{author4-link|{{{author4link|{{{author-link4|{{{authorlink4|}}}}}}}}}}}}
+
    {{#if:{{{doi|}}}|[[Category:Wikipedia articles incorporating the GroveOnline template with a doi parameter‎]]}}
|author5-link={{{author5-link|{{{author5link|{{{author-link5|{{{authorlink5|}}}}}}}}}}}}
+
    {{#if:{{{id|}}}|[[Category:Wikipedia articles incorporating the GroveOnline template with an id parameter‎]]}}
|author6-link={{{author6-link|{{{author6link|{{{author-link6|{{{authorlink6|}}}}}}}}}}}}
+
    {{#if:{{{url|}}}{{{doi|}}}{{{id|}}}||[[Category:Wikipedia articles incorporating the GroveOnline template without a link parameter]]‎}}
|author7-link={{{author7-link|{{{author7link|{{{author-link7|{{{authorlink7|}}}}}}}}}}}}
+
    {{#if:{{both|{{{url|}}}|{{{doi|}}}}}|[[Category:Articles using the GroveOnline template with both url and doi parameters]]}}
|author8-link={{{author8-link|{{{author8link|{{{author-link8|{{{authorlink8|}}}}}}}}}}}}
+
    {{#if:{{both|{{{url|}}}|{{{id|}}}}}|[[Category:Articles using the GroveOnline template with both url and id parameters]]}}
|author9-link={{{author9-link|{{{author9link|{{{author-link9|{{{authorlink9|}}}}}}}}}}}}
+
    {{#if:{{both|{{{doi|}}}|{{{id|}}}}}|[[Category:Artciles using the GroveOnline template with both doi and id parameters]]}}
|author10-link={{{author10-link|{{{author10link|{{{author-link10|{{{authorlink10|}}}}}}}}}}}}
+
  }}<!--
|last-author-amp={{{last-author-amp|{{{lastauthoramp|}}}}}}
+
--><noinclude>
|display-authors={{{display-authors|{{{displayauthors|}}}}}}
+
{{Documentation}}
|first={{{first|}}}
+
</noinclude>
|first1={{{first1|}}}
 
|first2={{{first2|}}}
 
|first3={{{first3|}}}
 
|first4={{{first4|}}}
 
|first5={{{first5|}}}
 
|last={{{last|}}}
 
|last1={{{last1|}}}
 
|last2={{{last2|}}}
 
|last3={{{last3|}}}
 
|last4={{{last4|}}}
 
|last5={{{last5|}}}
 
|encyclopedia=[[The New Grove Dictionary of Music and Musicians|Grove Music Online. Oxford Music Online]]
 
|publisher=[[Oxford University Press]]
 
|url={{if empty|{{{url|}}}|{{#if:{{{1|}}}|https://doi.org/10.1093/gmo/9781561592630.article.{{trim|{{{1|}}}}}}}}}
 
|url-access={{#if:{{{url|}}}|subscription|}}
 
|access-date={{#if:{{{url|}}}|{{{access-date|}}}|}}
 
|mode={{{mode|}}}
 
|ref={{{ref|}}}
 
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 

Latest revision as of 07:04, 4 July 2020

Root, Deane L., ed. (2001). The New Grove Dictionary of Music and Musicians. Oxford University Press. Missing or empty |title= (help)

Template documentation[view] [edit] [history] [purge]

This template provides a quick, standard method of citing Grove Music Online for music-related articles in Wikipedia.

It is a wrapper around the standard citation template {{cite encyclopedia}}. As such it fills out some {{cite encyclopedia}} parameters, but the full range of parameters provided by WP:CS1 are available. To change the appearance of the output to that of {{citation}} use the parameter |mode=cs2.

Usage

All parameters apart from |title= are strictly speaking optional:

{{cite Grove |title=Roméo et Juliette}}

Root, Deane L., ed. (2001). "Roméo et Juliette". The New Grove Dictionary of Music and Musicians. Oxford University Press.

However, it is strongly encouraged to include at least |last1=, |first1=, |date=, |title=, and |url= (or |doi= or |id=).

If one of the link parameters (|url=, |doi= or |id=) is used the template displays the title Grove Music Online, 8th (ed). If no link parameter is provided it is assumed that the citation is based on the paper edition: the title is changed to The New Grove Dictionary of Music and Musicians and editor is added. If this is the case then the parameter |page=number ought to be provided.

The syntax with typical parameters is as follows:

{{cite Grove
  |last1 = Huebner
  |first1 = Steven
  |date = 2002
  |title = Roméo et Juliette
  |url=https://doi.org/10.1093/gmo/9781561592630.article.O006772
  |url-access=subscription
  }}

Huebner, Steven (2002). "Roméo et Juliette". Grove Music Online (8th ed.). Oxford University Press.

Example of a free-access page, with two authors, each of which has a Wikipedia article:

{{Cite Grove
  |last1 = Wolff
  |first1 = Christoph
  |author-link1 = Christoph Wolff
  |last2 = Emery
  |first2 = Walter
  |author-link2 = Walter Emery
  |date = 20 January 2001
  |title = Bach, Johann Sebastian
  |url = https://doi.org/10.1093/gmo/9781561592630.article.6002278195
  }}

Wolff, Christoph; Emery, Walter (20 January 2001). "Bach, Johann Sebastian". Grove Music Online (8th ed.). Oxford University Press.

As an alternative to |url=, either |doi= or |id= can be used (|id= should contain the end part of the doi—after the last decimal point).

{{cite Grove
  |last1 = Huebner
  |first1 = Steven
  |year = 2002
  |title = Roméo et Juliette
  |doi = 10.1093/gmo/9781561592630.article.O006772
  }}

Huebner, Steven (2002). "Roméo et Juliette". Grove Music Online (8th ed.). Oxford University Press. doi:10.1093/gmo/9781561592630.article.O006772.
{{cite Grove
  |author = Huebner, Steven 
  |date = 2002
  |title = Roméo et Juliette
  |id = O006772
  }}

Huebner, Steven (2002). "Roméo et Juliette". Grove Music Online (8th ed.). Oxford University Press. doi:10.1093/gmo/9781561592630.article.O006772.

It is however discouraged, as in the last example, to use the |author= parameter when both last name and given name(s) are known: use |last1= and |first1= instead

Maintenance categories

For maintenance categories see:

See also

  • {{Cite Grove}} – Grove Music Online or New Grove, 2nd ed., 2001 depending on whether an internet link is provided
  • {{Cite NewGrove1980}} – New Grove, 1st ed., 1980
  • {{Cite NewGrove2001}} – New Grove, 2nd ed., 2001
  • {{Cite NewGroveJazz2002}} – New Grove Dictionary of Jazz, 2nd ed., 2002
  • {{Cite Grove1900}} – Use for citations where the Grove1900 text summarised but not copied
  • {{Grove1900}} – Grove, 1900 (public domain), Use for attribution where some of the text is copied from A Dictionary of Music and Musicians (1900)
  • {{Grove1900 poster}} – Place in the external links area for topic relevant Grove 1900 articles that may be of interest but are not cited by Wikipedia.