Difference between revisions of "Template:Citation/identifier/subst"
imported>Wikid77 (removed test for {doi} prefix "10." of "Bad DOI"; noincluded comment "<!-- -->") |
imported>Jon Kolbert m (http->https) |
||
| Line 24: | Line 24: | ||
|doi= {{{{{|safesubst:}}}#if:{{{input2|}}} | |doi= {{{{{|safesubst:}}}#if:{{{input2|}}} | ||
|[[Digital object identifier|doi]]:{{{input1|}}} (inactive {{{input2|}}}) | |[[Digital object identifier|doi]]:{{{input1|}}} (inactive {{{input2|}}}) | ||
| − | |[[Digital object identifier|doi]]:[ | + | |[[Digital object identifier|doi]]:[https://dx.doi.org/{{urlencode:{{{input1|}}}}} {{{input1|}}}] |
}} | }} | ||
|isbn= [[International Standard Book Number|ISBN]] [[Special:BookSources/{{{input1|}}}|{{{input1|}}}]] | |isbn= [[International Standard Book Number|ISBN]] [[Special:BookSources/{{{input1|}}}|{{{input1|}}}]] | ||
Latest revision as of 09:54, 27 August 2017
The Template:Citation/identifier/subst is a wp:subst-compatible subtemplate of Template:Citation/identifier, used in wp:CS2 citation style to display id codes for documents (doi, bibcode, PMID, etc.) or books (ISBN, ISSN, etc.). Because the CS2 citation templates are designed to store hidden span-tags and COinS metadata, then subst'ing of the original templates does not generate basic wikitext, but rather the encoded "<span class=...>__</span>" and other internal tagged markup which is not found in basic hand-coded citations.
To use the template, put {subst:Citation/identifier/subst|identifier=xx|input1=...} wherever the template {Citation/identifier} would be used to generate a document-id link, such as: ISBN 123-45-67-890 Parameter error in {{ISBN}}: Invalid ISBN.
Template:Only in print.
Usage
See also
| The above documentation is transcluded from Template:Citation/identifier/subst/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |