Template:OL work
This template tracks the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
This template uses Lua: |
This template generates a link to a work on Open Library.
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 (4)
- Category:Open Library ID different from Wikidata (0)
- Category:Open Library ID same as Wikidata (0)
- Category:Articles with Open Library links (5)
Related pages
The above documentation is transcluded from Template:OL work/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |