Difference between revisions of "Template:Cite Grove1900"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(Only set url if the title parameter exists)
imported>Trappist the monk
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#if:{{{noicon|}}}||[[Image:wikisource-logo.svg|12px|link=]]&nbsp;}}<!--
+
{{#if:{{{vb|}}}|{{#if:{{{inline|}}}|One or more of the preceding sentences|This article}} incorporates text from a publication now in the [[public domain]]:&nbsp;}}<!--no white space
optional verbatim message - not included by default
 
-->{{#if:{{{vb|}}}|{{#if: {{{inline|}}}|One or more of the preceding sentences|This article}} incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--no white space
 
-->{{cite encyclopedia
 
<!-- Pre-set parameters that can be hidden with the short parameter (short=1) -->
 
|{{#if:{{{short|}}} |HIDE_PARAMETER1 |editor-first}}={{#if:{{{short|}}}||{{{editor-first|George}}} }}
 
|{{#if:{{{short|}}} |HIDE_PARAMETER2 |editor-last}}={{#if:{{{short|}}}||{{{editor-last|Grove}}} }}
 
|{{#if:{{{short|}}} |HIDE_PARAMETER3 |editorlink}}={{#if:{{{short|}}}||{{{editorlink|George Grove}}} }}
 
|{{#if:{{{short|}}} |HIDE_PARAMETER4 |location}}={{#if:{{{short|}}}||{{{location|London}}} }}
 
|{{#if:{{{short|}}} |HIDE_PARAMETER5 |publisher}}={{#if:{{{short|}}}||{{{publisher|[[Macmillan Publishers|Macmillan and Company]]}}} }}
 
  
<!-- Pre-set parameters (may be overwritten) -->
+
-->{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
|year={{{year|1900}}}
+
  |_exclude=display, noicon, short, vb, wstitle, _debug
|encyclopedia={{{encyclopedia|[[A Dictionary of Music and Musicians]]}}}
+
  |_reuse=title, url <!-- these are reused -->
  
<!-- parameter that if not set displays a red warning string -->
+
<!-- Pre-set parameters that can be hidden with the short parameter (short=1) -->
| title = {{#ifeq: {{{wstitle|}}}|<!--eq to empty-->|
+
  |editor-first={{#if:{{{short|}}}||George}}
                <!--then-->{{#ifeq: {{{title|}}}|<!--eq to empty-->|<sup>[[s:A Dictionary of Music and Musicians|<span style="color:red">article name needed</span>]]</sup>
+
  |editor-last={{#if:{{{short|}}}||Grove}}
                            <!--else-->|{{{title|}}}}}
+
   |editor-link={{#if:{{{short|}}}||George Grove}}
                |[[s:A Dictionary of Music and Musicians/{{{wstitle|}}}|{{{display|{{{wstitle|}}}<!-- -->}}}]]}}
+
  |location={{#if:{{{short|}}}||London}}
 
+
  |publisher={{#if:{{{short|}}}||[[Macmillan Publishers|Macmillan and Company]]}}
<!--Only set url if the title parameter exists-->
 
|{{#if:{{{title|}}}   |url    |HIDE_PARAMETER6}}={{{url|}}}
 
 
 
<!--allow up to two authors to be set-->
 
|{{#if:{{{last|}}}    |last    |HIDE_PARAMETER7}}={{{last|}}}
 
|{{#if:{{{last1|}}}   |last1    |HIDE_PARAMETER8}}={{{last1|}}}
 
|{{#if:{{{author|}}}   |author  |HIDE_PARAMETER9}}={{{author|}}}
 
|{{#if:{{{author1|}}} |author1  |HIDE_PARAMETER10}}={{{author1|}}}
 
|{{#if:{{{authors|}}} |authors  |HIDE_PARAMETER11}}={{{authors|}}}
 
 
 
|{{#if:{{{first|}}}    |first    |HIDE_PARAMETER12}}={{{first|}}}
 
|{{#if:{{{first1|}}}   |first1  |HIDE_PARAMETER13}}={{{first1|}}}
 
  
|{{#if:{{{authorlink|}}}  |authorlink  |HIDE_PARAMETER14}}={{{authorlink|}}}
+
   |year=1900
|{{#if:{{{author-link|}}}  |author-link  |HIDE_PARAMETER15}}={{{author-link|}}}
+
   |encyclopedia=[[A Dictionary of Music and Musicians]]
|{{#if:{{{author1-link|}}} |author1-link |HIDE_PARAMETER16}}={{{author1-link|}}}
 
|{{#if:{{{authorlink1|}}}  |authorlink1  |HIDE_PARAMETER17}}={{{authorlink1|}}}
 
 
|{{#if:{{{last2|}}}    |last2    |HIDE_PARAMETER18}}={{{last2|}}}
 
|{{#if:{{{author2|}}}  |author2   |HIDE_PARAMETER19}}={{{author2|}}}
 
|{{#if:{{{first2|}}}   |first2    |HIDE_PARAMETER20}}={{{first2|}}}
 
  
|{{#if:{{{authorlink2|}}} |authorlink2  |HIDE_PARAMETER21}}={{{authorlink2|}}}
+
  |title={{#if:{{{wstitle|}}}|{{cite wikisource/make link
|{{#if:{{{author2-link|}}} |author2-link |HIDE_PARAMETER22}}={{{author2-link|}}}
+
          |link=A Dictionary of Music and Musicians/{{{wstitle|}}}
 +
          |label={{{display|{{{wstitle|}}}}}}
 +
          |noicon={{{no-icon|{{{noicon|}}}}}}
 +
        }}|{{#if:{{{title|}}}|{{{title|}}}}}}}
  
<!-- Additional optional parameters that can be set but are not set automatically -->
+
   |url={{#if:{{{wstitle|}}}||{{{url|}}}}}
|{{#if:{{{volume|}}} |volume |HIDE_PARAMETER23}}={{{volume|}}}
 
|{{#if:{{{page|}}}  |page   |HIDE_PARAMETER24}}={{{page|}}}
 
|{{#if:{{{pages|}}}  |pages  |HIDE_PARAMETER25}}={{{pages|}}}
 
|{{#if:{{{ref|}}}    |ref    |HIDE_PARAMETER26}}={{{ref|}}}
 
|{{#if:{{{mode|}}}   |mode    |HIDE_PARAMETER27}}={{{mode|}}}
 
|{{#if:{{{1|}}}  |1    |HIDE_PARAMETER28}}={{{1|}}}
 
 
}}<includeonly><!--
 
}}<includeonly><!--
 
-->{{#ifeq: {{NAMESPACEE}} |<!-- is not set -->
 
-->{{#ifeq: {{NAMESPACEE}} |<!-- is not set -->

Latest revision as of 23:10, 14 October 2020

Grove, George, ed. (1900). A Dictionary of Music and Musicians. London: Macmillan and Company. Missing or empty |title= (help)

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

Purpose

This template facilitates the citation of articles from A Dictionary of Music and Musicians (1900) and acts as a wrapper filling in fields that do not usually change and calls {{Cite encyclopedia}}.

Usage

{{Cite Grove1900|wstitle=''name of the article here''}}

or with a specification of additional options:

{{Cite Grove1900
|noicon=1 — suppress the leading icon
|inline=1 — changes the prescript and should be used when this template is used as an inline citation
|short=1  — suppresses some of the fields such as editor's name
|ref=harv — can be overridden (if you need to ask you do not need to change it)
|wstitle=article name — if the article is available on Wikisource 
|display=alternative name — displayed inplace of the wstitle name
|title=article name — if the article is not available on Wikisource
|url=  — will not be set unless the parameter title= is set
If not set, set in the template Cite Cite Grove1900 to default values
|encyclopedia= — "A Dictionary of Music and Musicians"
|editor-first= — defaults to "George"
|editor-last=  — defaults to "Grove"
|editorlink=  — defaults to "George Grove"
|year — defaults to 1900
If set pass in other standard parameters:
|first=
|first1=
|first2=
|last=
|last1=
|last2=
|author=
|author1=
|author2=
|authors=
|authorlink=
|coauthors=
|volume=
|page=
|pages=
|mode=
}}

Examples

Simple

{{Cite Grove1900|wstitle=Ayton, Fanny}}

displays as:

Grove, George, ed. (1900). "Ayton, Fanny" . A Dictionary of Music and Musicians. London: Macmillan and Company.

With comment

{{Cite Grove1900|wstitle=Ayton, Fanny}} A French history and portrait painter with many famous students.

displays as:

Grove, George, ed. (1900). "Ayton, Fanny" . A Dictionary of Music and Musicians. London: Macmillan and Company. A French history and portrait painter with many famous students.

Using last and first

{{Cite Grove1900|last=Chitty |first=Alexis |wstitle=Ayton, Fanny}}

displays as:

Chitty, Alexis (1900). "Ayton, Fanny" . In Grove, George (ed.). A Dictionary of Music and Musicians. London: Macmillan and Company.

Using volume, pages, page

These work as with other {{cite}} templates:

{{Cite Grove1900 |title=Ayton, Fanny |volume=4 |page=526 }}

displays as:

Grove, George, ed. (1900). "Ayton, Fanny". A Dictionary of Music and Musicians. 4. London: Macmillan and Company. p. 526.

Using display

The mechanics of Wikisource will sometimes require that a link have disambiguation information which is not part of the original title. The display parameter allows this information to be hidden for the purpose of the citation. For example:

{{Cite Grove1900|wstitle=Ayton, Fanny |display=Fanny Ayton}}

displays as:

Grove, George, ed. (1900). "Fanny Ayton" . A Dictionary of Music and Musicians. London: Macmillan and Company.

Using noicon

{{Cite Grove1900|wstitle=Ayton, Fanny|noicon=x}}

displays as:

Grove, George, ed. (1900). "Ayton, Fanny". A Dictionary of Music and Musicians. London: Macmillan and Company.

Using title (no Wikisource link)

{{Cite Grove1900 |title=Ayton, Fanny}}

displays as:

Grove, George, ed. (1900). "Ayton, Fanny". A Dictionary of Music and Musicians. London: Macmillan and Company.

When title is being used, url can be used to specify an external link. For example:

{{Cite Grove1900
 |title=Ayton, Fanny
 |volume=4
 |page=526
 |url=https://archive.org/stream/dictionaryofmusi04grovuoft#page/526/mode/1up
}}

displays as:

Grove, George, ed. (1900). "Ayton, Fanny". A Dictionary of Music and Musicians. 4. London: Macmillan and Company. p. 526..

Using short

If a shorter citation is desired, containing the editor of the 1920 edition, the short option can be used. For example:

{{Cite Grove1900|wstitle=Ayton, Fanny|short=x}}

displays as:

"Ayton, Fanny" . A Dictionary of Music and Musicians. 1900.

If another edition besides 1900 is being used, the editor name can be customized using editor-first and editor-last. If used, these two items will be displayed whether or not the long option is specified.

Hidden categories

This template places articles into a hidden category with sub-categories to aid maintenance:

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.