defzone.net@gmail.comLiên hệ
DZ
DefZone.Net

Kien thuc cong nghe & giai tri

Bai vietDia diemAlbum anhGameCua hang
  1. Home
  2. Wiki
Template documentation[view] [edit] [history] [purge]
This template uses the Wikidata property:
  • Open Library ID (P648) (see uses)
This template tracks the Wikidata property:
  • Open Library ID (P648) (see uses)
This template uses Lua:
  • Module:EditAtWikidata (sandbox)
  • Module:WikidataCheck (sandbox)

This template generates a link to a work on Open Library.

Usage

[edit]

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

[edit]
Code

{{OL work|id=65941W}}

Result

OL work 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

[edit]
  • Category:Open Library ID not in Wikidata (110)
  • Category:Open Library ID different from Wikidata (600)
  • Category:Open Library ID same as Wikidata (164)
  • Category:Articles with Open Library links (1,807)

Template Data

[edit]

This template generates a link to a work on Open Library.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Work IDid

The Open Library id in the form ####W where #### is a series of one or more digits; do not include 'OL' prefix

Example
65941W
Stringrequired
Display name (optional)cname

An optional parameter for the name to be displayed – if omitted, uses page name.

Example
''On the Road'' by Jack Kerouac
Stringoptional

See also

[edit]
  • Template:OL author
  • Template:OL book
  • Template:OL
The above documentation is transcluded from Template:OL work/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
DZ
DefZone.Net

Noi chia se kien thuc, huong dan va kham pha cong nghe.

Lien ket nhanh

Trang chủBài viếtWikiCửa hàngLiên hệ

Liên hệ

Email: defzone.net@gmail.com
Điện thoại: +84 762 559 696
Địa chỉ: Thiên Hương, Thủy Nguyên, Hải Phòng

Đăng ký nhận tin

Nhận bài viết và cập nhật mới nhất qua email.

© 2025 DefZone.Net. All rights reserved.
PrivacyTermsSitemap