1

I want to build templates that would render {{PMC|PMC number}} as a PMC number. That is, hyperlinked to the respective PubMed Central entry for said number. For example, {{PMC|2824929}} would be rendered as PMC 2824929.

For DOI names, it's pretty much the same deal (i.e., I write {{doi|doi number}}) but it comes out as the DOI number hyperlinked to the respective dx.doi.org entry. For example, {{doi|10.4103/0972-2327.56312}} would be rendered as: doi:10.4103/0972-2327.56312.

0

1 Answer 1

2

You would write the following in Template:PMC:

[http://www.ncbi.nlm.nih.gov/pmc/articles/PMC{{{1}}}/ PMC {{{1}}}]

And then call it with {{PMC|2824929}}.

Of course this doesn't verify that the number is valid or even that one has been provided.

1
  • If you want an entry point for a more advanced version of the template then Template:doi on English Wikipedia is probably a good start. Commented Oct 16, 2014 at 7:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.