Difference between revisions of "Form:Property setting"

From OpenMedia
Jump to: navigation, search
m
m (less bold)
 
Line 17: Line 17:
 
<table class="formtable"><!--  
 
<table class="formtable"><!--  
 
  --><tr><!--
 
  --><tr><!--
   --><th>Label:</th><td>{{{field|label|input type=text}}}</td><!--
+
   --><td>Label:</td><td>{{{field|label|input type=text}}}</td><!--
 
--></tr><!--  
 
--></tr><!--  
 
  --><tr><!--
 
  --><tr><!--
 
   Do not put this field at the last form position, this uncovers a bug: then no values can be saved nor read from the template and the form functionality gets broken
 
   Do not put this field at the last form position, this uncovers a bug: then no values can be saved nor read from the template and the form functionality gets broken
 
   it puts values to hidden and states a unhandling of this field: <input type="hidden" value="blah" name="_unhandled_Property setting_annotations" /> *AND* puts an empty <textarea name="annotations"></textarea>
 
   it puts values to hidden and states a unhandling of this field: <input type="hidden" value="blah" name="_unhandled_Property setting_annotations" /> *AND* puts an empty <textarea name="annotations"></textarea>
   --><th>Annotations:</th><td>{{{field|annotations|autogrow|input type=textarea}}}</td><!--
+
   --><td>Annotations:</td><td>{{{field|annotations|autogrow|input type=textarea}}}</td><!--
 
--></tr><!--  
 
--></tr><!--  
 
  --><tr><!--
 
  --><tr><!--
 
   --><th>Has type:</th><!--  
 
   --><th>Has type:</th><!--  
   --><td>{{{field|has type|input type= dropdown| values=Page, String, Text, Code, Boolean, Number, Geographic coordinates, Temperature, Date, Email, URL, Annotation URI, Telephone number, Record, Quantity, Special property|default=Text|show on select=String=>id_string_warning;Record=>id_record_settings;Quantity=>id_quantity_settings}}} {{#if: {{#pos: {{PAGENAME}}|:}}| <span class="comment-gray">Check also correct Type setting of imported “{{PAGENAME}}” on [[MediaWiki:Smw_import_{{#ask: [[{{FULLPAGENAME}}]]|?Vann:preferredNamespacePrefix#=|default={{#explode: {{PAGENAME}}|:|0}}|link=none|mainlabel=-}}]]</span>}}
+
   --><td>{{{field|has type|input type= dropdown| values=Page, String, Text, Code, Boolean, Number, Geographic coordinates, Temperature, Date, Email, URL, Annotation URI, Telephone number, Record, Quantity, Special property|default=Text|show on select=String=>id_string_warning;Record=>id_record_settings;Quantity=>id_quantity_settings;|mandatory}}} {{#if: {{#pos: {{PAGENAME}}|:}}| <span class="comment-gray">Check also correct Type setting of imported “{{PAGENAME}}” on [[MediaWiki:Smw_import_{{#ask: [[{{FULLPAGENAME}}]]|?Vann:preferredNamespacePrefix#=|default={{#explode: {{PAGENAME}}|:|0}}|link=none|mainlabel=-}}]]</span>}}
 
<div id="id_string_warning" class="warning">has type: string is DEPRECATED since SMW +1.8. Please set it to text.</div>
 
<div id="id_string_warning" class="warning">has type: string is DEPRECATED since SMW +1.8. Please set it to text.</div>
 
<div id="id_record_settings">{{{field|has fields|list| delimiter=;|size=100|autocomplete on namespace=Property|placeholder=What fields? Semicolon (;) separated list of properties}}}</div>
 
<div id="id_record_settings">{{{field|has fields|list| delimiter=;|size=100|autocomplete on namespace=Property|placeholder=What fields? Semicolon (;) separated list of properties}}}</div>
Line 35: Line 35:
 
--></tr><!--  
 
--></tr><!--  
 
  --><tr><!--
 
  --><tr><!--
   --><th>Allows values {{#info: message=allowed (categorical) data values for the property given in a semicolon separated list. Can be complex e.g.: “1; 2; 3;” or more complex “0=unranked; 1=bad; 2=OK; 3=good;”
+
   --><td>Allows values {{#info: message=allowed (categorical) data values for the property given in a semicolon separated list. Can be complex e.g.: “1; 2; 3;” or more complex “0=unranked; 1=bad; 2=OK; 3=good;”
   or more complex with definitions: “0=unranked<span style="background-color:yellow;">!!</span>(long description) means this and that; 1=bad; 2=OK; 3=good;”}}</th><td>{{{field|allows values|input type=textarea|rows=2|autogrow}}} </td><!--
+
   or more complex with definitions: “0=unranked<span style="background-color:yellow;">!!</span>(long description) means this and that; 1=bad; 2=OK; 3=good;”}}</td><td>{{{field|allows values|input type=textarea|rows=2|autogrow}}} </td><!--
 
--></tr><!--  
 
--></tr><!--  
 
  --><tr><!--
 
  --><tr><!--
   --><th>Imported from:</th><td>{{{field|imported from|placeholder=original identifier e.g. “ac:caption”}}} {{#info: message=Corresponding {{abbr|SMW}}-import, e.g. “ac:caption”}}</td><!--
+
   --><td>Imported from:</td><td>{{{field|imported from|placeholder=original identifier e.g. “ac:caption”}}} {{#info: message=Corresponding {{abbr|SMW}}-import, e.g. “ac:caption”}}</td><!--
 
--></tr><!--  
 
--></tr><!--  
 
  --><tr><!--
 
  --><tr><!--
   --><th>Subproperty of:</th><td><!--
+
   --><td>Subproperty of:</td><td><!--
 
   Note {{#vardefine: …}} did not work (2012-10-12)
 
   Note {{#vardefine: …}} did not work (2012-10-12)
 
-->{{#if: {{#ask: [[{{PAGENAME}}]] [[rdfs:subPropertyOf::+]]|?rdfs:subPropertyOf#=|mainlabel=-|format=list}}<!--
 
-->{{#if: {{#ask: [[{{PAGENAME}}]] [[rdfs:subPropertyOf::+]]|?rdfs:subPropertyOf#=|mainlabel=-|format=list}}<!--
Line 53: Line 53:
 
{{{end template}}}
 
{{{end template}}}
  
'''Free text below the template:'''
+
''Free text below the template:''
  
 
{{{standard input|free text|rows=10|class=textarea-fullwidth|editor}}}
 
{{{standard input|free text|rows=10|class=textarea-fullwidth|editor}}}

Latest revision as of 13:24, 31 August 2016

This is the “Property setting” form can be used to fill template: Property setting. To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.

 



Is defined globally for all properties in the project name space “OpenMedia“ (see OpenMedia:Property)