Difference between revisions of "Template:Property"

From Wikispooks
Jump to navigation Jump to search
m (add braces and name to make it copy/pasteable)
(Add about system properties)
Line 4: Line 4:
 
{{Property
 
{{Property
 
|{{t|comment}}      = a description of the subject resource
 
|{{t|comment}}      = a description of the subject resource
|{{t|status}}        = {stable, experimental, mooted} <!--
+
|{{t|status}}        = {system, stable, experimental, mooted} <!--
 
|subClassOf    = the subject is a subclass of a class -->
 
|subClassOf    = the subject is a subclass of a class -->
 
|{{t|subPropertyOf}} = the parent property of this property (only applies to subproperties)
 
|{{t|subPropertyOf}} = the parent property of this property (only applies to subproperties)
Line 20: Line 20:
 
|[[image:SMW.png|90px|link=WikiSpooks:Semantic Mediawiki]]
 
|[[image:SMW.png|90px|link=WikiSpooks:Semantic Mediawiki]]
 
| style="text-align:left;" |''{{{comment|}}}''<br/>
 
| style="text-align:left;" |''{{{comment|}}}''<br/>
'''Status: {{{status|}}}'''
+
'''{{#ifeq: {{{status|}}}|system|This is a system property|Status: {{{status|}}}}}'''
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-

Revision as of 17:57, 17 December 2013

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

{{Property
|comment = a description of the subject resource
|status = {system, stable, experimental, mooted}
|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
}}


SMW.png '

Status:

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