Difference between revisions of "Template:Grove1900"
imported>PBS m (try to fix logic in the categories) |
imported>PBS (Added unamed parameter handling) |
||
| Line 12: | Line 12: | ||
<!--pass in other standard parameters--> | <!--pass in other standard parameters--> | ||
| + | |{{#if:{{{1|}}} |1 |HIDE_PARAMETER45}}={{{1|}}} | ||
|{{#if:{{{first|}}} |first |HIDE_PARAMETER5}}={{{first|}}} | |{{#if:{{{first|}}} |first |HIDE_PARAMETER5}}={{{first|}}} | ||
|{{#if:{{{first1|}}} |first1 |HIDE_PARAMETER6}}={{{first1|}}} | |{{#if:{{{first1|}}} |first1 |HIDE_PARAMETER6}}={{{first1|}}} | ||
| Line 35: | Line 36: | ||
|{{#if:{{{mode|}}} |mode |HIDE_PARAMETER220}}={{{mode|}}} | |{{#if:{{{mode|}}} |mode |HIDE_PARAMETER220}}={{{mode|}}} | ||
| − | <!-- if not set, set in Cite | + | <!-- if not set, set in Cite Grove1900 --> |
|{{#if:{{{editor-first|}}} |editor-first |HIDE_PARAMETER23}}={{{editor-first|}}} | |{{#if:{{{editor-first|}}} |editor-first |HIDE_PARAMETER23}}={{{editor-first|}}} | ||
|{{#if:{{{editor-last|}}} |editor-last |HIDE_PARAMETER24}}={{{editor-last|}}} | |{{#if:{{{editor-last|}}} |editor-last |HIDE_PARAMETER24}}={{{editor-last|}}} | ||
| Line 44: | Line 45: | ||
<!--url will not be set in Cite Americana unless title is also set--> | <!--url will not be set in Cite Americana unless title is also set--> | ||
|{{#if:{{{url|}}} |url |HIDE_PARAMETER27}}={{{url}}} | |{{#if:{{{url|}}} |url |HIDE_PARAMETER27}}={{{url}}} | ||
| + | |||
}}<includeonly>{{#ifeq: {{NAMESPACEE}} |<!--is set | }}<includeonly>{{#ifeq: {{NAMESPACEE}} |<!--is set | ||
-->|{{#if:{{{wstitle|}}} | -->|{{#if:{{{wstitle|}}} | ||
Revision as of 22:50, 17 January 2016
This article incorporates text from a publication now in the public domain: Grove, George, ed. (1900). A Dictionary of Music and Musicians. London: Macmillan and Company. Unknown parameter |HIDE_PARAMETER21= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER26= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER27= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Missing or empty |title= (help)CS1 maint: ref=harv (link)
| This template is a Citation Style 1 wrapper template based on {{Cite encyclopedia}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
Contents
Purpose
This template facilitates the attribution of articles from A Dictionary of Music and Musicians (1900) that are in the public domain using the template {{Cite Grove1900}} which in turn calls {{Cite encyclopedia}}.
Usage
{{Grove1900|wstitle=''name of the article here''}}
or with a specification of additional options:
{{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 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
{{Grove1900|wstitle=Ayton, Fanny}}
displays as:
This article incorporates text from a publication now in the public domain: Grove, George, ed. (1900). . A Dictionary of Music and Musicians. London: Macmillan and Company. Unknown parameter |HIDE_PARAMETER21= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER26= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER27= ignored (help)CS1 maint: ref=harv (link)
With comment
{{Grove1900|wstitle=Ayton, Fanny}} A French history and portrait painter with many famous students.
displays as:
This article incorporates text from a publication now in the public domain: Grove, George, ed. (1900). . A Dictionary of Music and Musicians. London: Macmillan and Company. Unknown parameter |HIDE_PARAMETER21= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER26= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER27= ignored (help)CS1 maint: ref=harv (link) A French history and portrait painter with many famous students.
Using last and first
{{Grove1900|last=Chitty |first=Alexis |wstitle=Ayton, Fanny}}
displays as:
This article incorporates text from a publication now in the public domain: Chitty, Alexis (1900). . In Grove, George (ed.). A Dictionary of Music and Musicians. London: Macmillan and Company. Unknown parameter |HIDE_PARAMETER21= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Unknown parameter |HIDE_PARAMETER26= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER27= ignored (help)CS1 maint: ref=harv (link)
Using volume, pages, page
These work as with other {{cite}} templates:
{{Grove1900 |title=Ayton, Fanny |volume=4 |page=526 }}
displays as:
This article incorporates text from a publication now in the public domain: Grove, George, ed. (1900). "Ayton, Fanny". A Dictionary of Music and Musicians. 4. London: Macmillan and Company. p. 526. Unknown parameter |HIDE_PARAMETER21= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Unknown parameter |HIDE_PARAMETER26= ignored (help); Unknown parameter |HIDE_PARAMETER27= ignored (help)CS1 maint: ref=harv (link)
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:
{{Grove1900|wstitle=Ayton, Fanny |display=Fanny Ayton}}
displays as:
This article incorporates text from a publication now in the public domain: Grove, George, ed. (1900). . A Dictionary of Music and Musicians. London: Macmillan and Company. Unknown parameter |HIDE_PARAMETER21= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER26= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER27= ignored (help)CS1 maint: ref=harv (link)
Using noicon
{{Grove1900|wstitle=Ayton, Fanny|noicon=x}}
displays as:
This article incorporates text from a publication now in the public domain: Grove, George, ed. (1900). "Ayton, Fanny". A Dictionary of Music and Musicians. London: Macmillan and Company. Unknown parameter |HIDE_PARAMETER21= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER26= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER27= ignored (help)CS1 maint: ref=harv (link)
Using title (no Wikisource link)
{{Grove1900 |title=Ayton, Fanny}}
displays as:
This article incorporates text from a publication now in the public domain: Grove, George, ed. (1900). "Ayton, Fanny". A Dictionary of Music and Musicians. London: Macmillan and Company. Unknown parameter |HIDE_PARAMETER21= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER26= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER27= ignored (help)CS1 maint: ref=harv (link)
When title is being used, url can be used to specify an external link. For example:
{{Grove1900
|title=Ayton, Fanny
|volume=4
|page=526
|url=https://archive.org/stream/dictionaryofmusi04grovuoft#page/526/mode/1up
}}
displays as:
This article incorporates text from a publication now in the public domain: Grove, George, ed. (1900). "Ayton, Fanny". A Dictionary of Music and Musicians. 4. London: Macmillan and Company. p. 526. Unknown parameter |HIDE_PARAMETER21= ignored (help); Unknown parameter |HIDE_PARAMETER26= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help)CS1 maint: ref=harv (link).
Using short
If a shorter citation is desired, containing the editor of the 1920 edition, the short option can be used. For example:
{{Grove1900|wstitle=Ayton, Fanny|short=x}}
displays as:
This article incorporates text from a publication now in the public domain: . A Dictionary of Music and Musicians. 1900. Unknown parameter |HIDE_PARAMETER21= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER26= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER27= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help)CS1 maint: ref=harv (link)
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:
- Category:Articles incorporating text from A Dictionary of Music and Musicians with Wikisource reference
- Category:Articles incorporating text from A Dictionary of Music and Musicians without Wikisource reference
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.
| The above documentation is transcluded from Template:Grove1900/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |