Template:WikidataChart/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:WikidataChart. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Parameters
|1=
Wikidata ID of the property that is to be displayed graphically in the y-axis|2=
Wikidata ID of a qualifier of the property (1) that is to be used for the x-axis (currently limited to date properties), e.g. (P585)|pageIds=
Wikidata ID of the entries to be displayed|xStart=
filter out all value pairs whose x-value is smaller|xEnd=
filter out all value pairs whose x-value is greater|precision=
if the x-values have incompatible accuracies, e.g. mixed day and month exact specifications, then the desired precision can be specified here. Pairs of values that are more inaccurate are filtered out, e.g. precision = 11 (exact to the day) filters out information that is exact to the month, as these could not be sorted appropriately.- Accuracy values: 7 = century, 8 = decade, 9 = year, 10 = month, 11 = day, 12 = hour, 13 = minute, 14 = second
Parameters starting with chart_
are passed directly to Module:Graph without this prefix and can be used to control the diagram display. For the available parameters, see there.
Example
(P1087) of Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q106807) and Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (Q217198) with (P585) as x-axis limited up to and including 2014 and y-axis maximum value of 3000:
{{WikidataChart|P1087|P585|pageIds=Q106807,Q217198|xEnd=2014|chart_width=500|chart_height=200|chart_legend=Legend|chart_yGrid=1|chart_yAxisMax=3000}}
<graph>Lua error in Module:WikidataChart at line 17: attempt to index field 'wikibase' (a nil value).</graph>
See also
- {{Elo chart}}