Templat:Wikidata list/doc

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas

Penggunaan[sunting sumber]

Templat ini menghasilkan daftar otomatis yang dihasilkan oleh bot dari Wikidata (pos blog asli). Templat ini harus diakhiri dengan {{Wikidata list end}}; teks yang berada di antara templat akan diperbaharui secara berkala (sekali dalam 24 jam) dan akan digantikan dengan daftar yang dihasilkan oleh bot. Saat ini hanya memungkinkan satu daftar per halaman.

Kueri HARUS termasuk variable ?item variable - jangan diubah namanya.

Contoh:

{{Wikidata list|sparql=
 SELECT ?item WHERE {
 ?item wdt:P31 wd:Q39715 .
 ?item (wdt:P131)* wd:Q55
 }
|columns=label:Article,description,p131:Place,P580,P582,p625,P18
|section=131
|min_section=3
|sort=label
|links=text
|thumb=128
|autolist=fallback
}}
... (Ini akan ditimpa oleh ListeriaBot) ... {{Wikidata list end}}

Parameter:

sparql
A SPARQL SELECT query. Needs to return ?item as the item number.

Mandatory.
Lihat SPARQL query service examples suitable for Listeria

columns
Menentukan kolom dari daftar tabel. Nilai yang dibolehkan adalah :
  • number, nomor baris seri (per bagian), meningkat dari 1, sesuai dengan penyortiran awal
  • label, label berbasis bahasa-wiki dari item, terkait dengan artikel lokal (jika ada), atau item Wikidata
  • label/de, label yang berbasis bahasa wiki dari item, menggunakan bahasa yang diberikan (di sini, "de"), sebagai teks biasa
  • description, deskripsi manual, atau yang dihasilkan secara otomatis
  • item, nomor item Q-xxx
  • Pxxx sebuah properti Wikidata
  • Pxxx/Pzzz, qualifier properties; for Pxxx linking to an item Qyyy and having a Pzzz qualifier, the Qxxx linked label and the value of Pzzz
  • Pxxx/Qyyy/Pzzz, qualifier properties; for Pxxx linking to an item Qyyy and having a Pzzz qualifier, the value of Pzzz. This is a version of the above, specific for a single item; e.g., "p553/q866/p554" to get YouTube account names.
  • ?fieldname, a SPARQL result field name.
Values marked as "deprecated" are not shown. Every column can optionally have a title generation by adding ":TITLE", otherwise the Wikidata property name is used. Mandatory
sort
The initial sort key for the table. Valid values are:
  • label, label barang
  • family_name, tries to find, and sort by, the family (last) name from the label, assuming items are people. This is a heuristic and may not work properly in all cases. If possible, try to sort by P734 (family name).
  • Pxxx, a Wikidata property
Opsional
section
Daftar ini dapat dibagi oleh sebuah properti Wikidata. Opsional
min_section
The minimum number of entries to generate a section when used together with section. All other entries will be put under section "misc". Default:2. Opsional
autolist
If description is a column but no description exists on Wikidata, "autolist=fallback" uses AutoDesc to generate one. Opsional
language
Label/description language, if different from site language. Opsional
thumb
The thumbnail width for images (e.g. column P18). Default:128. Opsional
links
How to render links not in the local Wikipedia. Valid values are:
  • all to link to Wikidata. Default.
  • local to remove entries for which there exists no local article (the opposite of red_only).
  • red to generate red links based on label and item.
  • red_only to remove entries for which there exists a local article (the opposite of local).
  • text to generate blue links for existing pages, and plain text otherwise.
  • reasonator to generate blue links for existing pages, and links to Reasonator otherwise.
Opsional
row_template
Generates a template call rather than a table row; the template must then generate the table row in turn or the table header/footer need to be suppressed using skip_table parameter. Parameters passed to the template are the lower-case keys from the columns parameter, e.g. label or p18. Opsional
header_template
Generates a template call rather than a table header; the template must then generate the table header. No parameters are passed to this template. Recommended to be used with row_template. Opsional
skip_table
Suppresses the table markup completely when using row_template. Any value will work.
wdedit
Generates information that allows Wikidata editing from Wikipedia using this JavaScript. Value needs to be yes. Does not work when row_template is used. Perhatian: Ini akan menghasilkan wikitext yang lebih besar dari biasanya, dan pembaruan mungkin gagal karena itu. Opsional
references
Tambahkan referensi. Nilai yang diizinkan adalah all. Membutuhkan {{reflist}} atau hal yang serupa di suatu tempat di halaman. Opsional
freq
Nilai numerik X; tunggu setidaknya X hari sebelum pembaruan otomatis. Tidak memengaruhi pembaruan melalui antarmuka web. Opsional
summary
Daftar kunci yang dipisahkan koma untuk ditambahkan sebagai ringkasan di bawah semua konten lainnya. Opsional
  • itemnumber The total number of items (rows) in this list.