模板:OL work
本模板使用維基數據資源:
此模板使用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:帶有開放圖書館連結的條目(90)