Difference between revisions of "Template:Cite doi/doc"

From blackwiki
Jump to navigation Jump to search
imported>Smith609
(→‎Formatting: As a further point, unnecessary whitespace in Cite doi templates should be avoided.)
(Replaced content with 'Zero')
Line 1: Line 1:
{{Documentation subpage}}
+
Zero
{{mbox|image=[[File:Stop hand caution.svg|60px]]|text=Per [[WP:CITEVAR]], only use this template in articles whose references are formatted as described below. Please '''do not use''' the cite doi template in articles whose references are formatted differently.}}
 
 
 
==Usage==
 
 
 
Saves you filling out a citation template every time you want to cite a journal article. If your source article has a [[digital object identifier]] (DOI), just enter <code><nowiki>{{Cite doi|doi of your source}}</nowiki></code>.  There is no need to [[WP:subst|subst]] this template (so long as it matches the format of citations already in the article).
 
 
 
If another Wikipedia article already uses that reference (via the Cite doi template), it will automatically use the existing information to present the full citation details of the reference in the article. If not, a bot will complete it for you if you click the "jump the queue" link (the bot does not currently autofill the template).
 
 
 
Use like this:
 
 
 
:<code><nowiki><ref name="Example2006">{{Cite doi|10.1146/annurev.earth.33.092203.122621}}</ref></nowiki></code>
 
 
 
To refer to the same reference elsewhere in the same article, use:
 
 
 
:<code><nowiki><ref name="Example2006"/></nowiki></code>
 
 
 
===Quotes===
 
 
 
To include a quote from the reference, just place it inside the '''ref''' tags. To include more than one quote, the '''name''' parameter must be unique for each '''ref''' tag.
 
 
 
:<code><nowiki><ref name="Example2006a">{{Cite doi|10.1146/annurev.earth.33.092203.122621}} "A sample quote"</ref></nowiki></code><ref name=Example2006a>{{Cite doi|10.1146/annurev.earth.33.092203.122621}} "A sample quote"</ref>
 
 
 
:<code><nowiki><ref name="Example2006b">{{Cite doi|10.1146/annurev.earth.33.092203.122621}} "Another sample quote"</ref></nowiki></code><ref name=Example2006b>{{Cite doi|10.1146/annurev.earth.33.092203.122621}} "Another sample quote"</ref>
 
 
 
Second references for each
 
:<code><nowiki><ref name="Example2006a" /><ref name="Example2006b" /></nowiki></code><ref name="Example2006a" /><ref name="Example2006b" />
 
 
 
If the quote should appear every time a reference is used, then add a '''quote''' parameter to the cite doi template.
 
 
 
===Removing the "edit" link===
 
If you want to remove the "edit" link that this template places, add a second parameter with the text "noedit":
 
:<code><nowiki><ref name="Example2006c">{{Cite doi|10.1146/annurev.earth.33.092203.122621|noedit}}</ref></nowiki></code><ref name="Example2006c">{{Cite doi|10.1146/annurev.earth.33.092203.122621|noedit}}</ref>
 
 
 
===Modifying display of authors===
 
The number of authors displayed can be modified by adding a "displayauthors = n" parameter:
 
 
 
* <code><nowiki><ref>{{Cite doi/sandbox|10.1140/epja/i2006-10091-y}}</ref></nowiki></code><ref name = "Nishio_2006a">{{Cite doi/sandbox|10.1140/epja/i2006-10091-y}}</ref>
 
* <code><nowiki><ref>{{Cite doi/sandbox|10.1140/epja/i2006-10091-y|displayauthors=6}}</ref></nowiki></code><ref name = "Nishio_2006b">{{Cite doi/sandbox|10.1140/epja/i2006-10091-y|displayauthors=6}}</ref>
 
 
 
and follow the edit link in the template and insert the following "pass through" parameter into the cite doi template:
 
* <code><nowiki>|displayauthors={{{displayauthors|}}}</nowiki></code>
 
 
 
The authors can be displayed in a [[Vancouver system]] format by adding a "van=yes" parameter:
 
* <code><nowiki><ref>{{Cite doi/sandbox|10.1140/epja/i2006-10091-y|displayauthors=6|van=yes}}</ref></nowiki></code><ref name = "Nishio_2006c">{{Cite doi/sandbox|10.1140/epja/i2006-10091-y|displayauthors=6|van=yes}}</ref>
 
 
 
and follow the edit link in the template and insert the following "pass through" parameters into the cite doi template:
 
* <code><nowiki>
 
|displayauthors={{{displayauthors|}}}
 
|authorformat={{{authorformat|}}}
 
|author-separator={{{author-separator|}}}
 
|author-name-separator={{{author-name-separator|}}}</nowiki></code>
 
 
 
===Example references===
 
{{reflist}}
 
 
 
===Troubleshooting===
 
DOIs containing certain characters are not displayed and must be substituted in-text after expansion.
 
*< should be replaced with .3C
 
*> should be replaced with .3E
 
 
 
==Formatting==
 
{{Cite doi/doc/format}}
 
As a further point, unnecessary whitespace in Cite doi templates should be avoided.
 
 
 
==Technical overview==
 
 
 
The template works by transcluding a template, which is stored as Template:cite doi/anchor_encoded_version_of_DOI.  This subpage is filled out by [[User:Citation bot|a bot]] using the {{tl|cite journal}} syntax.
 
 
 
== See also ==
 
{{cite doi family}}
 
*{{tl|Cite isbn}}
 
 
 
{{Citation Style 1}}
 
<includeonly>
 
 
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Citation Style 1 templates]]
 
[[Category:Science citation templates]]
 
[[Category:Cite doi templates| ]]
 
 
 
</includeonly>
 
 
 
<includeonly>
 
[[simple:Template:Cite doi]]
 
</includeonly>
 

Revision as of 13:30, 31 May 2014

Zero