Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:OL work/doc

From Wikipedia, the free encyclopedia

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

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/doc 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]

Template Data

[edit]

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

Template parameters

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]