Template:OL work/doc
Appearance
![]() | This is a documentation subpage for Template:OL work. It may contain usage information, categories and other content that is not part of the original template page. |
![](http://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/40px-Wikidata-logo.svg.png)
This template uses the Wikidata property:
Open Library ID (P648) (see uses)
![]() | 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/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
- Category:Open Library ID not in Wikidata (105)
- Category:Open Library ID different from Wikidata (567)
- Category:Open Library ID same as Wikidata (146)
- Category:Articles with Open Library links (1,661)
See also