模板:OL work
跳转到导航
跳转到搜索
File:Test Template Info-Icon - Version (2).svg 模板文档[查看] [编辑] [历史] [清除缓存]
本模板使用维基数据资源:
Module:Uses_Wikidata第13行Lua错误:attempt to index field 'wikibase' (a nil value)
| File:Lua-Logo.svg | 此模板使用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 – uses page name
- Code
{{OL work|id=65941W|cname=''On the Road'' by Jack Kerouac}}
- Result
开放图书馆中的On the Road by Jack Kerouac
追踪分类[编辑]
- Category:不在维基数据的开放图书馆ID(0)
- Category:与维基数据不同的开放图书馆ID(0)
- Category:与维基数据相同的开放图书馆ID(0)
- Category:带有开放图书馆链接的条目(0)