Difference between revisions of "Template:Property"

From Openresearch
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the Property Template. It is used for setting Meta-Information on properties.
+
This is the template {{Link|target=Template:Property|title=}}.
  
As of 2020-12-11 this is just a dummy template with no functionality yet.
+
see also
= Usage =
+
* [[Help:Property]]
 +
* [[List of Properties]]
 +
* [[Concept:Property]]
 +
* [[:Category:Property]]
 +
* [[:Template:Property]]
 +
* [[:Form:Property]]
  
== Example ==
+
=== Usage ===
<pre>
+
<nowiki>
 
{{Property
 
{{Property
|name=since
+
|name=Some name
|label=since
+
|label=Some label
|documentation=when was the extension first installed
+
|type=Some type
|type=Special:Types/Date
+
|index=Some index
|index=4
+
|sortPos=Some sortPos
|sortPos=
+
|primary key=Some primary key
|primaryKey=false
+
|mandatory=Some mandatory
|mandatory=false
+
|namespace=Some namespace
|namespace=
+
|size=Some size
|size=
+
|uploadable=Some uploadable
|uploadable=false
+
|default=Some default
|defaultValue=
+
|inputType=Some inputType
|inputType=datepicker
+
|allowedValues=Some allowedValues
|allowedValues=
+
|documentation=Some documentation
|values_from=
+
|values from=Some values from
|showInGrid=true
+
|showInGrid=Some showInGrid
|isLink=false
+
|isLink=Some isLink
|topic=Concept:Extension
+
|allow nulls?=Some allow nulls?
|storemode=property
+
|has name=Some has name
 +
|topic=Some topic
 
}}
 
}}
</pre>
+
</nowiki>
 +
{{Property
 +
|name=Some name
 +
|label=Some label
 +
|type=Some type
 +
|index=Some index
 +
|sortPos=Some sortPos
 +
|primary key=Some primary key
 +
|mandatory=Some mandatory
 +
|namespace=Some namespace
 +
|size=Some size
 +
|uploadable=Some uploadable
 +
|default=Some default
 +
|inputType=Some inputType
 +
|allowedValues=Some allowedValues
 +
|documentation=Some documentation
 +
|values from=Some values from
 +
|showInGrid=Some showInGrid
 +
|isLink=Some isLink
 +
|allow nulls?=Some allow nulls?
 +
|has name=Some has name
 +
|topic=Some topic
 +
}}
 +
 
 
[[Category:Template]]
 
[[Category:Template]]
</noinclude><includeonly></includeonly>
+
</noinclude>
 +
<includeonly>
 +
{{#set:isA=Property
 +
|name={{{name|}}}
 +
|label={{{label|}}}
 +
|type={{{type|}}}
 +
|index={{{index|}}}
 +
|sortPos={{{sortPos|}}}
 +
|primaryKey={{{primary key|}}}
 +
|mandatory={{{mandatory|}}}
 +
|namespace={{{namespace|}}}
 +
|size={{{size|}}}
 +
|uploadable={{{uploadable|}}}
 +
|defaultValue={{{default|}}}
 +
|inputType={{{inputType|}}}
 +
|allowedValues={{{allowedValues|}}}
 +
|documentation={{{documentation|}}}
 +
|values from={{{values from|}}}
 +
|showInGrid={{{showInGrid|}}}
 +
|isLink={{{isLink|}}}
 +
|nullable={{{allow nulls?|}}}
 +
|has name={{{has name|}}}
 +
|topic={{{topic|}}}
 +
}}
 +
 
 +
{| class='wikitable'
 +
! colspan=2 |  {{UtfIcon|utf=✎|size=24}}{{Link|target=Special:FormEdit/{{FULLPAGENAME}}|title=edit}}  Property
 +
|-
 +
!name
 +
| {{#if:{{{name|}}}|{{{name|}}}|}}
 +
|-
 +
!label
 +
| {{#if:{{{label|}}}|{{{label|}}}|}}
 +
|-
 +
!type
 +
| {{#if:{{{type|}}}|{{{type|}}}|}}
 +
|-
 +
!index
 +
| {{#if:{{{index|}}}|{{{index|}}}|}}
 +
|-
 +
!sortPos
 +
| {{#if:{{{sortPos|}}}|{{{sortPos|}}}|}}
 +
|-
 +
!primaryKey
 +
| {{#if:{{{primary key|}}}|{{{primary key|}}}|}}
 +
|-
 +
!mandatory
 +
| {{#if:{{{mandatory|}}}|{{{mandatory|}}}|}}
 +
|-
 +
!namespace
 +
| {{#if:{{{namespace|}}}|{{{namespace|}}}|}}
 +
|-
 +
!size
 +
| {{#if:{{{size|}}}|{{{size|}}}|}}
 +
|-
 +
!uploadable
 +
| {{#if:{{{uploadable|}}}|{{{uploadable|}}}|}}
 +
|-
 +
!defaultValue
 +
| {{#if:{{{default|}}}|{{{default|}}}|}}
 +
|-
 +
!inputType
 +
| {{#if:{{{inputType|}}}|{{{inputType|}}}|}}
 +
|-
 +
!allowedValues
 +
| {{#if:{{{allowedValues|}}}|{{{allowedValues|}}}|}}
 +
|-
 +
!documentation
 +
| {{#if:{{{documentation|}}}|{{{documentation|}}}|}}
 +
|-
 +
!values_from
 +
| {{#if:{{{values from|}}}|{{{values from|}}}|}}
 +
|-
 +
!showInGrid
 +
| {{#if:{{{showInGrid|}}}|{{{showInGrid|}}}|}}
 +
|-
 +
!isLink
 +
| {{#if:{{{isLink|}}}|{{{isLink|}}}|}}
 +
|-
 +
!nullable
 +
| {{#if:{{{allow nulls?|}}}|{{{allow nulls?|}}}|}}
 +
|-
 +
!has name
 +
| {{#if:{{{has name|}}}|{{{has name|}}}|}}
 +
|-
 +
!topic
 +
| {{#if:{{{topic|}}}|{{{topic|}}}|}}
 +
|-
 +
|}
 +
 
 +
[[Category:Property]]{{#default_form:Property}}</includeonly>

Revision as of 09:52, 31 March 2021

This is the template Template:Property.

see also

Usage

{{Property |name=Some name |label=Some label |type=Some type |index=Some index |sortPos=Some sortPos |primary key=Some primary key |mandatory=Some mandatory |namespace=Some namespace |size=Some size |uploadable=Some uploadable |default=Some default |inputType=Some inputType |allowedValues=Some allowedValues |documentation=Some documentation |values from=Some values from |showInGrid=Some showInGrid |isLink=Some isLink |allow nulls?=Some allow nulls? |has name=Some has name |topic=Some topic }}


  • "Some primary key" is not recognized as a Boolean (true/false) value.
  • "Some mandatory" is not recognized as a Boolean (true/false) value.
  • "Some size" is not a number.
  • "Some index" is not a number.
  • "Some uploadable" is not recognized as a Boolean (true/false) value.
  • "Some sortPos" is not a number.
  • "Some showInGrid" is not recognized as a Boolean (true/false) value.
  • "Some isLink" is not recognized as a Boolean (true/false) value.
  • "Some allow nulls?" is not recognized as a Boolean (true/false) value.
Property
name Some name
label Some label
documentation Some documentation
type Some type
primary key Some primary key
mandatory Some mandatory
namespace Some namespace
size Some size
index Some index
uploadable Some uploadable
default Some default
sortPos Some sortPos
inputType Some inputType
allowedValues Some allowedValues
values from Some values from
showInGrid Some showInGrid
isLink Some isLink
allow nulls? Some allow nulls?
topic Some topic