Template talk:PMID

Latest comment: 2 years ago by Jzandin in topic Use nbsp in the result?

Comments

edit

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

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

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

changing to complement built-in system

edit

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)Reply

AbstractPlus

edit

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)Reply

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)Reply

Suggestion to show ID number

edit

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)Reply

Okay, okay, I see the example above—no fixing needed.+mwtoews 01:40, 12 March 2007 (UTC)Reply

Suggestion for improvement

edit

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)Reply

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

Actual URL

edit

{{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={{{1}}}&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={{{1}}}&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={{{1}}}&dopt=Abstract&tool=wikipedia

Xavier, 14:22, 22 May 2007 (UTC)Reply

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)Reply
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)Reply
  Done. Cheers. --MZMcBride 23:35, 23 May 2007 (UTC)Reply
Fine ! Thanks. — Xavier, 02:24, 24 May 2007 (UTC)Reply

Spaces in params

edit

{{editprotected}} I've created a version in the PMID/sandbox that works properly if there are spaces in the input:

{{PMID | 12345 }}
  • Current: PMID 12345
  • Sandbox: PMID 12345

Please update the template accordingly. Thanks, Martin (Smith609 – Talk) 01:23, 16 February 2009 (UTC)Reply

The sandbox currently contains an error in the code. Could you work that out? Thanks, –Juliancolton Tropical Cyclone 17:36, 16 February 2009 (UTC)Reply
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)Reply
  Done. Cheers. --MZMcBride (talk) 08:40, 20 February 2009 (UTC)Reply

Document as Deprecated, better examples

edit

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
{{Cite pmid|14730029}}

Template filler output
Dobbyn HC, O'Keefe RT (2004). "Analysis of Snu13p mutations reveals differential interactions with the U4 snRNA and U3 snoRNA". RNA. 10 (2): 308–20. PMC 1370542. PMID 14730029. {{cite journal}}: Unknown parameter |month= ignored (help)
RDBrown (talk) 13:13, 5 January 2010 (UTC)Reply

Tweak for print

edit

{{edit protected}}

Simply replace the code with this (copy-paste).

<!--
-->{{hide from print<!--
 -->|[http://www.ncbi.nlm.nih.gov/sites/entrez?cmd=retrieve&db=pubmed&list_uids={{#expr:{{{1}}}}}&dopt=Abstract PubMed]<!--
-->}}<!--
-->{{only in print<!--
 -->|PMID&nbsp;{{{1}}}<!--
--><noinclude>
{{pp-template|small=yes}}
{{documentation}}
</noinclude>

This will cleanup the print version of articles (see explanation).

  Not done It's putting "Template:Hide from print" in red into articles.  Ronhjones  (Talk) 22:54, 6 March 2010 (UTC)Reply

Suggest change to new URL format

edit

{{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/<PubMed ID>

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):

[http://www.ncbi.nlm.nih.gov/pubmed/{{#expr:{{{1|0}}}}} PubMed]<noinclude> {{documentation}} </noinclude> -Paul1337 (talk) 15:31, 3 September 2010 (UTC)Reply

  Done Changed as requested. -- WOSlinker (talk) 22:05, 3 September 2010 (UTC)Reply
I also added some includeonly tags. --Selket Talk 22:09, 3 September 2010 (UTC)Reply

PMCID and NIHMSID?

edit

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)Reply

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)Reply

Protected edit request on 20 August 2014: Use protocol relative URL

edit

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)Reply

  Done --Redrose64 (talk) 22:16, 20 August 2014 (UTC)Reply

Format consistency

edit

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:

Moser, May-Britt; Moser, Edvard (2016). "Where Am I? Where Am I Going?". Scientific American. 314: 26–33. PMID 26887193.

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 doi:10.1038/scientificamerican0116-26). 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)Reply

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:

<includeonly>[[PubMed Identifier|PMID]] [//www.ncbi.nlm.nih.gov/pubmed/{{#expr:{{{1|0}}}}} {{#expr:{{{1|0}}}}}]</includeonly><noinclude> {{documentation}} </noinclude>

--Bjerrebæk (talk) 19:39, 14 August 2016 (UTC)Reply

  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)Reply

RFCs on citations templates and the flagging free-to-read sources

edit

See

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

Switch to using interwiki

edit

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)Reply

The current behaviour of the templates is to have consistant presentation with {{cite xxx}} 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)Reply
Could you add your comments here too: Template talk:ISBN#Make the link style consistent with cite xxx instead of magic links. I am trying to converge on a unified link style. Thank you. 50.53.1.33 (talk) 22:51, 24 January 2017 (UTC)Reply

New URL for PMIDs

edit

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)Reply

Use nbsp in the result?

edit

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)Reply