Template:WorldCat/doc: Difference between revisions

From FamilySearch Wiki
(→‎Examples: edit notes)
m (→‎Examples: added nowiki coding to get table contents to display properly)
 
(2 intermediate revisions by one other user not shown)
Line 9: Line 9:
=== Examples  ===
=== Examples  ===


{| cellspacing="1" cellpadding="1" border="1"
{| class="wikitable"
|-
|-
! Entered
! template Code
! Produces
! Display
! Notes
! Notes
|-
|-
| {{tlx|WorldCat|68627254}}  
| <nowiki>{{WorldCat|68627254}} </nowiki>
| {{WorldCat|68627254}}  
| {{WorldCat|68627254}}  
| [http://www.worldcat.org/oclc/68627254 Link]<br>No type, default to oclc
| [http://www.worldcat.org/oclc/68627254 Link]<br>No type, default to oclc
|-
|-
| {{tlx|WorldCat|68627254|<nowiki>disp=Tracing your Irish ancestors : the complete guide</nowiki>}}
| <nowiki>{{WorldCat|68627254|oclc}} </nowiki>
| {{WorldCat|68627254|disp=Tracing your Irish ancestors : the complete guide}}
| To display different text than the default WorldCat reference.
|-
| {{tlx|WorldCat|68627254|oclc}}  
| {{WorldCat|68627254|oclc}}  
| {{WorldCat|68627254|oclc}}  
| [http://www.worldcat.org/oclc/68627254 Link]
| [http://www.worldcat.org/oclc/68627254 Link]
|-
|-
| {{tlx|WorldCat|9780806317687|isbn}}  
| <nowiki>{{WorldCat|9780806317687|isbn}} </nowiki>
| {{WorldCat|9780806317687|isbn}}  
| {{WorldCat|9780806317687|isbn}}  
| [http://www.worldcat.org/isbn/9780806317687 Link]
| [http://www.worldcat.org/isbn/9780806317687 Link]
|-
|-
| {{tlx|WorldCat|0040-781X|issn}}  
| <nowiki>{{WorldCat|0040-781X|issn}} </nowiki>
| {{WorldCat|0040-781X|issn}}  
| {{WorldCat|0040-781X|issn}}  
| [http://www.worldcat.org/issn/0040-781X Link]
| [http://www.worldcat.org/issn/0040-781X Link]
|-
|-
| {{tlx|WorldCat|1234|junk}}  
| <nowiki>{{WorldCat|1234|junk}}</nowiki>
| {{WorldCat|1234|junk}}  
| {{WorldCat|1234|junk}}  
| Invalid type, default to OCLC
| Invalid type, default to OCLC
|-
|-
| {{tlx|WorldCat}}  
|<nowiki> {{WorldCat}} </nowiki>
| {{WorldCat}}  
| {{WorldCat}}  
| Missing number
| Missing number
|-
| <nowiki>{{WorldCat|68627254|disp=Tracing your Irish ancestors : the complete guide}}</nowiki>
| {{WorldCat|68627254|disp=Tracing your Irish ancestors : the complete guide}}
| '''Use the disp parameter to display different text than the default WorldCat reference.''' It is recommended to use the standard format to create the link consistent with other uses of this template. It makes it obvious where the holdings are.
|}
|}



Latest revision as of 15:39, 28 May 2025

THIS TEMPLATE IS UNDER DEVELOPMENT AND FEEDBACK IS BEING REVIEWED FROM A FEW KEY PEOPLE. IT HAS BEEN DISCUSSED IN A COMMUNITY MEETING, BUT THE TEMPLATE HAS NOT BEEN FINALIZED. CHANGES MADE TO IT OTHER THAN THE AUTHOR MAY BE LOST. PLEASE USE DISCUSSION PAGE FOR COMMENTS.

This is the {{WorldCat}} template. This template is used for formatting the text and links for WorldCat items generally used in source citations. Only one parameter is used and required, the WorldCat item number. When you search http://www.WorldCat.org/ for a title, you will find the OCLC number in details section of the edition. Alternatively, it may be shown in the URL immediately after the "oclc" text. Enter this number in the template as the first parameter.

An optional parameter disp can be specified, allowing the user to control the link text.

Examples[edit source]

template Code Display Notes
{{WorldCat|68627254}} WorldCat 68627254 Link
No type, default to oclc
{{WorldCat|68627254|oclc}} WorldCat 68627254 Link
{{WorldCat|9780806317687|isbn}} WorldCat 9780806317687 Link
{{WorldCat|0040-781X|issn}} WorldCat 0040-781X Link
{{WorldCat|1234|junk}} WorldCat 1234 Invalid type, default to OCLC
{{WorldCat}} Missing number
{{WorldCat|68627254|disp=Tracing your Irish ancestors : the complete guide}} Tracing your Irish ancestors : the complete guide Use the disp parameter to display different text than the default WorldCat reference. It is recommended to use the standard format to create the link consistent with other uses of this template. It makes it obvious where the holdings are.

See also[edit source]