Template:OCLC/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Huntster
(updating doc for new code.)
m (28 revisions imported)
 
(18 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->


=== Usage ===
=== Usage ===
This template generates a link for searching a single (print or online) publication by its [[OCLC]]. Note that up to three parameters may be used, for situations where a single ISBN appears more than once on the OCLC website.
This template generates a link for searching a (print or online) publication by its [[Online Computer Library Center|OCLC]] Number.
 
Up to nine parameters may be used for situations where a unique publication appears more than once on the OCLC website.
 
Multiple publications are separated by ",", but the word between the last two publications can be configured using the 'leadout' parameter (f.e. 'leadout=and', 'leadout=or', 'leadout=as well as' or 'leadout=,'.
 
It is also possible to link to all editions of a publication at once using the 'show=all' parameter (whereby "all" is a special token, causing the display of "(all editions)". The text between parentheses can be changed by specifying a different text using the 'show' parameter.


;Example #1
;Example #1
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|22239204<nowiki>}}</nowiki></code>
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|22239204<nowiki>}}</nowiki></code>
*Links to: http://worldcat.org/oclc/22239204
*Links to: [https://www.worldcat.org/oclc/22239204 https://www.worldcat.org/oclc/22239204]
*Renders as: {{{{BASEPAGENAME}}|22239204}}
*Renders as: {{{{BASEPAGENAME}}|22239204}}


;Example #2
;Example #2
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|46908525|50074837<nowiki>}}</nowiki></code>
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|46908525|50074837<nowiki>}}</nowiki></code>
*Links to: http://worldcat.org/oclc/46908525 and http://worldcat.org/oclc/50074837
*Links to: [https://www.worldcat.org/oclc/46908525 https://www.worldcat.org/oclc/46908525] and [https://www.worldcat.org/oclc/50074837 https://www.worldcat.org/oclc/50074837]
*Renders as: {{{{BASEPAGENAME}}|46908525|50074837}}
*Renders as: {{{{BASEPAGENAME}}|46908525|50074837}}


;Example #3
;Example #3
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|12345678|98765432|24680975<nowiki>}}</nowiki></code>
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|12345678|98765432|24680975<nowiki>}}</nowiki></code>
*Links to: http://worldcat.org/oclc/12345678, http://worldcat.org/oclc/98765432 and http://worldcat.org/oclc/24680975
*Links to: [https://www.worldcat.org/oclc/12345678 https://www.worldcat.org/oclc/12345678], [https://www.worldcat.org/oclc/98765432 https://www.worldcat.org/oclc/98765432], [https://www.worldcat.org/oclc/24680975 https://www.worldcat.org/oclc/24680975]
*Renders as: {{{{BASEPAGENAME}}|12345678|98765432|24680975}}
*Renders as: {{{{BASEPAGENAME}}|12345678|98765432|24680975}}


=== See also ===
;Example #4
*[[Template:ISSN]]
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|12345678|98765432|24680975|leadout=and<nowiki>}}</nowiki></code>
*[[Template:ISSN search link]]
*Links to: [https://www.worldcat.org/oclc/12345678 https://www.worldcat.org/oclc/12345678], [https://www.worldcat.org/oclc/98765432 https://www.worldcat.org/oclc/98765432] and [https://www.worldcat.org/oclc/24680975 https://www.worldcat.org/oclc/24680975]
*[[Template:OCLC search link]]
*Renders as: {{{{BASEPAGENAME}}|12345678|98765432|24680975|leadout=and}}
 
;Example #5
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|22239204|show=all<nowiki>}}</nowiki></code>
*Links to: [https://www.worldcat.org/oclc/22239204/editions https://www.worldcat.org/oclc/22239204/editions]
*Renders as: {{{{BASEPAGENAME}}|22239204|show=all}}


<includeonly>
;Example #6
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|22239204|show=complete list of all editions<nowiki>}}</nowiki></code>
[[Category:External link templates|OCLC]]
*Links to: [https://www.worldcat.org/oclc/22239204/editions https://www.worldcat.org/oclc/22239204/editions]
[[Category:Book templates|OCLC]]
*Renders as: {{{{BASEPAGENAME}}|22239204|show=complete list of all editions}}


[[da:Skabelon:OCLC]]
=== See also ===
[[de:Vorlage:OCLC]]
*{{tl|ISSN}}
[[ja:Template:OCLC]]
*{{tl|ISSN link}}
[[fi:Malline:OCLC]]
*{{tl|OCLC search link}}
[[sv:Mall:OCLC]]
*{{tl|Catalog lookup link}}
*{{slink|Help:Citation Style 1#Identifiers}}{{snd}}CS1 citation templates include an OCLC identifier; example: <code>|oclc=22239204</code>
*[[Wikipedia:OCLC]]{{snd}}essay about Wikipedia's relationship with OCLC


</includeonly>
<includeonly>{{sandbox other|1=<!-- keep sandbox out of categories -->|2=
[[Category:Catalog lookup templates]]
}}</includeonly>

Latest revision as of 14:38, 3 September 2020

Usage

This template generates a link for searching a (print or online) publication by its OCLC Number.

Up to nine parameters may be used for situations where a unique publication appears more than once on the OCLC website.

Multiple publications are separated by ",", but the word between the last two publications can be configured using the 'leadout' parameter (f.e. 'leadout=and', 'leadout=or', 'leadout=as well as' or 'leadout=,'.

It is also possible to link to all editions of a publication at once using the 'show=all' parameter (whereby "all" is a special token, causing the display of "(all editions)". The text between parentheses can be changed by specifying a different text using the 'show' parameter.

Example #1
  • Usage: {{OCLC|22239204}}
  • Links to: https://www.worldcat.org/oclc/22239204
  • Renders as: OCLC 22239204
Example #2
Example #3
Example #4
Example #5
Example #6

See also