• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:OL book

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]
This template uses the Wikidata property:
  • Open Library ID (P648) (see uses)
This template tracks the Wikidata property:
  • Open Library ID (P648) (see uses)
This template uses Lua:
  • Module:EditAtWikidata (sandbox)
  • Module:WikidataCheck (sandbox)

This template generates a link to an edition ("book") on Open Library.

Contents

  • 1 Usage
  • 2 Examples
  • 3 Template data
  • 4 Tracking categories
  • 5 See also

Usage

edit

Use one of:

  • {{OL book}}
  • {{OL book|id=id of the book as specified at openlibrary.org|cname=name to be displayed}}
  • The former fetches the ID from Wikidata and uses the page name.
  • |id= is the Open Library id in the form ####M where #### is a series of one or more digits; do not include 'OL' prefix
  • |cname= is an optional parameter for the name to be displayed – if omitted, uses page title

Examples

edit
Code

{{OL book|id=23330498M}}

Result

OL book on Open Library at the Internet Archive – uses page title

Code

{{OL book|id=23330498M|cname=''The Road to Oz'' by L. Frank Baum}}

Result

The Road to Oz by L. Frank Baum on Open Library at the Internet Archive

Template data

edit

This template generates a link to an edition ("book") on Open Library.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Book IDid

The Open Library id in the form ####M where #### is a series of one or more digits; do not include 'OL' prefix.

Example
23330498M
Stringrequired
Display name (optional)cname

An optional parameter for the name to be displayed – if omitted, uses page title.

Example
''The Road to Oz'' by L. Frank Baum
Stringoptional

Tracking categories

edit
  • Category:Open Library ID not in Wikidata (116)
  • Category:Open Library ID different from Wikidata (585)
  • Category:Open Library ID same as Wikidata (166)
  • Category:Articles with Open Library links (1,777)

See also

edit
  • Template:OL author
  • Template:OL work
  • Template:OL
The above documentation is transcluded from Template:OL book/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:OL_book&oldid=1167134693"
Last edited on 25 July 2023, at 22:23

Languages

    • العربية
    • বাংলা
    • Ελληνικά
    • فارسی
    • 한국어
    • 日本語
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 25 July 2023, at 22:23 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop