Difference between revisions of "Template:Property"

From Wikispooks
Jump to navigation Jump to search
(Has objectClass)
(Use trimlinks)
Line 25: Line 25:
 
{{#if: {{{subPropertyOf|}}}|Sub-property of: [[Subproperty of::{{{subPropertyOf}}}]] <br/>}}{{#ifexpr: {{#ask: [[Subproperty of::{{PAGENAME}}]]|format=count}} >1 |Has subproperties: {{#ask: [[Subproperty of::{{PAGENAME}}]]}} <br/>}}
 
{{#if: {{{subPropertyOf|}}}|Sub-property of: [[Subproperty of::{{{subPropertyOf}}}]] <br/>}}{{#ifexpr: {{#ask: [[Subproperty of::{{PAGENAME}}]]|format=count}} >1 |Has subproperties: {{#ask: [[Subproperty of::{{PAGENAME}}]]}} <br/>}}
 
{{#ifeq: {{{status|}}}|special|This is a [[:Category:Special Properties|special property]]''' [https://semantic-mediawiki.org/wiki/Help:Special_property_{{PAGENAMEE}} <nowiki>[Link]</nowiki>]|Status: [[:Category:{{{status}}} Properties|{{{status}}}]]'''}}<br/>{{#ifeq: {{{display|}}}|Yes|[[image:display property.png|45px]]This is a [[:Category:Display Properties|Display Property]][[Category:Display Properties]] <small>[[Template:{{PAGENAME}}|<nowiki>[Template]</nowiki>]]</small><br/>}}
 
{{#ifeq: {{{status|}}}|special|This is a [[:Category:Special Properties|special property]]''' [https://semantic-mediawiki.org/wiki/Help:Special_property_{{PAGENAMEE}} <nowiki>[Link]</nowiki>]|Status: [[:Category:{{{status}}} Properties|{{{status}}}]]'''}}<br/>{{#ifeq: {{{display|}}}|Yes|[[image:display property.png|45px]]This is a [[:Category:Display Properties|Display Property]][[Category:Display Properties]] <small>[[Template:{{PAGENAME}}|<nowiki>[Template]</nowiki>]]</small><br/>}}
''[[Description::{{{description|}}}{{{comment|}}}]]''<br/>{{#if: {{{importFrom|}}}|'''Imported from:'''[[imported from::{{{importFrom}}}]]<br/>}}
+
''[[Description::{{trimlinks|{{{description|}}}}}{{{comment|}}}| ]]{{{description|}}}''<br/>{{#if: {{{importFrom|}}}|'''Imported from:'''[[imported from::{{{importFrom}}}]]<br/>}}
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-

Revision as of 18:00, 8 September 2014

This template provides a standard format for the descriptions of property pages.
It takes the following arguments:

{{Property
|ON = Yes/No according to whether this is an Official Narrative Property
|display = Yes/No according to whether this is a Display Property
|description = a description of the subject resource (<500 characters of plaintext)
|status = {special, stable, experimental, mooted}
|rdfs = the RDF Export equivalent statement (Special properties only?)
|importFrom = to match this property to one from an imported vocabulary
|subPropertyOf = the parent property of this property (only applies to subproperties)
|domain = description of the domain of the property (which subjects it applies to)
|range = description of the range of the property (which values it can take)
|type = the property type
|note = further note, e.g. for concerns about/problems with this property
}}

SMW.png

Status: [[:Category:{{{status}}} Properties|{{{status}}}]]
'

 
RDF logic:
  • Subject:      Error: Unspecified domain parameter!
  • Predicate:  Property
  • Object:        Error: Unspecified range parameter! Error: Unspecified type parameter!


0 Pages use the property "Property"

Return to property page
Use Expand/Collapse + Up/Dn symbols to sort