Difference between revisions of "Template:ISSN/doc"

From blackwiki
Jump to navigation Jump to search
imported>Matthiaspaul
(Updated/expanded documentation)
imported>Matthiaspaul
(removed sandbox)
Line 13: Line 13:
 
results in:
 
results in:
  
{{ISSN/sandbox|0028-0836}}
+
{{ISSN|0028-0836}}
  
 
If more than one ISSN is given, the template will separate them using a comma:
 
If more than one ISSN is given, the template will separate them using a comma:
Line 21: Line 21:
 
results in:
 
results in:
  
{{ISSN/sandbox|0028-0836|0028-0836|0028-0836}}
+
{{ISSN|0028-0836|0028-0836|0028-0836}}
  
 
Alternatively the conjugation between the last two list items can be defined using the <tt>leadout=</tt> parameter:
 
Alternatively the conjugation between the last two list items can be defined using the <tt>leadout=</tt> parameter:
Line 29: Line 29:
 
results in:
 
results in:
  
{{ISSN/sandbox|0028-0836|0028-0836|0028-0836|leadout=and}}
+
{{ISSN|0028-0836|0028-0836|0028-0836|leadout=and}}
  
 
It the leading "ISSN" link should not occur (for example in longer lists), it can be suppressed using the <tt>plainlink=yes</tt> parameter:
 
It the leading "ISSN" link should not occur (for example in longer lists), it can be suppressed using the <tt>plainlink=yes</tt> parameter:
Line 37: Line 37:
 
results in:
 
results in:
  
{{ISSN/sandbox|0028-0836|0028-0836|0028-0836|plainlink=yes}}
+
{{ISSN|0028-0836|0028-0836|0028-0836|plainlink=yes}}
  
 
The <tt>plainlink</tt> and <tt>leadout</tt> parameter can be used at the same time:
 
The <tt>plainlink</tt> and <tt>leadout</tt> parameter can be used at the same time:
Line 45: Line 45:
 
results in:
 
results in:
  
{{ISSN/sandbox|0028-0836|0028-0836|0028-0836|plainlink=yes|leadout=as well as}}
+
{{ISSN|0028-0836|0028-0836|0028-0836|plainlink=yes|leadout=as well as}}
  
 
==Find ISSN of publication==
 
==Find ISSN of publication==
Line 59: Line 59:
 
Since invalid ISSNs are sometimes used in publications, it is possible to disable the validity check for individual ISSNs 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 ISSNs]].
 
Since invalid ISSNs are sometimes used in publications, it is possible to disable the validity check for individual ISSNs 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 ISSNs]].
  
* <tt><nowiki>{{ISSN|1028-0836}}</nowiki></tt> &nbsp; produces {{ISSN/sandbox|1028-0836}}
+
* <tt><nowiki>{{ISSN|1028-0836}}</nowiki></tt> &nbsp; produces {{ISSN|1028-0836}}
  
* <tt><nowiki>{{ISSN|1028-0836|invalid1=yes}}</nowiki></tt> &nbsp; produces {{ISSN/sandbox|1028-0836|invalid1=yes}}
+
* <tt><nowiki>{{ISSN|1028-0836|invalid1=yes}}</nowiki></tt> &nbsp; produces {{ISSN|1028-0836|invalid1=yes}}
  
* <tt><nowiki>{{ISSN|1028-0836|invalid1=no}}</nowiki></tt> &nbsp; produces {{ISSN/sandbox|1028-0836|invalid1=no}}
+
* <tt><nowiki>{{ISSN|1028-0836|invalid1=no}}</nowiki></tt> &nbsp; produces {{ISSN|1028-0836|invalid1=no}}
  
* <tt><nowiki>{{ISSN}}</nowiki></tt> &nbsp; produces {{ISSN/sandbox}}
+
* <tt><nowiki>{{ISSN}}</nowiki></tt> &nbsp; produces {{ISSN}}
  
 
== See also ==
 
== See also ==

Revision as of 02:14, 6 September 2017

Usage

This template generates a link for finding data about a (print or on-line) publication via its International Standard Serial Number (ISSN). The ISSN refers to the particular publication, not to a specific issue (or date) of that publication. The ISSN is used to help establish the publication as a Wikipedia reliable source.

For a publication with the ISSN 1234-5678, use {{ISSN|1234-5678}}. The template supports up to 9 ISSNs.

Examples

{{ISSN|0028-0836}}

results in:

ISSN 0028-0836

If more than one ISSN is given, the template will separate them using a comma:

{{ISSN|0028-0836|0028-0836|0028-0836}}

results in:

ISSN 0028-0836, 0028-0836, 0028-0836

Alternatively the conjugation between the last two list items can be defined using the leadout= parameter:

{{ISSN|0028-0836|0028-0836|0028-0836|leadout=and}}

results in:

ISSN 0028-0836, 0028-0836 and 0028-0836

It the leading "ISSN" link should not occur (for example in longer lists), it can be suppressed using the plainlink=yes parameter:

{{ISSN|0028-0836|0028-0836|0028-0836|plainlink=yes}}

results in:

0028-0836, 0028-0836, 0028-0836

The plainlink and leadout parameter can be used at the same time:

{{ISSN|0028-0836|0028-0836|0028-0836|plainlink=yes|leadout=as well as}}

results in:

0028-0836, 0028-0836 as well as 0028-0836

Find ISSN of publication

Note:

An ISSN is always eight digits long. Scroll down the Worldcat page to find the ISSN. Do not rely on the digits shown in the Worldcat URL for the particular publication, since the URL sometimes shows only seven digits, which is invalid to use as the ISSN.

Error checking

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

Since invalid ISSNs are sometimes used in publications, it is possible to disable the validity check for individual ISSNs 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 ISSNs.

  • {{ISSN}}   produces Parameter error in {{issn}}: Missing ISSN.

See also