Template:OL author/doc
< Template:OL author
Jump to navigation
Jump to search
Revision as of 13:14, 3 June 2020 by Wikipedia>Jonesey95 (Fix Linter errors using AutoEd)
This is a documentation subpage for Template:OL author. 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 for browsing an author's works on Open Library.
Usage
One of:
- {{OL author}}
- {{OL author|id=id of the author as specified at openlibrary.org|cname=name to be displayed}}
The former fetches the ID from Wikidata and takes the name from the page name.
|id=
is the openlibrary id in the form ####A 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 author|21491A}}
- Result
Works by OL author/doc at Open Library – no name provided so use page name
- Code
{{OL author|id=21491A|cname=Jack Kerouac}}
- Result
Works by Jack Kerouac at Open Library
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