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

Template:OL work/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:OL work
This is the template sandbox page for Template:OL work (diff).
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

edit

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

edit
Code

{{OL work|id=65941W}}

Result

OL work/sandbox 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

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)

Template Data

edit

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

edit
  • 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/sandbox&oldid=626351770"
Last edited on 20 September 2014, at 15:14

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 20 September 2014, at 15:14 (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