Difference between revisions of "Template:Property"

From Wikispooks
Jump to navigation Jump to search
m (reformat)
m (trim)
Line 21: Line 21:
 
*{{BLUE|Subject:     }} {{#if: {{{domain|}}}|{{{domain|}}}|{{RED|Error: Unspecified {{t|domain}} parameter!}} }}
 
*{{BLUE|Subject:     }} {{#if: {{{domain|}}}|{{{domain|}}}|{{RED|Error: Unspecified {{t|domain}} parameter!}} }}
 
*{{BLUE|Predicate: }} {{PAGENAME}}
 
*{{BLUE|Predicate: }} {{PAGENAME}}
*{{BLUE|Object:       }} {{#if: {{{range|}}}|{{{range|}}}|{{RED|Error: Unspecified {{t|range}} parameter!}} }} ({{#if: {{{type|}}}|(type [[Has type::{{{type|}}}]])|{{RED|Error: Unspecified {{t|type}} parameter!}} }})
+
*{{BLUE|Object:       }} {{#if: {{{range|}}}|{{{range|}}}|{{RED|Error: Unspecified {{t|range}} parameter!}} }} {{#if: {{{type|}}}|(type [[Has type::{{{type|}}}]])|{{RED|Error: Unspecified {{t|type}} parameter!}} }}
 
|}
 
|}
  
 
[[Category:WikiSpooks Templates]]
 
[[Category:WikiSpooks Templates]]

Revision as of 18:49, 16 December 2013

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

|comment = a description of the subject resource
|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 '
RDF Logic:
  • Subject:      Error: Unspecified domain parameter!
  • Predicate:  Property
  • Object:        Error: Unspecified range parameter! Error: Unspecified type parameter!