Difference between revisions of "Template:ISMN/doc"

From blackwiki
Jump to navigation Jump to search
imported>Matthiaspaul
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
Line 9: Line 9:
  
 
An ISMN link is created by using the {{tl|ISMN}} template with the International Standard Music Number. Example:
 
An ISMN link is created by using the {{tl|ISMN}} template with the International Standard Music Number. Example:
* <tt><nowiki>{{ISMN|979-0-2600-0043-8}}</nowiki></tt> &nbsp; produces {{ISMN|979-0-2600-0043-8}}
+
* <code><nowiki>{{ISMN|979-0-2600-0043-8}}</nowiki></code> &nbsp; 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 {{para|plainlink}} parameter.
 
In tables (or other applications) where the letters "ISMN" would be redundant, it can be omitted using the {{para|plainlink}} parameter.
Line 18: Line 18:
 
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]].
 
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 <tt>invalid?=yes</tt> (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]].
+
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 <code>invalid?=yes</code> (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|invalid1=no}}
 
*{{ISMN|979-0-2600-0042-8|invalid1=no}}

Latest revision as of 02:16, 3 June 2020

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