Difference between revisions of "Template:ISMN/doc"

From blackwiki
Jump to navigation Jump to search
(lua)
imported>Matthiaspaul
(Updated)
Line 2: Line 2:
 
{{Lua|Module:Check isxn}}
 
{{Lua|Module:Check isxn}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
+
 
 +
===Usage===
 +
Use this template to create a lists of [[International Standard Music Number]]s with or without the usual "ISBN" prefix.
 +
 
 +
===Entering ISMNs===
 +
 
 +
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}}
 +
 
 +
In tables (or other applications) where the letters "ISMN" would be redundant, it can be omitted using the {{para|plainlink}} parameter.
 +
 
 +
The {{para|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 <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:Pages with listed invalid ISMNs]].
 +
 
 +
*{{ISMN|979-0-2600-0042-8|invalid1=no}}
 +
*{{ISMN|979-0-2600-0042-8|invalid1=yes}}
  
 
==See also==
 
==See also==
Line 8: Line 27:
 
* {{tl|ISBN}}
 
* {{tl|ISBN}}
 
* {{tl|ISSN}}
 
* {{tl|ISSN}}
 +
* {{tl|Catalog lookup link}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
+
[[Category:Catalog lookup templates]]
 
+
[[Category:International Standard Music Number templates]]
 +
[[Category:Wikipedia formatting and function templates|{{PAGENAME}}]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 21:04, 27 August 2017

Usage

Use this template to create a lists of International Standard Music Numbers with or without the usual "ISBN" 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:Pages with listed invalid ISMNs.

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

See also