Plantilla:Property dashboard/ús

De la Viquipèdia, l'enciclopèdia lliure

Descripció[modifica]

Configuration for a dashboard of property coverage (powered by inteGraality)

Example[modifica]

{{Property dashboard
|selector_sparql=wdt:P31 wd:Q3305213
|grouping_property=P195
|higher_grouping=wdt:P17/wdt:P298
|higher_grouping_type=country
|properties=P170,P276,P571,P2048,P2049,P186,P18,P136,P180,P921,P1476
}}

{{Property dashboard end}}

Configuration for a dashboard of property coverage.

Paràmetres de la plantilla

Aquesta plantilla prefereix el format dels paràmetres en diferents línies.

ParàmetreDescripcióTipusEstat
selector_sparqlselector_sparql

A SPARQL way of selecting items, the part between ''?item <selector>''. This can be as simple as ''wdt:P31 wd:Q3305213'', or as complex as ''p:P195 [ ps:P195 ?id ; pq:P2868 wd:Q29188408 ]''. Use {{!}} to escape pipe ("|") symbols.

Exemple
wdt:P31 wd:Q3305213
Cadenaobligatori
grouping_propertygrouping_property

A property along which to group items, in the format P123. Note you can use some level of 'SPARQL injection', for example smth like 'P131/wdt':P131'

Exemple
P195
Nom de la pàgina:obligatori
propertiesproperties

Defines the columns of the table. A comma-separated list of values. You can override the column header using the syntax “P1:something”. You can also query qualifiers using “P553/P670” or “P553/Q17459/P670”.

Exemple
P136:genre,P404,P553/Q17459/P670
Cadenaobligatori
higher_groupinghigher_grouping

A SPARQL selector to get a higher-level grouping of the groupings (eg, the countries of the collections of paintings). Unless you specify a `higher_grouping_type` (with a supported value), then this is assumed to be a Qitem

Exemple
wdt:P17/wdt:P298
Desconegutopcional
grouping_thresholdgrouping_threshold

How many items for a group to be displayed.

Per defecte
20
Nombreopcional
property_thresholdproperty_threshold

How many items with the property for it to be displayed.

Per defecte
10
Nombreopcional
stats_for_no_groupstats_for_no_group

Whether to add a line for all the items that do not have a group (ie for which the grouping property is not set).

Per defecte
False
Booleàopcional
grouping_linkgrouping_link

If set, for each group, the Counts cell will be hyperlinked to a page as follows: [[<grouping_link>/<group-en-label>]] (with group-en-label being the English label of the group item).

Nom de la pàgina:opcional
higher_grouping_typehigher_grouping_type

A special type for some fancier display. Only value recognized for now is country (where it expects a three-letter country-code).

Cadenaopcional

Sintaxi[modifica]