Template:List of properties/Row: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Ivan Shmakov (talk | contribs) y/<>/⟨⟩/ for (arguably) better presentation. |
try using Module:LoP row. should allow more rows to be displayed without bringing up errors |
||
Line 1: | Line 1: | ||
⚫ | |||
<includeonly> |
|||
<tr> |
|||
<td scope="row" > {{#ifeq:{{NAMESPACE}}|Property| {{label|Property:P{{{id}}}}} | [[Property:P{{{id}}}|{{label|Property:P{{{id}}}}}]] }}</td> |
|||
<td> {{#ifeq:{{NAMESPACE}}|Property| {{{id}}} | [[Property:P{{{id}}}|{{{id}}}]] }}</td> |
|||
<td> {{datatype|Property:P{{{id}}}}}</td><!-- |
|||
| {{{qualifier|}}}--> |
|||
<td> {{#if: {{{description|}}} | {{{description|}}} | {{autodescription|Property:P{{{id}}}}} }} </td> |
|||
<td> {{#if: {{{example-subject|}}} | ⟨[[{{{example-subject}}}|{{label|{{{example-subject}}}}}]]⟩ {{#if: {{{example-property|}}} | ''[[Property:{{{example-property}}}|{{label|{{{example-property}}}}}]]'' {{#if: {{{example-object|}}} | ⟨{{#switch:{{datatype/preprocess|Property:{{{example-property}}}}} |
|||
|commonsMedia=[[commons:File:{{{example-object|}}}|{{{example-object|}}}]] |
|||
|wikibase-item=[[{{{example-object|}}}|{{label|{{{example-object|}}}}}]] |
|||
|#default={{{example-object|}}} |
|||
}}⟩<br/> |
|||
<small>''{{label|Property:P{{{id}}}}}'' {{#if: {{{example-predicate|}}} | ⟨{{#switch:{{datatype/preprocess|Property:P{{{id}}}}} |
|||
|commonsMedia=[[commons:File:{{{example-predicate|}}}|{{{example-predicate|}}}]] |
|||
|wikibase-item=[[{{{example-predicate|}}}|{{label|{{{example-predicate|}}}}}]] |
|||
|#default={{{example-predicate|}}} |
|||
}}⟩ | }}</small> }} | ''{{label|Property:P{{{id}}}}}'' {{#if: {{{example-object|}}} | ⟨{{#switch:{{datatype/preprocess|Property:P{{{id}}}}} |
|||
|commonsMedia=[[commons:File:{{{example-object|}}}|{{{example-object|}}}]] |
|||
|wikibase-item=[[{{{example-object|}}}|{{label|{{{example-object|}}}}}]] |
|||
|#default={{{example-object|}}} |
|||
}}⟩ }} }} }}</td> |
|||
<td> {{#if: {{{pair|}}} | [[Property:P{{{pair|}}}|{{{pair}}}]] | – }} {{#if: {{{pair2|}}} | or [[Property:P{{{pair2|}}}|{{{pair2}}}]] }}</td> |
|||
⚫ |
Revision as of 09:35, 18 February 2014
![]() | Uses Lua: |
Usage
Done to be used in Wikidata:List of properties with Template:List of properties/Header and Template:List of properties/Footer
It can also be used on Wikidata:Property proposal for series of Infobox parameters.
Examples
For properties
{{List of properties/Header}}
{{List of properties/Row
| id = 22
| description = the subject has the object as their father
| example-subject = Q9682
| example-object = Q280856
| pair = 40 }}
{{List of properties/Footer}}
Title | ID | Data type | Description | Examples | Inverse |
---|---|---|---|---|---|
father | P22 | Item | father: the subject has the object as their father | Elizabeth II <father> George VI | child |
For a property with a qualifier
{{List of properties/Header}}
{{List of properties/Row
| id = 22
| qualifier = 143
| example-subject = Q9682
| example-object = Q280856
| example-predicate = Q328
}}
{{List of properties/Footer}}
Title | ID | Data type | Description | Examples | Inverse |
---|---|---|---|---|---|
father with qualifier imported from Wikimedia project | P22 | Item | father: male parent of the subject. For stepfather, use "stepparent" (P3448) | Elizabeth II <father> George VI <imported from Wikimedia project> English Wikipedia | child |
For qualifiers
{{List of properties/Header}}
{{List of properties/Row
| id = 143
| description = source of this claim's value
| example-subject = Q9682
| example-property = P22
| example-object = Q280856
| example-predicate = Q328
}}
{{List of properties/Footer}}
Title | ID | Data type | Description | Examples | Inverse |
---|---|---|---|---|---|
imported from Wikimedia project | P143 | Item | Wikimedia Foundation project: source of this claim's value | Elizabeth II <father> George VI <imported from Wikimedia project> English Wikipedia | - |
For qualifiers in the context of a specific property
{{List of properties/Header}}
{{List of properties/Row
| id = 143
| contextualized-qualifier = true
| description = source of this claim's value
| example-subject = Q9682
| example-property = P22
| example-object = Q280856
| example-predicate = Q328
}}
{{List of properties/Footer}}
Title | ID | Data type | Description | Examples | Inverse |
---|---|---|---|---|---|
father with qualifier imported from Wikimedia project | P143 | Item | Wikimedia Foundation project: source of this claim's value | Elizabeth II <father> George VI <imported from Wikimedia project> English Wikipedia | - |
Copy and Paste
Empty:
{{List of properties/Row
| id =
| type = item/string
| example-subject =
| example-object =
}}
With title, description, property, predicate and pair:
{{List of properties/Row
| id =
| title =
| type = item/string
| description =
| example-subject =
| example-property =
| example-object =
| example-predicate =
| pair =
| pair2 =
}}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Property ID | id | no description | Number | required |
Qualifier Property Id | qualifier | no description | Unknown | optional |
title | title | no description | Unknown | optional |
Description | description | Description text | String | optional |
comment | comment | no description | Unknown | optional |
type | type | no description | Unknown | optional |
example-subject | example-subject | no description | Unknown | optional |
example-property | example-property | no description | Unknown | optional |
example-object | example-object | no description | Unknown | optional |
example-predicate | example-predicate | no description | Unknown | optional |
pair | pair | no description | Unknown | optional |
pair2 | pair2 | no description | Unknown | optional |
contextualized-qualifier | contextualized-qualifier | no description | Boolean | optional |
The above documentation is transcluded from Template:List of properties/Row/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. |