Difference between revisions of "Template:Cite pmid/doc"
imported>Zebulon84 (Undid revision 612457924 by 166.181.3.44 (talk)) |
imported>LeadSongDog (→top: bot is blocked) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| + | {{mbox|image=[[File:Stop hand.svg|60px]]|text=Please '''do not add''' the cite pmid template to articles while the [[user:Citation bot|bot it needs]] is blocked.}} | ||
{{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 == | == Usage == | ||
Revision as of 13:14, 4 July 2014
| This is a documentation subpage for Template:Cite pmid. It contains usage information, categories and other content that is not part of the original template page. |
| Please do not add the cite pmid template to articles while the bot it needs is blocked. |
| 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 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
- ↑ Attention: This template ({{cite pmid}}) is deprecated. To cite the publication identified by PMID 1, please use {{cite journal}} with
|pmid=1instead. - ↑ 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=12122621instead. - ↑ Attention: This template ({{cite pmid}}) is deprecated. To cite the publication identified by PMID 12122621, please use {{cite journal}} with
|pmid=12122621instead.