Difference between revisions of "Template:Cite DMM"
Jump to navigation
Jump to search
Using
Using
imported>Bob Burkhardt (allow URL to be set) |
imported>Trappist the monk (sync from sandbox;) |
||
Line 1: | Line 1: | ||
− | + | {{#if:{{{noicon|}}}||{{#if:{{{wstitle|}}}||[[File:PD-icon.svg|12px|link=]]}} }}<!-- | |
− | |||
− | |||
optional verbatim message - not included by default | optional verbatim message - not included by default | ||
− | -->{{#if:{{{vb|}}}|{{# | + | -->{{#if:{{{vb|}}}|{{#if:{{{inline|}}}|One or more of the preceding sentences|This article}} incorporates text from a publication now in the [[public domain]]: |}}<!-- |
− | |||
− | |||
− | |||
cite encyclopedia wrapper: | cite encyclopedia wrapper: | ||
title must be be specified: either with a title= url= pair | title must be be specified: either with a title= url= pair | ||
or wstitle= to link to the article in wikisource. | or wstitle= to link to the article in wikisource. | ||
year will default to 1905 if not set | year will default to 1905 if not set | ||
− | -->{{ | + | -->{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia |
− | + | |_exclude=display, inline, noicon, no-icon, vb, wstitle, _debug | |
− | + | |_reuse=title, url | |
− | + | ||
− | + | | year=1900 | |
− | + | | encyclopedia=[[A Dictionary of Music and Musicians]] | |
− | + | ||
− | + | |title={{#if:{{{title|}}}|{{{title|}}}|{{#if:{{{wstitle|}}}|{{cite wikisource/make link | |
− | + | |link=A Dictionary of Music and Musicians/{{{wstitle|}}} | |
− | + | |label={{{display|{{{wstitle}}}}}} | |
− | + | |noicon={{{no-icon|{{{noicon|}}}}}} | |
+ | }}}}}} | ||
+ | |||
+ | |url={{#if:{{{wstitle|}}}||{{{url|}}}}} | ||
}}<noinclude> | }}<noinclude> | ||
{{template doc}} | {{template doc}} | ||
</noinclude> | </noinclude> |
Latest revision as of 18:33, 21 October 2020
A Dictionary of Music and Musicians. 1900. Missing or empty
|title=
(help)
Contents
Purpose
This template enables the citation of articles from George Grove's A Dictionary of Music and Musicians in the manner of {{cite encyclopedia}}
. It provides for links to the Wikisource project A Dictionary of Music and Musicians.
Usage
{{Cite DMM|title=DMM article name}}
- Parameters to alter the prescript and icon
- noicon=1: turns off the icon
- noprescript=1: turns off the prescript
- inline=1: replaces "This article" with "One or more of the preceding sentences" (if set then place the template into an inline citation)
- Pre-set parameters
- encyclopedia=option if not set defaults to A Dictionary of Music and Musicians
- year=option if not set defaults to 1900
- Other parameters that can be set but are not set by default
- wstitle=DMM article name: same as functionality as title= but it links to a copy of an DMM article on Wikisource
- display=Alternative name: the alternative name will be displayed instead of the DMM article name (it will only display if wstitle= is set)
- url=URL: this parameter will only be set if the title= parameter is set
All above parameters above can be over ridden by passing in different values for the parameters.
If the title= or wstitle= is not set then this template adds the following text (in red) article name needed.
Using wstitle
{{Cite DMM|wstitle=Merbecke, John}}
- A Dictionary of Music and Musicians. 1900. .
Using vb
If text is incorporated verbatim into an article, the vb
parameter can be used to tack on a notice appropriate to the policy in Wikipedia:Plagiarism.
{{Cite DMM|wstitle=Merbecke, John|vb=x}}
displays as:
- This article incorporates text from a publication now in the public domain: . A Dictionary of Music and Musicians. 1900.
adding inline for use inside an inline citation
{{Cite DMM|wstitle=Merbecke, John|vb=x|inline=x}}
displays as:
- One or more of the preceding sentences incorporates text from a publication now in the public domain: . A Dictionary of Music and Musicians. 1900.
The above documentation is transcluded from Template:Cite DMM/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. |