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

From blackwiki
Jump to navigation Jump to search
imported>Boghog
(Per consensus, this template should no longer be used.)
imported>WhatamIdoing
(TemplateData)
Line 31: Line 31:
  
 
== Example references ==
 
== Example references ==
{{reflist}}
+
<references />
 +
 
 +
==TemplateData==
 +
<templatedata>
 +
{
 +
"description": "A template for citing a source by PubMed identification number.  Please use {{cite journal}} instead.",
 +
"params": {
 +
"1": {
 +
"label": "PMID",
 +
"description": "PubMed identification number",
 +
"type": "number",
 +
"required": true
 +
},
 +
"2": {
 +
"label": "noedit",
 +
"description": "A value of \"noedit\" removes the edit link from this item.",
 +
"type": "string",
 +
"autovalue": "noedit"
 +
}
 +
}
 +
}
 +
</templatedata>
 +
 
  
 
== See also ==
 
== See also ==

Revision as of 19:28, 21 November 2014

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}}.

Simplest form which will put a number at the citation location and place the citation in the reference section:

<ref>{{Cite pmid|PMID}}</ref>[1]

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>[2]

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

<ref name="Example2006" />[2]

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>[3]

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.

Example references

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

TemplateData

A template for citing a source by PubMed identification number. Please use {{cite journal}} instead.

Template parameters

ParameterDescriptionTypeStatus
PMID1

PubMed identification number

Numberrequired
noedit2

A value of "noedit" removes the edit link from this item.

Auto value
noedit
Stringoptional


See also

Template:Cite doi family