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

From blackwiki
Jump to navigation Jump to search
imported>Knife-in-the-drawer
(Adjusting categories because template is no longer used)
imported>AManWithNoPlan
(less verbage for dead template)
Line 3: Line 3:
 
{{mbox|image=[[File:Stop hand.svg|60px]]|text=Per [[Template_talk:Cite_doi/Archive_1#RfC:_Should_Template:cite_doi_cease_creating_a_separate_subpage_for_each_DOI.3F|consensus]], this template should no longer be used.  Instead, please use the {{tl|cite journal}} template.}}
 
{{mbox|image=[[File:Stop hand.svg|60px]]|text=Per [[Template_talk:Cite_doi/Archive_1#RfC:_Should_Template:cite_doi_cease_creating_a_separate_subpage_for_each_DOI.3F|consensus]], this template should no longer be used.  Instead, please use the {{tl|cite journal}} template.}}
 
{{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 pmid template in articles whose references are formatted differently (''e.g.'', articles that use the [[Vancouver system]]).}}
 
{{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 pmid template in articles whose references are formatted differently (''e.g.'', articles that use the [[Vancouver system]]).}}
 
== Usage ==
 
 
Saves you filling out a citation template every time you want to cite a source. If your source has a [[Wikipedia:PMID|PMID]], just enter <code><nowiki>{{Cite pmid|PMID of your source}}</nowiki></code>.
 
 
Simplest form which will put a number at the citation location and place the citation in the reference section:
 
 
<code><nowiki><ref>{{Cite pmid|PMID}}</ref></nowiki></code><ref>{{Cite pmid|1}}</ref>
 
 
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:
 
 
<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:
 
 
<code><nowiki><ref name="Example2006" /></nowiki></code><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":
 
:<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.
 
== Example references ==
 
<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 04:33, 31 August 2015

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.

See also

Template:Cite doi family