Difference between revisions of "Template:Cite pmid/doc"
imported>AManWithNoPlan (→Usage) |
imported>AManWithNoPlan (Those example ref subpages don't actually exist anymore) |
||
| 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''' cite pmid template to articles. Their use is [[ | + | {{mbox|image=[[File:Stop hand.svg|60px]]|text=Please '''do not add''' cite pmid template to articles. Their use is [[Template talk:Cite pmid#RFC: Should template:cite pmid be deprecated|deprecated]] and for this reason, [[User:Citation bot|Citation bot]] no longer expands cite pmid templates.}} |
{{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]]).}} | ||
| Line 12: | Line 12: | ||
Simplest form which will put a number at the citation location and place the citation in the reference section: | 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 | + | <code><nowiki><ref>{{Cite pmid|PMID}}</ref></nowiki></code> |
| − | 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. | + | 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: | 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> |
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=== | + | === Removing the "edit" link === |
If you want to remove the "edit" link that this template places, add a second parameter with the text "noedit": | 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 | + | :<code><nowiki><ref name="Example2006a">{{Cite pmid|12122621|noedit}}</ref></nowiki></code> |
| − | ==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. | ||
| − | |||
| − | |||
| − | |||
== See also == | == See also == | ||
Revision as of 16:25, 4 April 2016
| 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. |
| File:Stop hand.svg | Please do not add cite pmid template to articles. Their use is deprecated and for this reason, Citation bot no longer expands cite pmid templates. |
| 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
This documentation is no longer relevant since this template is not used, but is included for historical reasons.
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>
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>
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>
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.