Retrieves data from Wikidata, and formats it using Module:Wikidata. Same parameters as those in the p.formatStatements property of the module.

Parameters

edit
  • item (required): Q + numeric ID
  • property (required) P + numeric ID of the property that the claims should have
  • withqualfier = qualifiers that the statement should have
  • withrank = rank of the statement ; 'preferred', 'normal', 'deprecated' or 'valid' (ie normal and preferred). By default = preferred.
  • sourceproperty = items should have this property in the source
  • withsource = the source that should be provided in the statement (if the sourceproperty parameter is not provided, the property used is p248)
  • excludespecial = set to true if you do not want to get "novalue" and "somevalue".
  • numval = if you want to set a maximum number of values to be returned
  • sorttype = set to "chronological" to get the statements in chronological order using the start time (P580), end time (P582) and point in time (P585) qualifiers. Set to "inverrted for chronological order. From a Lua module, you can also define your own sorting criteria.
  • showsource = set to "true" if you want the source of the statement to be displayed.
  • lang for the desired language
  • targetvalue the value should of the statement should be this value (only works for item-type properties)
  • displayformat = the format in which the args should be returned. For example, for a string-type property displayformat = "weblink" returns a formatted weblink.
  • conj = the conjunction separating the statements. For example, conj = <br />, will make a add a new line after each statement.
  • showqualifier = the qualifiers that should be shown along with the mainsnak value

Examples

edit
Code render comment
{{Data|item=Q42|property=p31}} Script error: The function "formatStatementsE" does not exist. (Q42) instance of (P31)
{{Data|item=Q42|property=p31|lang=ja}} Script error: The function "formatStatementsE" does not exist.
{{Data|item=Q42|property=p569}} Script error: The function "formatStatementsE" does not exist. (Q42) date of birth (P569)
{{Data|item=Q42|property=p569|lang=ja}} Script error: The function "formatStatementsE" does not exist.
{{Data|item=Q42|property=p569|displayformat=raw}} Script error: The function "formatStatementsE" does not exist.
{{Data|item=Q12418|property=p186}} Script error: The function "formatStatementsE" does not exist. Mona Lisa (Q12418) made from material (P186)
{{Data|item=Q12418|property=p186|lang=ja}} Script error: The function "formatStatementsE" does not exist.
{{Data|item=Q12418|property=p186|rank=valid}} Script error: The function "formatStatementsE" does not exist. rank = "valid" accepts both "preferred" and "normal" values
{{Data|item=Q12418|property=p186|numval=1}} Script error: The function "formatStatementsE" does not exist.
{{Data|item=Q12418|property=p186|qualifier=p518}} Script error: The function "formatStatementsE" does not exist. Mona Lisa (Q12418) made from material (P186) applies to part (P518) should only display values that have a p518 qualifier
{{Data|item=Q12418|property=p186|showqualifiers==p518}} Script error: The function "formatStatementsE" does not exist. shows the value of the p518 qualifier (if any) in addition to the main value
{{Data|item=Q12418|property=P276|sourceproperty=P854}} Script error: The function "formatStatementsE" does not exist. Mona Lisa (Q12418) location (P276) reference URL (P854)
{{Data|item=Q11879536|property=P460|source=Q1645493}} Script error: The function "formatStatementsE" does not exist. person depicted in Mona Lisa (Q11879536) said to be the same as (P460) Lives of the Most Excellent Painters, Sculptors, and Architects (Q1645493)
{{Data|item=Q11879536|property=P460|source=Q1645493|showsource=true}} Script error: The function "formatStatementsE" does not exist.
{{Data|item=Q153|property=P231|showsource=true}} Script error: The function "formatStatementsE" does not exist. ethanol (Q153) CAS Registry Number (P231)
{{Data|item=Q205309|property=P793|sorttype=inverted}} Script error: The function "formatStatementsE" does not exist. Arsenal Stadium (Q205309) significant event (P793)
{{Data|item=Q205309|property=P793|sorttype=chronological|conjtype=<br />|withdate=true}} Script error: The function "formatStatementsE" does not exist.
{{Data|item=Q205309|property=P793|targetvalue=331483|withdate=true}} Script error: The function "formatStatementsE" does not exist.
{{Data|item=Q76|property=P856}} Script error: The function "formatStatementsE" does not exist. Barack Obama (Q76) official website (P856)
{{Data|item=Q76|property=P856|displayformat=weblink}} Script error: The function "formatStatementsE" does not exist.

References

edit


See also

edit

Template:Entity description templates