Difference between revisions of "Template:ISSN link/doc"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(Update)
imported>Xover
(Creat docs subpage)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{Notice|small=yes|For most cases you should use {{tl|ISSN}} or {{tl|ISSN search link}} instead.}}
 +
Use {{tl|ISSN link}} to produce a link or pair of links to the [[Worldcat]] search page for an [[ISSN]]. Unlike {{tl|ISSN}}, this template does not prefix the link with "[[ISSN]]&nbsp;"; and if multiple ISSNs are provided they will be tagged as being for "<small>(print)</small>" and "<small>(web)</small>".
  
== Usage ==
+
==Usage==
This template generates a link for finding data about a single (print or online) publication via its [[International Standard Serial Number|ISSN]]. It may be used to implement other templates or directly; in both cases, please be sure that the context makes clear that it provides a link for ISSN lookup.
+
In any context where you need to show an ISSN linked to a [[Worldcat]] search, but where the inclusion of the "[[ISSN]]&nbsp;" prefix would be distracting, or where you need to provide both the ISSN (print) and eISSN (web/online/digital) for a publication, you can use {{tl|ISSN link}} to generate the needed markup. The template was created for use with [[List of Cambridge University Press journals]] (several hundred ISSNs in a table, with a separate column for the ISSNs). If you only need a single or a few ISSNs, you'll be better off just using {{tl|ISSN}} or {{tl|ISSN search link}}.
  
;Example
+
The template takes two positional parameters, and at least one is required. If both are given, the first is assumed to be the ISSN for the print edition and the second to be the online edition, and both will be tagged accordingly. If only one parameter is given, no assumption is made regarding print vs. online and no tagging is done.
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|0028-0836<nowiki>}}</nowiki></code>
 
*Links to: http://www.worldcat.org/issn/0028-0836
 
*Renders as: {{{{BASEPAGENAME}}|0028-0836}}
 
  
== See also ==
+
*<code>|1=</code>: If <code>|2=</code> is also provided, this is the ISSN for the print edition, and will be tagged with "<small>(print)</small>". If this is the only parameter passed in, no assumption will be made as to its type and no tag will be provided.
 +
*<code>|2=</code>: The ISSN of the online edition. This parameter is optional, but if given will produce a linked ISSN tagged with "<small>(web)</small>".
 +
 
 +
==Examples==
 +
;One argument
 +
<code><nowiki>{{ISSN link|1234-5678}}</nowiki></code>
 +
 
 +
{{ISSN link|1234-5678}}
 +
 
 +
 
 +
;Two arguments
 +
<code><nowiki>{{ISSN link|1234-5678|9876-5432}}</nowiki></code>
 +
 
 +
{{ISSN link|1234-5678|9876-5432}}
 +
 
 +
 
 +
==See also==
 
*[[Template:Infobox newspaper]]
 
*[[Template:Infobox newspaper]]
 
*[[Template:Infobox journal]]
 
*[[Template:Infobox journal]]
Line 18: Line 33:
 
*[[Template:UPC]]
 
*[[Template:UPC]]
  
<includeonly>
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- CATEGORIES HERE, THANKS -->
+
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:External link templates|ISSN search link]]
+
[[Category:External link templates|{{PAGENAME}}]]
</includeonly>
+
[[Category:Catalog lookup templates|{{PAGENAME}}]]
 +
}}</includeonly>

Revision as of 05:56, 13 October 2015

Use {{ISSN link}} to produce a link or pair of links to the Worldcat search page for an ISSN. Unlike {{ISSN}}, this template does not prefix the link with "ISSN "; and if multiple ISSNs are provided they will be tagged as being for "(print)" and "(web)".

Usage

In any context where you need to show an ISSN linked to a Worldcat search, but where the inclusion of the "ISSN " prefix would be distracting, or where you need to provide both the ISSN (print) and eISSN (web/online/digital) for a publication, you can use {{ISSN link}} to generate the needed markup. The template was created for use with List of Cambridge University Press journals (several hundred ISSNs in a table, with a separate column for the ISSNs). If you only need a single or a few ISSNs, you'll be better off just using {{ISSN}} or {{ISSN search link}}.

The template takes two positional parameters, and at least one is required. If both are given, the first is assumed to be the ISSN for the print edition and the second to be the online edition, and both will be tagged accordingly. If only one parameter is given, no assumption is made regarding print vs. online and no tagging is done.

  • |1=: If |2= is also provided, this is the ISSN for the print edition, and will be tagged with "(print)". If this is the only parameter passed in, no assumption will be made as to its type and no tag will be provided.
  • |2=: The ISSN of the online edition. This parameter is optional, but if given will produce a linked ISSN tagged with "(web)".

Examples

One argument

{{ISSN link|1234-5678}}

1234-5678Template:Please check ISSN


Two arguments

{{ISSN link|1234-5678|9876-5432}}

1234-5678 (print)Template:Please check ISSN
9876-5432 (web)Template:Please check ISSN


See also