Difference between revisions of "Template:Property setting"

From TDWG Terms Wiki
Jump to: navigation, search
m (+show if property is used by a filter)
m (layout filter)
Line 163: Line 163:
 
else-->|<!--
 
else-->|<!--
 
-->}}<!--
 
-->}}<!--
-->{{#ask: [[Covers property::{{PAGENAME}}]]|intro=<tr><th>Used by [[File:Filter.svg|x14px|link=]] filter</th><td> |outro=<nowiki></nowiki> for [[Special:BrowseData|browsing data]]</td></tr>|default=}}<!--
+
-->{{#ask: [[Covers property::{{PAGENAME}}]]|intro=<tr><th>[[File:Filter.svg|x14px|link=]]&nbsp;Filter&nbsp;for</th><td> |outro=<nowiki></nowiki> for [[Special:BrowseData|browsing data]]</td></tr>|default=}}<!--
 
--><tr><!--
 
--><tr><!--
 
   --><td colspan="2" style="border:0px none;background-color:white;"><div><span class="rdflink" style="float:right;">[[Special:ExportRDF/{{FULLPAGENAME}} |RDF feed]]</span></div></td><!--
 
   --><td colspan="2" style="border:0px none;background-color:white;"><div><span class="rdflink" style="float:right;">[[Special:ExportRDF/{{FULLPAGENAME}} |RDF feed]]</span></div></td><!--

Revision as of 19:03, 12 December 2012

[edit] [purge] Template-info.svg Template documentation

Template “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
|has type=         → mandatory (one of SMW Special:Types, "String" is assumend 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")
|imported from=    → optional, (uses imported page by MediaWiki:Smw_import_local-ns-prefix, details see Help SMW import vocabulary)
|annotations=      → optional free text
|show value ranks= → "yes" or "no"
}}

Uses:

Sets:

 


TODO

See talk page.

  • 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
Removed parameter in favour of #ask query
|heading=        → use automatically #ask with skos:inScheme
|label=          → use automatically #ask with skos:prefLabel
|categories=     → can be set manually if needed or TODO set them from #ask 
|subproperty of= → set automatically rdfs:subPropertyOf #asked from corresponding Concept page 

Dependencies: