Open main menu

Changes

Template:OCLC/doc

3,607 bytes added, 09:37, 29 September 2021
Reverted 1 edit by 24.224.84.124 (talk): Extraneous characters
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->

=== Usage ===
This template generates a link for looking up a (print or online) publication in [[WorldCat]] by its [[OCLC (identifier)|OCLC Number]].

Up to nine parameters may be used for situations where a unique publication appears more than once in the OCLC [[union catalog]].

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: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|22239204<nowiki>}}</nowiki></code>
*Links to: [https://www.worldcat.org/oclc/22239204 https://www.worldcat.org/oclc/22239204]
*Renders as: {{{{BASEPAGENAME}}|22239204}}

;Example #2
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|46908525|50074837<nowiki>}}</nowiki></code>
*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}}

;Example #3
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|12345678|98765432|24680975<nowiki>}}</nowiki></code>
*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}}

;Example #4
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|12345678|98765432|24680975|leadout=and<nowiki>}}</nowiki></code>
*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]
*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}}

;Example #6
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|22239204|show=complete list of all editions<nowiki>}}</nowiki></code>
*Links to: [https://www.worldcat.org/oclc/22239204/editions https://www.worldcat.org/oclc/22239204/editions]
*Renders as: {{{{BASEPAGENAME}}|22239204|show=complete list of all editions}}

=== See also ===
*{{tl|OCLC search link}}{{snd}}a similar template without the "OCLC" prefix in the rendered output
*{{tl|ISSN}}
*{{tl|ISSN link}}
*{{tl|Catalog lookup link}}
*{{tl|Infobox book}}, {{tl|Infobox journal}}, {{tl|Infobox magazine}}, {{tl|Infobox newspaper}}{{snd}}these infobox templates include an OCLC identifier; example: <code>|oclc=22239204</code>
*{{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>{{sandbox other|1=<!-- keep sandbox out of categories -->|2=
[[Category:Catalog lookup templates]]
}}</includeonly>
Anonymous user