Template talk:PMID

Comments
Okay, what with the template? And why do I get this:

3792407? --Rmky87 02:04, 26 February 2006 (UTC)


 * because you put a space before the number. Eupedia 14:52, 12 April 2006 (UTC)

changing to complement built-in system
i am changing this template to give a more tasteful "Pubmed" rather than the number. if you want the number, just use Wikipedia's built-in feature, e.g. simply putting the following in the code " PMID 1234567 " gives PMID 1234567. Eupedia 14:53, 12 April 2006 (UTC)

AbstractPlus
Does anyone else think it would be a good idea to link to the AbstractPlus version of the abstract, rather than the old version? Instead of linking to PubMed, we would link to PubMed. The second one has more functionality and looks better, in my opinion. - Gobeirne 03:06, 20 February 2007 (UTC)
 * ...anyone? - Gobeirne 03:40, 24 May 2007 (UTC)
 * Personally, I won't oppose but I fail to see an obvious interest in using AbstractPlus. While the AbstractPlus version may seem clearer to some (including me), the left menu on the Abstract version may be useful to others. — Xavier, 10:58, 24 May 2007 (UTC)

Suggestion to show ID number
Hi, This template is extremely valuable, and does a fantastic job. However, it does not provide a text readable ID number. Other similar templates (such as doi) provide a text readable ID (while doi-inline is more flexible). The benefit of displaying the PMID number allows this to be printed. The present version does not provide any useful data when printed on paper. This will also help a print edition of WP:1.0, if it is ever made. So my suggestion is to consider making this template more-or-less like doi. Any thoughts? +mwtoews 05:12, 11 March 2007 (UTC)
 * Okay, okay, I see the example above—no fixing needed.+mwtoews 01:40, 12 March 2007 (UTC)

Suggestion for improvement
While simply typing "PMID ########" is easy to do and works, it does not provide citation information at the bottom of the article. While http://diberri.dyndns.org/wikipedia/templates/?type=pmid helps, it still requires busy authors to become comfortable working with tags and markup language. Technically, we should be able to let the author simply type "PMID ########" at the appropriate spot in the article and the citations are collated and the reference list is built automatically. I have suggested this as a project for WP's participation in Google's summer of code (http://meta.wikimedia.org/wiki/Summer_of_Code_2007/proposals).

Is there anything else that can be done to promote the idea of the change? It is really painful as if you adequately cite your sources, you may create paragraphs whose source content has more text inside of the ref tag than outside. These paragraphs become very hard for subsequent authors. I suspect this either keeps a lot of docs from being authors, or prevents some authors from citing the sources. Badgettrg 03:59, 6 April 2007 (UTC)


 * Discussion on this topic is being held at the Medical project - see Wikipedia_talk:WikiProject_Medicine/Archive 3. David Ruben Talk 20:19, 6 April 2007 (UTC)
 * Fixed above link to archived discussion. — Xavier, 13:00, 22 May 2007 (UTC)

Actual URL
editprotected According to NCBI Help Manual on URLs, the URl used in this template is not correct. Instead of:
 * http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=&query_hl=14&itool=pubmed_docsum

web sites like WP should use this shorter version:
 * http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=retrieve&db=pubmed&list_uids=&dopt=Abstract

Especially, the variable itool, in the query, seems to be a reference to an internal query tool at NCBI, and IMHO should preferably not be used by an external site. itool is not documented but here is the documentation about the tool query variable:
 * A string with no internal spaces that identifies the resource that is using Entrez links. This argument is used to help NCBI provide better service to third parties generating Entrez queries from programs. As with any query system, it is sometimes possible to ask the same question different ways, with different effects on performance. NCBI requests that developers sending batch requests include a constant 'tool' argument for all requests using the utilities.

Through this template (and mediawiki NCBI internal syntax), WP may be seen as a third party Entrez query generator and should provide its own (constant) tool ID, instead of "pubmed_docsum". Thus a proper URL may be something like :
 * http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=retrieve&db=pubmed&list_uids=&dopt=Abstract&tool=wikipedia

— Xavier, 14:22, 22 May 2007 (UTC)
 * I've not sure what the policies and guidelines are regarding the inclusion of "wikipedia" tags in URLs. Before this change is made, there should probably be a little research into whether or not there are any relevant policies or precedents regarding this. Cheers. --MZMcBride 19:23, 23 May 2007 (UTC)
 * Well, I can't help, I don't know anything related to a policy of this kind. If in doubt, could you change the URL the second way, i.e. without the " &tool=wikipedia " part? Thanks. — Xavier, 20:55, 23 May 2007 (UTC)
 * [[Image:Yes check.svg|20px]] Done. Cheers. --MZMcBride 23:35, 23 May 2007 (UTC)
 * Fine ! Thanks. — Xavier, 02:24, 24 May 2007 (UTC)

Spaces in params
I've created a version in the PMID/sandbox that works properly if there are spaces in the input:
 * Current:
 * Sandbox:

Please update the template accordingly. Thanks, Martin  (Smith609 – Talk)  01:23, 16 February 2009 (UTC)
 * The sandbox currently contains an error in the code. Could you work that out? Thanks, –Juliancolton Tropical Cyclone  17:36, 16 February 2009 (UTC)
 * The code should work alright, but is this really a common problem? It seems to me that it would be better to just not use spaces than to put another parser function on every page using this template. --- RockMFR 17:51, 16 February 2009 (UTC)
 * [[Image:Yes check.svg|20px]] Done. Cheers. --MZMcBride (talk) 08:40, 20 February 2009 (UTC)

Document as Deprecated, better examples
TemplateTiger shows 1278 PMID templates at 2009-05-30 as compared to 220377 cite journal pmid parameters. Should the PMID template be documented as deprecated, strengthening the current suggestion to use Template filler cite journal output and adding a reference to the cite PMID template. Please also update the example cite journal to an example that shows a linking URL for clearer understanding of the benefits of using a cite journal template.

Output from cite PMID — I think the ISSN is no longer generated

Template filler output RDBrown (talk) 13:13, 5 January 2010 (UTC)

Tweak for print
Simply replace the code with this (copy-paste). {{only in print|PMID&amp;nbsp;{{{1}}} {{pp-template|small=yes}} {{documentation}}

This will cleanup the print version of articles (see explanation).
 * {{not done}} It's putting "Template:Hide from print" in red into articles.  Ron h jones {{sup| (Talk)}} 22:54, 6 March 2010 (UTC)

Suggest change to new URL format
editprotected The PubMed URLs seem to have been updated so that you can now link to a much shorter version. Now, the URLs seem to be of the format:

 http://www.ncbi.nlm.nih.gov/pubmed/ 

So I propose updating this template to generate these new, shorter URLs, which are already used by Wikipedia's built-in function when you type PMID 18813071 for example, which generates this: PMID 18813071

I think this is the right code to replace in the template (although with the line spacing right, I'm not sure how to do that):

PubMed

-Paul1337 (talk) 15:31, 3 September 2010 (UTC)


 * ✅ Changed as requested. -- WOSlinker (talk) 22:05, 3 September 2010 (UTC)


 * I also added some includeonly tags. --Selket Talk 22:09, 3 September 2010 (UTC)

PMCID and NIHMSID?
Can this be updated to handle NIHMSID and PMCID ? (all three templates PMID1, PMID2, PMID3) -- 65.94.171.126 (talk) 13:17, 9 June 2014 (UTC)
 * For example, input check the input for PMC prefix or NIHMSID prefix and treat those as PMC and NIH id numbers, since their full format forms include the fixed prefix. -- 65.94.171.126 (talk) 13:24, 9 June 2014 (UTC)

Protected edit request on 20 August 2014: Use protocol relative URL
Since www.ncbi.nlm.nih.gov website supports HTTPS, I suggest switching the link to protocol-relative URL. Here is the change. Here is the testcase Thanks! Chmarkine (talk) 19:39, 20 August 2014 (UTC)
 * Yes check.svg Done -- Red rose64 (talk) 22:16, 20 August 2014 (UTC)

Format consistency
In the interest of format consistency, I think this template (Template:PMID) should have the same format as the PMID format used in Template:Cite journal, which looks like this:

It includes a link to PMID explaning what it is all about, and the identifier. The current format which only shows it as "PubMed" doesn't (visibly) convey much information, neither a link to an explanatory article nor the identifier. In particular there should be a "manual" way to show the PMID in the same format as Template:Cite journal, for example in bibliographies or references which don't use that (more complex) template. If template:doi and template:PMID are used together in the same reference, they will have a different format since template:doi includes an explanatory link and the identifier (as in ). The built-in feature doesn't use the same format as Template:Cite journal, alas, and lacks the explanatory link.

Note that there is also a template called Template:PubMed which currently uses a different format (the fourth PMID format I've come across) which could have its format changed to the simple "PubMed" format currently used by this article. --Bjerrebæk (talk) 05:10, 14 August 2016 (UTC)

I'm requesting that the above suggestion is implemented, as there doesn't seem to be any objections, or much engagement at all. The template is protected as "heavily used," but it's actually only used on 468 pages, so it could probably even be unprotected.

The edit I'm requesting to be implemented is:


 * PMID [//www.ncbi.nlm.nih.gov/pubmed/ ]

--Bjerrebæk (talk) 19:39, 14 August 2016 (UTC)
 * Padlock-bronze-open.svg Not done: The page's protection level has changed since this request was placed. You should now be able to edit the page yourself. If you still seem to be unable to, please reopen the request with further details. Jo-Jo Eumerus (talk, contributions) 19:48, 14 August 2016 (UTC)

RFCs on citations templates and the flagging free-to-read sources
See
 * Village pump (proposals)
 * Village pump (proposals)

Headbomb {talk / contribs / physics / books} 17:07, 29 October 2016 (UTC)

Switch to using interwiki
Switch to using interwiki links as per: mw:Help:Magic links. Update is in the sandbox so just look at the testcases and copy the code over. Thank you. 50.53.1.33 (talk) 05:05, 24 January 2017 (UTC)
 * The current behaviour of the templates is to have consistant presentation with templates, and with other identifiers templates. Not only would this change that, but magic links will be phased out at some point in the future. Unless you can show consensus for such a change, this change won't be put into the template. Headbomb {talk / contribs / physics / books} 11:27, 24 January 2017 (UTC)
 * Could you add your comments here too: Template talk:ISBN. I am trying to converge on a unified link style. Thank you. 50.53.1.33 (talk) 22:51, 24 January 2017 (UTC)

New URL for PMIDs
Per this announcement, I have updated this template after testing the new base URL in the sandbox and on the testcases page. Drop a note here if anything looks amiss. – Jonesey95 (talk) 05:27, 6 December 2019 (UTC)

Use nbsp in the result?
Would it be a good idea to use nbsp instead of a normal space between "PMID" and the number, as it's done in Template:PMC? Jzandin (talk) 22:33, 4 November 2022 (UTC)