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

Template:OL work

  • Template
  • Talk
  • Language
  • Watch
  • View source
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 a work on Open Library.

Contents

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

Usage

Use one of:

  • {{OL work}}
  • {{OL work|id=id of the work 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 ####W 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 name

Examples

Code

{{OL work|id=65941W}}

Result

OL work at Open Library – uses page name

Code

{{OL work|id=65941W|cname=''On the Road'' by Jack Kerouac}}

Result

On the Road by Jack Kerouac at Open Library

Tracking categories

  • 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)

Template Data

This template generates a link to a work on Open Library.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Work IDid

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

Example
65941W
Stringrequired
Display name (optional)cname

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

Example
''On the Road'' by Jack Kerouac
Stringoptional

See also

  • Template:OL author
  • Template:OL book
  • Template:OL
The above documentation is transcluded from Template:OL work/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_work&oldid=1167134708"
Last edited on 25 July 2023, at 22:23

Languages

    • বাংলা
    • Ελληνικά
    • فارسی
    • 한국어
    • Italiano
    • ಕನ್ನಡ
    • Magyar
    • മലയാളം
    • 日本語
    • Română
    • Simple English
    • ไทย
    • Tiếng Việt
    • 中文
    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