Difference between revisions of "Template:ISMN/doc"

From blackwiki
Jump to navigation Jump to search
imported>Matthiaspaul
(→‎Error checking: adjusted cat name)
imported>Matthiaspaul
Line 31: Line 31:
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
[[Category:Catalog lookup templates]]
 
[[Category:Catalog lookup templates]]
[[Category:International Standard Music Number templates]]
 
 
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
 
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 20:47, 29 August 2017

Usage

Use this template to create a lists of International Standard Music Numbers with or without the usual "ISMN" prefix.

Entering ISMNs

An ISMN link is created by using the {{ISMN}} template with the International Standard Music Number. Example:

  • {{ISMN|979-0-2600-0043-8}}   produces ISMN 979-0-2600-0043-8

In tables (or other applications) where the letters "ISMN" would be redundant, it can be omitted using the |plainlink= parameter.

The |leadout= parameter can be used to define a different conjunction between the last two list items.

Error checking

This template uses Module:Check isxn to validate the ISMN. If the ISMN is not valid, this subtemplate will still generate the link, and it will add the article to Category:Pages with ISMN errors.

Since invalid ISMNs are sometimes used in publications, it is possible to disable the validity check for individual ISMNs given as parameters. In order to do so, add invalid?=yes (with ? replaced by the parameter number 1 to 9) to the template. In this case, the article will be added to Category:Articles with invalid ISMNs.

  • ISMN 979-0-2600-0042-8 Parameter error in {{ISMN}}: Invalid ISMN.
  • ISMN 979-0-2600-0042-8

See also