Template:Statement/sandbox
This is the template sandbox page for Template:Statement (diff). See also the companion subpage for test cases. |
Uses Lua: |
This template uses TemplateStyles: |
Usage
editThe {{Statement}}
template is used to generate a linked and localized (item-)property-value(-qualifier-qualifiervalue) sequence.
- parameter is the subject of the statement (and may be omitted)
- parameter is the predicate of the statement
- parameter is the object of the statement
All further parameters are interpreted as qualifiers in pairs, so e.g. #4 and #5 are one qualifier, #6 and #7 are another one, etc.
For things (subjects or objects) the "Q" prefix may be omitted. For predicates the "P" prefix may be omitted as well.
Lexemes may be specified with the "L" prefix.
Syntax
edit{{Statement|<item Qid>|<property>|<value>|<qualif1>|<value1>|<qualif2>|<value2>|<qualif3>|<value3>}}
- 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)
{{Statement|Q255|P40|{{novalue}}}}
gives Ludwig van Beethoven (Q255)child (P40)no value
{{Statement|Q21121474|P6254|L2768}}
gives the (Q21121474)subject lexeme (P6254)the (L2768)
Comparisons with Template:Claim
editSimple statement:
|
Statement with a string value:
|
Multiple property values:
|
Qualifiers:
|
See also
editTemplate | Shorthand | Example |
---|---|---|
{{Autodescription}} |
{{A}} |
totality consisting of space, time, matter and energy |
{{Data}} |
||
{{EntitySchema}} |
{{E}} |
|
{{Label}} |
Douglas Adams | |
{{LinkedLabel}} |
Douglas Adams | |
{{Label and description}} |
{{LD}} |
Q42 (English science fiction writer and humorist (1952–2001)) |
{{Q}} |
Douglas Adams (Q42) | |
{{Q+}} |
Douglas Adams (Q42): English science fiction writer and humorist (1952–2001) | |
{{Q'}} |
Douglas Adams (Q42) | |
{{Q''}} |
Douglas Adams (Q42) | |
{{Q'''}} |
Douglas Adams (Q42) | |
{{Q!}} |
Douglas Adams (Q42) | |
{{Q*}} |
Douglas Adams (Q42): English science fiction writer and humorist (1952–2001) | |
{{QP}} |
instance of (P31) of Douglas Adams (Q42) | |
{{QT}} |
Douglas Adams (Q42) | |
{{Property}} |
{{P}} |
|
{{P'}} |
||
{{PT'}} |
||
{{P+}} |
||
{{Lexeme}} |
{{L}} |
|
{{Claim}} |
{{C}} |
|
{{Statement}} |
{{St}} |
|
{{Statement+}} |
||
{{EzStatement+}} |
||
(Label in Taraškievica) | {{Qbe-tarask}} |
Дуглас Адамз(42) |
(Label in English) | {{Qen}} |
Q42(42) |
(Label in French) | {{Qfr}} |
Q42(42) |
(Label in Italian) | {{Qit}} |
Q42(42) |
(Label in German) | {{Qde}} |
Q42(42) |
(Label in Polish) | {{Qpl}} |
Q42(42) |
(Label in Russian) | {{Qru}} |
Дуглас Адамс(42) |
(Label in Ukrainian) | {{Quk}} |
Дуглас Адамс(42) |
(Label in Spanish) | {{Qes}} |
Q42(42) |
(Label in Chinese) | {{Qzh}} |
道格拉斯·亞當斯(42) |
(Label in Shahmukhi) | {{Qpnb}} |
ڈگلس ایڈمس(42) |
(Label in Gurmukhi) | {{Qpa}} |
ਡਗਲਸ ਐਡਮਸ(42) |
(Label in Saraiki) | {{Qskr}} |
ڈگلس ایڈمس(42) |
(Label in Swedish) | {{Qsv}} |
Q42(42) |
TemplateData
editThis is the TemplateData documentation for this template used by VisualEditor and other tools
TemplateData for Template:Statement
A template to display a statement
Parameter | Description | Type | Status | |
---|---|---|---|---|
Entity | 1 Entity | The entity to whom the statement applies
| String | required |
Property | 2 Property | The property applying to the statement
| String | required |
Value | 3 | The main value of the statement
| String | required |
Qualifier | 4 Qualifier | A qualifier for the statement
| String | suggested |
Qualifier Value | 5 Qualifier Value | The value of the qualifier statement
| String | suggested |
The above documentation is transcluded from Template:Statement/doc (edit | history). Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) page. Please add categories to the /doc subpage. Subpages of this template. |