Template:Statement/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Usage

[edit]

The {{Statement}} template is used to generate a linked and localized (entity-)property-value(-qualifier-qualifiervalue) sequence. Parameter 1 and the parameters 4 and 5 together are optional. IDs (and sequences of numbers) will be linked automatically. The "Q" prefix is optional and for parameters 2 and 4 the "P" prefix is optional. For example,

{{Statement||P31|Q5}} gives instance of (P31) human (Q5)
{{Statement|Q42|P31|Q5}} gives Douglas Adams (Q42) instance of (P31) human (Q5)
{{Statement|42|31|5}} gives Douglas Adams (Q42) instance of (P31) human (Q5), too
{{Statement|42|26|14623681|580|25 November 1991}} gives Douglas Adams (Q42) spouse (P26) Jane Belson (Q14623681) / start time (P580) 25 November 1991
{{statement|P3713|P2302|Q21510864|P2306|P1855}} gives category for value not in Wikidata (P3713) property constraint (P2302) value-requires-statement constraint (Q21510864) / property (P2306) Wikidata property example (P1855)

See also

[edit]


TemplateData

[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools

TemplateData for Template:Statement

A template to display a statement

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Entity1 Entity

The entity to whom the statement applies

Example
Q42
Stringrequired
Property2 Property

The property applying to the statement

Example
P31
Stringrequired
Statement3 Statement

The statement applying to the property

Example
Q5
Stringrequired
Qualifier4 Qualifier

A qualifier for the statement

Example
P580
Stringsuggested
Qualifier Value5 Qualifier Value

The value of the qualifier statement

Example
25 November 1991
Stringsuggested