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

From blackwiki
Jump to navigation Jump to search
imported>Mange01
imported>Decstop
(add noedit parameter & show examples)
Line 9: Line 9:
 
Use like this:
 
Use like this:
  
<code><nowiki><ref name="Example2006">{{Cite pmid|12122621}}</ref></nowiki></code>
+
<code><nowiki><ref name="Example2006">{{Cite pmid|12122621}}</ref></nowiki></code><ref name="Example2006">{{Cite pmid|12122621}}</ref>
  
 
To refer to the same reference elsewhere in the same article, use:
 
To refer to the same reference elsewhere in the same article, use:
  
 
<code><nowiki><ref name="Example2006" /></nowiki></code>
 
<code><nowiki><ref name="Example2006" /></nowiki></code>
 +
 +
===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="Example2006a">{{Cite pmid|12122621|noedit}}</ref></nowiki></code><ref name="Example2006a">{{Cite pmid|12122621|noedit}}</ref>
  
 
==Technical overview==
 
==Technical overview==
  
 
The template works by transcluding a template, which is stored as Template:cite pmid/xxxxxxxx.  This subpage is filled out by [[User:Citation bot|a bot]] using the {{tl|cite journal}} syntax. If the article already exists in, say, Template:Cite doi, a redirect to the appropriate page will be created.
 
The template works by transcluding a template, which is stored as Template:cite pmid/xxxxxxxx.  This subpage is filled out by [[User:Citation bot|a bot]] using the {{tl|cite journal}} syntax. If the article already exists in, say, Template:Cite doi, a redirect to the appropriate page will be created.
 +
 +
== References ==
 +
{{reflist}}
  
 
== See also ==
 
== See also ==

Revision as of 01:46, 16 February 2012

Usage

Saves you filling out a citation template every time you want to cite a source. If your source has a PMID, just enter {{Cite pmid|PMID of your source}}.

If another Wikipedia article already uses that reference (via the Cite pmid 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 retrieve the information from PubMed and create the citation for you within a few minutes.

Use like this:

<ref name="Example2006">{{Cite pmid|12122621}}</ref>[1]

To refer to the same reference elsewhere in the same article, use:

<ref name="Example2006" />

Removing the "edit" link

If you want to remove the "edit" link that this template places, add a second parameter with the text "noedit":

<ref name="Example2006a">{{Cite pmid|12122621|noedit}}</ref>[2]

Technical overview

The template works by transcluding a template, which is stored as Template:cite pmid/xxxxxxxx. This subpage is filled out by a bot using the {{cite journal}} syntax. If the article already exists in, say, Template:Cite doi, a redirect to the appropriate page will be created.

References

  1. Attention: This template ({{cite pmid}}) is deprecated. To cite the publication identified by PMID 12122621, please use {{cite journal}} with |pmid=12122621 instead.
  2. Attention: This template ({{cite pmid}}) is deprecated. To cite the publication identified by PMID 12122621, please use {{cite journal}} with |pmid=12122621 instead.

See also

Template:Cite doi family