Difference between revisions of "Template:Citation/identifier/subst"

From blackwiki
Jump to navigation Jump to search
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]]:[http://dx.doi.org/{{urlencode:{{{input1|}}}}}  {{{input1|}}}]
+
           |[[Digital object identifier|doi]]:[https://dx.doi.org/{{urlencode:{{{input1|}}}}}  {{{input1|}}}]
 
       }}
 
       }}
 
  |isbn= [[International Standard Book Number|ISBN]]&nbsp;[[Special:BookSources/{{{input1|}}}|{{{input1|}}}]]
 
  |isbn= [[International Standard Book Number|ISBN]]&nbsp;[[Special:BookSources/{{{input1|}}}|{{{input1|}}}]]

Latest revision as of 09:54, 27 August 2017

doi:[1]

50px Template documentation[view] [edit] [history] [purge]

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