Difference between revisions of "Template:Property"

From Wikispooks
Jump to navigation Jump to search
(support system)
(Note parameter)
Line 13: Line 13:
 
|{{t|seeAlso}}      = further information about the subject resource
 
|{{t|seeAlso}}      = further information about the subject resource
 
|{{t|isDefinedBy}}  = the definition of the subject resource-->
 
|{{t|isDefinedBy}}  = the definition of the subject resource-->
 +
|{{t|note}}          = further note, e.g. for concerns about/problems with this property
 
}}
 
}}
 
</poem>
 
</poem>
Line 26: Line 27:
 
*{{BLUE|Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}} {{#if: {{{domain|}}}|{{{domain|}}}|{{RED|Error: Unspecified {{t|domain}} parameter!}} }}
 
*{{BLUE|Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}} {{#if: {{{domain|}}}|{{{domain|}}}|{{RED|Error: Unspecified {{t|domain}} parameter!}} }}
 
*{{BLUE|Predicate:&nbsp;}} ''{{PAGENAME}}''
 
*{{BLUE|Predicate:&nbsp;}} ''{{PAGENAME}}''
*{{BLUE|Object:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}} {{#if: {{{range|}}}|{{{range|}}}|{{RED|Error: Unspecified {{t|range}} parameter!}} }} {{#if: {{{type|}}}|(type [[Has type::{{{type|}}}]])|{{#ifeq: {{{status|}}}|system||{{RED|Error: Unspecified {{t|type}} parameter!}} }} }}
+
*{{BLUE|Object:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}} {{#if: {{{range|}}}|{{{range|}}}|{{RED|Error: Unspecified {{t|range}} parameter!}} }} {{#if: {{{type|}}}|(type [[Has type::{{{type|}}}]])|{{#ifeq: {{{status|}}}|system||{{RED|Error: Unspecified {{t|type}} parameter!}} }} }}{{#if: {{{note|}}}|<br/>'''Note: ''' {{{note|}}}|
 
|}
 
|}
  
 
[[Category:{{{status|}}} Properties]]
 
[[Category:{{{status|}}} Properties]]

Revision as of 15:50, 19 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
|note = further note, e.g. for concerns about/problems with this property
}}


SMW.png '

Status:

 
RDF Logic:
  • Subject:      Error: Unspecified domain parameter!
  • Predicate:  Property
  • Object:        Error: Unspecified range parameter! Error: Unspecified type parameter!{{#if: |
    Note: |