Template:Property dashboard
This template defines the configuration for a dashboard of property coverage powered by inteGraality (hosted on ToolForge). Intended for use in tandem with {{Property dashboard end}}
.
To get a better understanding of how it can be used, explore the contents of the Property dashboard category.
Usage
[edit]Example
[edit]{{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,Len,Lfr,Den,Dfr }} {{Property dashboard end}}
TemplateData
[edit]Configuration for a dashboard of property coverage.
Parameter | Description | Type | Status | |
---|---|---|---|---|
SPARQL Selector | selector_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.
| Line | required |
Grouping property | grouping_property | A property by which to group items, in the format P123. Note you can use some level of 'SPARQL injection', for example smth like wdt:P131/wdt:P131
| Page name | required |
Tracked properties | properties | 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”. For English labels, use “Len”, English descriptions “Den”; for other languages, replace “en” with its language code.
| String | required |
Property threshold | property_threshold | How many items with the property for it to be displayed.
| Number | suggested |
Grouping threshold | grouping_threshold | How many items for a group to be displayed.
| Number | optional |
Grouping link | grouping_link | If set, the Counts cell for each group 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). | Page name | optional |
Broad grouping property | higher_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
| Line | optional |
Broad grouping type | higher_grouping_type | A special type for some fancier display. Currently, the only valid value is an ISO 3166-1 alpha-3 (three letter) country code such as 'USA' or 'GBR'. | Line | optional |
Ungrouped stats | stats_for_no_group | Whether to add a line for all the items that do not have a group (i.e. for which the grouping property is not set).
| Boolean | optional |
Dashboard page name | link | Name of the dashboard page, including namespace, formatted for use as a MediaWiki URL parameter (URL-encoded with spaces replaced by underscores)
| Page name | optional |
External links
[edit]The above documentation is transcluded from Template:Property dashboard/doc (edit | history). Editors can experiment in this template's sandbox (edit | diff) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |