Skabelon:Wikidata list
Usage
This template defines a bot-generated list based on Wikidata (original blog post). It must be "closed" with {{Wikidata list end}}; the text between these two templates will be periodically (once every 24h) replaced by the bot-generated list. At this moment, only one list per page is possible. Example:
{{Wikidata list
|sparql=SELECT ?item WHERE { ?item wdt:P31 wd:Q39715 . ?item wdt:P131 ?sub0 . ?sub0 (wdt:P131)* wd:Q55 }
|wdq=claim[31:39715] and claim[131:(tree[55][][131])]
|section=131
|sort=label
|columns=label:Article,description,p131:Place,P580,P582,p625,P18
|thumb=128
|min_section=2
}}
...
{{Wikidata list end}}
Parameters:
- sparql
- A SPARQL SELECT query. Needs to return
?itemas the item number. You can use a conversion tool to convert WDQ to SPARQL, but always check your query to make sure it works and replace "entity:" with "wd:" (phab:T119332). Mandatory, unless WDQ is used. - wdq
- A WikiDataQuery query string. The resulting items will be used to build the list. Try your query out here. Mandatory, unless SPARQL is used.
- columns
- Defines the columns of the list table. Allowed values are :
number, a serial row number (per section), increasing from 1, according to the initial sortinglabel, the wiki-language-based label of the item, linked to the local article (where exists), or the Wikidata itemdescription, the manual, or auto-generated descriptionitem, the Q item numberPxxxa Wikidata propertyPxxx/Pzzz, qualifier properties; for Pxxx linking to an item Qyyy and having a Pzzz qualifier, the Qxxx linked label and the value of PzzzPxxx/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.
- Values marked as "deprecated" are not shown. Every column can optionally have a ":Titel", otherwise the Wikidata property name is used. Mandatory
- sort
- The initial sort key for the table. Valid values are:
label, the label of the itemfamily_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
- Optional
- section
- The list can be sectioned by a Wikidata property. Optional
- min_section
- The minimum number of entries to generate a section. All other entries will be put under "misc". Default:2. Optional
- autolist
- If description is a column but no description exists on Wikidata, "autolist=fallback" uses AutoDesc to generate one. Optional
- thumb
- The thumbnail width for images (e.g. column P18). Default:128. Optional
- links
- How to render links not in the local Wikipedia. Valid values are:
allto link to Wikidata. Default.localto remove entries for which there exists no local article.redto generate red links based on label and item.textto generate blue links for existing pages, and plain text otherwise.reasonatorto generate blue links for existing pages, and links to Reasonator otherwise.
- Optional
- row_template
- Generates a template call rather than a table row; the template must then generate the table row in turn. Parameters passed to the template are the lower-case keys from the
columnsparameter, e.g.labelorp18. Optional
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
Index:
pl ar de en es fr it arz nl ja pt ceb sv uk vi war zh ru af ast az bg zh-min-nan bn be ca cs cy da et el eo eu fa gl ko hi hr id he ka la lv lt hu mk ms min no nn ce uz kk ro simple sk sl sr sh fi ta tt th tg azb tr ur zh-yue hy my ace als am an hyw ban bjn map-bms ba be-tarask bcl bpy bar bs br cv nv eml hif fo fy ga gd gu hak ha hsb io ig ilo ia ie os is jv kn ht ku ckb ky mrj lb lij li lmo mai mg ml zh-classical mr xmf mzn cdo mn nap new ne frr oc mhr or as pa pnb ps pms nds crh qu sa sah sco sq scn si sd szl su sw tl shn te bug vec vo wa wuu yi yo diq bat-smg zu lad kbd ang smn ab roa-rup frp arc gn av ay bh bi bo bxr cbk-zam co za dag ary se pdc dv dsb myv ext fur gv gag inh ki glk gan guw xal haw rw kbp pam csb kw km kv koi kg gom ks gcr lo lbe ltg lez nia ln jbo lg mt mi tw mwl mdf mnw nqo fj nah na nds-nl nrm nov om pi pag pap pfl pcd krc kaa ksh rm rue sm sat sc trv stq nso sn cu so srn kab roa-tara tet tpi to chr tum tk tyv udm ug vep fiu-vro vls wo xh zea ty ak bm ch ny ee ff got iu ik kl mad cr pih ami pwn pnt dz rmy rn sg st tn ss ti din chy ts kcg ve









