Difference between revisions of "Template:PMID"

From imedwiki
Jump to navigation Jump to search
[checked revision][checked revision]
(Import from wikipedia)
 
m (Interwikilinks anpassen)
 
Line 1: Line 1:
{{#if:{{{1|<noinclude>$</noinclude>}}}|{{Catalog lookup link|{{#expr:{{{1|}}}|}}|{{#expr:{{{2|}}}|}}|{{#expr:{{{3|}}}|}}|{{#expr:{{{4|}}}|}}|{{#expr:{{{5|}}}|}}|{{#expr:{{{6|}}}|}}|{{#expr:{{{7|}}}|}}|{{#expr:{{{8|}}}|}}|{{#expr:{{{9|}}}|}}|article-link={{#ifeq:{{yesno-no|{{{plainlink|}}}}}|yes||PMID (identifier)}}|article-name={{#ifeq:{{yesno-no|{{{plainlink|}}}}}|yes||PMID}}|link-prefix=//pubmed.ncbi.nlm.nih.gov/|list-leadout={{{leadout|}}}}}|{{error-small|Parameter error in {{tl|PMID}}: Missing [[PubMed Identifier|PMID]].}}}}<noinclude>{{documentation}}<!-- Add categories and interwiki lines to the /doc subpage, not here! --></noinclude>
+
{{#if:{{{1|<noinclude>$</noinclude>}}}|{{Catalog lookup link|{{#expr:{{{1|}}}|}}|{{#expr:{{{2|}}}|}}|{{#expr:{{{3|}}}|}}|{{#expr:{{{4|}}}|}}|{{#expr:{{{5|}}}|}}|{{#expr:{{{6|}}}|}}|{{#expr:{{{7|}}}|}}|{{#expr:{{{8|}}}|}}|{{#expr:{{{9|}}}|}}|article-link={{#ifeq:{{yesno-no|{{{plainlink|}}}}}|yes||PMID (identifier)}}|article-name={{#ifeq:{{yesno-no|{{{plainlink|}}}}}|yes||PMID}}|link-prefix=//pubmed.ncbi.nlm.nih.gov/|list-leadout={{{leadout|}}}}}|{{error-small|Parameter error in {{tl|PMID}}: Missing [[Wikipedia:PubMed Identifier|PMID]].}}}}<noinclude>{{documentation}}<!-- Add categories and interwiki lines to the /doc subpage, not here! --></noinclude>

Latest revision as of 11:39, 12 March 2022

Template documentation[view] [edit] [history] [purge]

This template provides an external link to PubMed abstracts of biomedical journals.

It is intended to be used where a short in-text citation link is adequate to get the point across and where including a full citation might be overkill (as, for example, on talk pages).

Usage

The template requires a PMID abstract number to be given:

Call: {{PMID|12345678}}
Result: PMID 12345678

To find a PMID abstract number, search for the article at https://www.ncbi.nlm.nih.gov/pubmed

This template also supports up to nine PMIDs, so the template comes in helpful to conveniently format lists of PMIDs (for example, in tables):

Call: {{PMID|12345678|23456789|12344321}}
Result: PMID 12345678, 23456789, 12344321

For leadouts different from the default "," this can be specified using the optional |leadout= parameter:

Call: {{PMID|12345678|23456789|12344321|leadout=and}}
Result: PMID 12345678, 23456789 and 12344321

The template also supports plain links using the |plainlink= parameter:

Call: {{PMID|12345678|23456789|12344321|plainlink=yes}}
Result: 12345678, 23456789, 12344321
Call: {{PMID|12345678|23456789|12344321|leadout=and|plainlink=yes}}
Result: 12345678, 23456789 and 12344321

Full citation

To generate full Template:Cite journal markup from a known PubMed abstract number, use Diberri's Wikipedia template filling tool which, for the example above, may yield something like:

Rubinstein, M. H. (1976). "A new granulation method for compressed tablets [proceedings]". Journal of Pharmacy and Pharmacology. 28 Supplement: 67P. PMID 12345.

See also

This template is based (in parts) on the Template:PMID from the free encyclopedia wikipedia and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On wikipedia there is a List of authors accessible. More about importing from wikipedia on page Imedwiki:Importing from wikipedia.