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

From Wikipedia, the free encyclopedia

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

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

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]

See also

[edit]