Template:OL book/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:OL book. It contains usage information, categories and other content that is not part of the original template page. |
This template uses the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
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 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
- 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
Tracking categories
- Category:Open Library ID not in Wikidata (0)
- Category:Open Library ID different from Wikidata (0)
- Category:Open Library ID same as Wikidata (0)
- Category:Articles with Open Library links (0)
See also