Mobile app version of vmapp.org
Login or Join
XinRu657

: How do I create templates for linking to PubMed Central ids and and DOI names in MediaWiki? I want to build templates that would render {{PMC|PMC number}} as a PMC number. That is, hyperlinked

@XinRu657

Posted in: #Links #Mediawiki #Template

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @XinRu657

1 Comments

Sorted by latest first Latest Oldest Best

 

@Annie201

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme