Template:OCLC/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>JJMC89
(https per request)
meta>JJMC89
(no longer protocol relative)
Line 13: Line 13:
;Example #1
;Example #1
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|22239204<nowiki>}}</nowiki></code>
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|22239204<nowiki>}}</nowiki></code>
*Links to: [https://www.worldcat.org/oclc/22239204 https://www.worldcat.org/oclc/22239204] ([[Protocol-relative URL]])
*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: [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] ([[Protocol-relative URL]])
*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: [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] ([[Protocol-relative URL]])
*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}}


;Example #4
;Example #4
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|12345678|98765432|24680975|leadout=and<nowiki>}}</nowiki></code>
*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] ([[Protocol-relative URL]])
*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}}
*Renders as: {{{{BASEPAGENAME}}|12345678|98765432|24680975|leadout=and}}


;Example #5
;Example #5
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|22239204|show=all<nowiki>}}</nowiki></code>
*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] ([[Protocol-relative URL]])
*Links to: [https://www.worldcat.org/oclc/22239204/editions https://www.worldcat.org/oclc/22239204/editions]
*Renders as: {{{{BASEPAGENAME}}|22239204|show=all}}
*Renders as: {{{{BASEPAGENAME}}|22239204|show=all}}


;Example #6
;Example #6
*Usage: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|22239204|show=complete list of all editions<nowiki>}}</nowiki></code>
*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] ([[Protocol-relative URL]])
*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}}
*Renders as: {{{{BASEPAGENAME}}|22239204|show=complete list of all editions}}



Revision as of 06:35, 16 September 2017

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