Template:List of properties/Row: Difference between revisions

From Wikidata
Jump to navigation Jump to search
Content deleted Content added
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>{{#invoke:LoP row|main}}</includeonly><noinclude>{{documentation}}</noinclude>
<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>
</tr></includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 09:35, 18 February 2014

Documentation icon Template documentation[view · edit · history · purge ]

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
fatherP22Itemfather: the subject has the object as their fatherElizabeth II <father> George VIchild

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 projectP22Itemfather: 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 projectP143ItemWikimedia Foundation project: source of this claim's valueElizabeth 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 projectP143ItemWikimedia Foundation project: source of this claim's valueElizabeth 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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Property IDid

no description

Numberrequired
Qualifier Property Idqualifier

no description

Unknownoptional
titletitle

no description

Unknownoptional
Descriptiondescription

Description text

Stringoptional
commentcomment

no description

Unknownoptional
typetype

no description

Unknownoptional
example-subjectexample-subject

no description

Unknownoptional
example-propertyexample-property

no description

Unknownoptional
example-objectexample-object

no description

Unknownoptional
example-predicateexample-predicate

no description

Unknownoptional
pairpair

no description

Unknownoptional
pair2pair2

no description

Unknownoptional
contextualized-qualifiercontextualized-qualifier

no description

Booleanoptional