Template:Property setting
From OpenMedia
[edit]
DocumentationTemplate “Property setting” is used to set just basic property settings (hopefully sometime automatically by SMW-#autoedit).
Usage
Parameter in bold are mandatory, all other are optional:
{{Property setting |label= → optional label |has type= → mandatory (one of SMW Special:Types, "Text" is assumed when no value is given) |has fields= → used when “has type” is “Record” (; separated, e.g.: "property1; property2") |display units= → used when “has type” is “Quantities” (, separated, e.g.: "W, kW") |corresponds to= → used when “has type” is “Quantities” (; separated, e.g.: "1 W, Watt, Watts; 0.001 kW") |allows values= → list for Property:Allows value (; separated, e.g.: “1; 2; 3;” or more complex “0=unranked; 1=bad; 2=OK; 3=good;” or more complex with definitions: “0=unranked!!(long description) means this and that; 1=bad; 2=OK; 3=good;”) |imported from= → optional, (uses imported page by MediaWiki:Smw_import_local-ns-prefix, details see Help SMW import vocabulary) |annotations= → optional free text }}
Uses:
- form: Property setting defined globally for all properties in the project name space “OpenMedia“ (see OpenMedia:Property)
Sets:
- Category: Imported vocabulary (see also talk page)
- Categories depending on optional parameter “categories”
- Property: rdfs:label
TODO
- add parameter (to have multiple settings possible)?
Technical documentation
Shall the parameter be removed? |imported from → it is set automatically when a page "MediaWiki:Smw_import…" exists
Dependencies
Properties:
- property: rdfs:label (MediaWiki:Smw import rdfs), property:skos:prefLabel, property:skos:definition
- property:vann:preferredNamespacePrefix (MediaWiki:Smw import vann)
- property:Value definitions of property for storing complex settings of allowed values and it's labels, definitions
Forms
Templates
- Template:abbr, Template:Concept to imported URI, Template:Hidden
- Template:Fix set internal property prefix
Extensions
CSS
/* inline definitions */
.definition-inline dt { float:left; padding-right:0.5em; margin-bottom: 0px}
.definition-inline dd { margin-bottom: 0px}
table.vertical-align-top td { vertical-align:top; }