Difference between revisions of "Template:Property"
Jump to navigation
Jump to search
Tim Holzheim (talk | contribs) (Blanked the page) Tag: Blanking |
Tim Holzheim (talk | contribs) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <noinclude> | ||
+ | <!-- | ||
+ | -- Copyright (C) 2015-2020 BITPlan GmbH | ||
+ | -- | ||
+ | -- Pater-Delp-Str. -- 1 | ||
+ | -- D-47877 -- Willich-Schiefbahn | ||
+ | -- | ||
+ | -- http://www.bitplan.com | ||
+ | -- | ||
+ | -- | ||
+ | --> | ||
+ | This is the template {{Link|target=Template:Property|title=Property}}. | ||
+ | It belongs to the concept/topic {{Link|target=:Concept:Property}}<br> | ||
+ | You may find examples for the use of this template via the {{Link|target=List of Properties}}. | ||
+ | === Usage === | ||
+ | ==== storemode subobject ==== | ||
+ | <pre>{{Property | ||
+ | |name= | ||
+ | |label= | ||
+ | |type= | ||
+ | |index= | ||
+ | |sortPos= | ||
+ | |primaryKey= | ||
+ | |mandatory= | ||
+ | |namespace= | ||
+ | |size= | ||
+ | |uploadable= | ||
+ | |defaultValue= | ||
+ | |inputType= | ||
+ | |allowedValues= | ||
+ | |documentation= | ||
+ | |values_from= | ||
+ | |showInGrid= | ||
+ | |isLink= | ||
+ | |nullable= | ||
+ | |topic= | ||
+ | |placeholder= | ||
+ | |storemode=subobject | ||
+ | }} | ||
+ | </pre> | ||
+ | ==== storemode property ==== | ||
+ | <pre>{{Property | ||
+ | |name= | ||
+ | |label= | ||
+ | |type= | ||
+ | |index= | ||
+ | |sortPos= | ||
+ | |primaryKey= | ||
+ | |mandatory= | ||
+ | |namespace= | ||
+ | |size= | ||
+ | |uploadable= | ||
+ | |defaultValue= | ||
+ | |inputType= | ||
+ | |allowedValues= | ||
+ | |documentation= | ||
+ | |values_from= | ||
+ | |showInGrid= | ||
+ | |isLink= | ||
+ | |nullable= | ||
+ | |topic= | ||
+ | |placeholder= | ||
+ | |storemode=property | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== storemode none ==== | ||
+ | <pre>{{Property | ||
+ | |name= | ||
+ | |label= | ||
+ | |type= | ||
+ | |index= | ||
+ | |sortPos= | ||
+ | |primaryKey= | ||
+ | |mandatory= | ||
+ | |namespace= | ||
+ | |size= | ||
+ | |uploadable= | ||
+ | |defaultValue= | ||
+ | |inputType= | ||
+ | |allowedValues= | ||
+ | |documentation= | ||
+ | |values_from= | ||
+ | |showInGrid= | ||
+ | |isLink= | ||
+ | |nullable= | ||
+ | |topic= | ||
+ | |placeholder= | ||
+ | |storemode=none | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | ==== viewmode tableheader ==== | ||
+ | <pre>{{Property | ||
+ | |name= | ||
+ | |label= | ||
+ | |type= | ||
+ | |index= | ||
+ | |sortPos= | ||
+ | |primaryKey= | ||
+ | |mandatory= | ||
+ | |namespace= | ||
+ | |size= | ||
+ | |uploadable= | ||
+ | |defaultValue= | ||
+ | |inputType= | ||
+ | |allowedValues= | ||
+ | |documentation= | ||
+ | |values_from= | ||
+ | |showInGrid= | ||
+ | |isLink= | ||
+ | |nullable= | ||
+ | |topic= | ||
+ | |placeholder= | ||
+ | |viewmode=tableheader | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== viewmode tablerow ==== | ||
+ | <pre>{{Property | ||
+ | |name= | ||
+ | |label= | ||
+ | |type= | ||
+ | |index= | ||
+ | |sortPos= | ||
+ | |primaryKey= | ||
+ | |mandatory= | ||
+ | |namespace= | ||
+ | |size= | ||
+ | |uploadable= | ||
+ | |defaultValue= | ||
+ | |inputType= | ||
+ | |allowedValues= | ||
+ | |documentation= | ||
+ | |values_from= | ||
+ | |showInGrid= | ||
+ | |isLink= | ||
+ | |nullable= | ||
+ | |topic= | ||
+ | |placeholder= | ||
+ | |viewmode=tablerow | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== viewmode tablefooter ==== | ||
+ | <pre>{{Property | ||
+ | |name= | ||
+ | |label= | ||
+ | |type= | ||
+ | |index= | ||
+ | |sortPos= | ||
+ | |primaryKey= | ||
+ | |mandatory= | ||
+ | |namespace= | ||
+ | |size= | ||
+ | |uploadable= | ||
+ | |defaultValue= | ||
+ | |inputType= | ||
+ | |allowedValues= | ||
+ | |documentation= | ||
+ | |values_from= | ||
+ | |showInGrid= | ||
+ | |isLink= | ||
+ | |nullable= | ||
+ | |topic= | ||
+ | |placeholder= | ||
+ | |viewmode=tablefooter | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== viewmode labelfield ==== | ||
+ | <pre>{{Property | ||
+ | |name= | ||
+ | |label= | ||
+ | |type= | ||
+ | |index= | ||
+ | |sortPos= | ||
+ | |primaryKey= | ||
+ | |mandatory= | ||
+ | |namespace= | ||
+ | |size= | ||
+ | |uploadable= | ||
+ | |defaultValue= | ||
+ | |inputType= | ||
+ | |allowedValues= | ||
+ | |documentation= | ||
+ | |values_from= | ||
+ | |showInGrid= | ||
+ | |isLink= | ||
+ | |nullable= | ||
+ | |topic= | ||
+ | |placeholder= | ||
+ | |viewmode=labelfield | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | === Source (pretty printed) === | ||
+ | <source lang='html4strict'> | ||
+ | {{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Property<br>|}} | ||
+ | {{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}} | ||
+ | {{#if:{{{?label|}}}|"{{{?label}}}" is label of it <br>|}} | ||
+ | {{#if:{{{?type|}}}|"{{{?type}}}" is type of it <br>|}} | ||
+ | {{#if:{{{?index|}}}|"{{{?index}}}" is index of it <br>|}} | ||
+ | {{#if:{{{?sortPos|}}}|"{{{?sortPos}}}" is sortPos of it <br>|}} | ||
+ | {{#if:{{{?primaryKey|}}}|"{{{?primaryKey}}}" is primaryKey of it <br>|}} | ||
+ | {{#if:{{{?mandatory|}}}|"{{{?mandatory}}}" is mandatory of it <br>|}} | ||
+ | {{#if:{{{?namespace|}}}|"{{{?namespace}}}" is namespace of it <br>|}} | ||
+ | {{#if:{{{?size|}}}|"{{{?size}}}" is size of it <br>|}} | ||
+ | {{#if:{{{?uploadable|}}}|"{{{?uploadable}}}" is uploadable of it <br>|}} | ||
+ | {{#if:{{{?defaultValue|}}}|"{{{?defaultValue}}}" is defaultValue of it <br>|}} | ||
+ | {{#if:{{{?inputType|}}}|"{{{?inputType}}}" is inputType of it <br>|}} | ||
+ | {{#if:{{{?allowedValues|}}}|"{{{?allowedValues}}}" is allowedValues of it <br>|}} | ||
+ | {{#if:{{{?documentation|}}}|"{{{?documentation}}}" is documentation of it <br>|}} | ||
+ | {{#if:{{{?values_from|}}}|"{{{?values_from}}}" is values_from of it <br>|}} | ||
+ | {{#if:{{{?showInGrid|}}}|"{{{?showInGrid}}}" is showInGrid of it <br>|}} | ||
+ | {{#if:{{{?isLink|}}}|"{{{?isLink}}}" is isLink of it <br>|}} | ||
+ | {{#if:{{{?nullable|}}}|"{{{?nullable}}}" is nullable of it <br>|}} | ||
+ | {{#if:{{{?topic|}}}|"{{{?topic}}}" is topic of it <br>|}} | ||
+ | {{#if:{{{?placeholder|}}}|"{{{?placeholder}}}" is placeholder of it <br>|}} | ||
+ | |#default={{#switch:{{{storemode|}}} | ||
+ | |none= | ||
+ | |subobject={{#subobject:- | ||
+ | |isA=Property | ||
+ | |Property name={{{name|}}} | ||
+ | |Property label={{{label|}}} | ||
+ | |Property type={{{type|}}} | ||
+ | |Property index={{{index|}}} | ||
+ | |Property sortPos={{{sortPos|}}} | ||
+ | |Property primaryKey={{{primaryKey|}}} | ||
+ | |Property mandatory={{{mandatory|}}} | ||
+ | |Property namespace={{{namespace|}}} | ||
+ | |Property size={{{size|}}} | ||
+ | |Property uploadable={{{uploadable|}}} | ||
+ | |Property defaultValue={{{defaultValue|}}} | ||
+ | |Property inputType={{{inputType|}}} | ||
+ | |Property allowedValues={{{allowedValues|}}} | ||
+ | |Property documentation={{{documentation|}}} | ||
+ | |Property values_from={{{values_from|}}} | ||
+ | |Property showInGrid={{{showInGrid|}}} | ||
+ | |Property isLink={{{isLink|}}} | ||
+ | |Property nullable={{{nullable|}}} | ||
+ | |Property topic={{{topic|}}} | ||
+ | |Property placeholder={{{placeholder|}}} | ||
+ | }} | ||
+ | |#default={{#set: | ||
+ | |isA=Property | ||
+ | |Property name={{{name|}}} | ||
+ | |Property label={{{label|}}} | ||
+ | |Property type={{{type|}}} | ||
+ | |Property index={{{index|}}} | ||
+ | |Property sortPos={{{sortPos|}}} | ||
+ | |Property primaryKey={{{primaryKey|}}} | ||
+ | |Property mandatory={{{mandatory|}}} | ||
+ | |Property namespace={{{namespace|}}} | ||
+ | |Property size={{{size|}}} | ||
+ | |Property uploadable={{{uploadable|}}} | ||
+ | |Property defaultValue={{{defaultValue|}}} | ||
+ | |Property inputType={{{inputType|}}} | ||
+ | |Property allowedValues={{{allowedValues|}}} | ||
+ | |Property documentation={{{documentation|}}} | ||
+ | |Property values_from={{{values_from|}}} | ||
+ | |Property showInGrid={{{showInGrid|}}} | ||
+ | |Property isLink={{{isLink|}}} | ||
+ | |Property nullable={{{nullable|}}} | ||
+ | |Property topic={{{topic|}}} | ||
+ | |Property placeholder={{{placeholder|}}} | ||
+ | }} | ||
+ | }} | ||
+ | {{#switch: {{{viewmode|}}} | ||
+ | |hidden= | ||
+ | |masterdetail= | ||
+ | = smw_type = | ||
+ | {{#ask:[[Concept:SMW_Type]][[SMW_Type usedByProperties::{{FULLPAGENAME}}]] | ||
+ | | ?SMW_Type type = type | ||
+ | | ?SMW_Type documentation = documentation | ||
+ | | ?SMW_Type id = id | ||
+ | | ?SMW_Type helppage = helppage | ||
+ | | ?SMW_Type typepage = typepage | ||
+ | | ?SMW_Type javaType = javaType | ||
+ | | ?SMW_Type usedByProperties = usedByProperties | ||
+ | |||
+ | |||
+ | |||
+ | }} | ||
+ | |tableheader={{{!}} class='wikitable' | ||
+ | !name!!label!!type!!index!!sortPos!!primaryKey!!mandatory!!namespace!!size!!uploadable!!defaultValue!!inputType!!allowedValues!!documentation!!values_from!!showInGrid!!isLink!!nullable!!topic!!placeholder | ||
+ | {{!}}- | ||
+ | |tablerow= | ||
+ | {{!}}{{{name|}}}{{!}}{{!}}{{{label|}}}{{!}}{{!}}{{{type|}}}{{!}}{{!}}{{{index|}}}{{!}}{{!}}{{{sortPos|}}}{{!}}{{!}}{{{primaryKey|}}}{{!}}{{!}}{{{mandatory|}}}{{!}}{{!}}{{{namespace|}}}{{!}}{{!}}{{{size|}}}{{!}}{{!}}{{{uploadable|}}}{{!}}{{!}}{{{defaultValue|}}}{{!}}{{!}}{{{inputType|}}}{{!}}{{!}}{{{allowedValues|}}}{{!}}{{!}}{{{documentation|}}}{{!}}{{!}}{{{values_from|}}}{{!}}{{!}}{{{showInGrid|}}}{{!}}{{!}}{{{isLink|}}}{{!}}{{!}}{{{nullable|}}}{{!}}{{!}}{{{topic|}}}{{!}}{{{placeholder|}}} | ||
+ | {{!}}- | ||
+ | |tablefooter={{!}}} | ||
+ | |labelfield= | ||
+ | name={{#if:{{{name|}}}|{{{name|}}}|}}<br>label={{#if:{{{label|}}}|{{{label|}}}|}}<br>type={{#if:{{{type|}}}|[[{{{type|}}}]]|}}<br>index={{#if:{{{index|}}}|{{{index|}}}|}}<br>sortPos={{#if:{{{sortPos|}}}|{{{sortPos|}}}|}}<br>primaryKey={{#if:{{{primaryKey|}}}|{{{primaryKey|}}}|}}<br>mandatory={{#if:{{{mandatory|}}}|{{{mandatory|}}}|}}<br>namespace={{#if:{{{namespace|}}}|{{{namespace|}}}|}}<br>size={{#if:{{{size|}}}|{{{size|}}}|}}<br>uploadable={{#if:{{{uploadable|}}}|{{{uploadable|}}}|}}<br>defaultValue={{#if:{{{defaultValue|}}}|{{{defaultValue|}}}|}}<br>inputType={{#if:{{{inputType|}}}|{{{inputType|}}}|}}<br>allowedValues={{#if:{{{allowedValues|}}}|{{{allowedValues|}}}|}}<br>documentation={{#if:{{{documentation|}}}|{{{documentation|}}}|}}<br>values_from={{#if:{{{values_from|}}}|{{{values_from|}}}|}}<br>showInGrid={{#if:{{{showInGrid|}}}|{{{showInGrid|}}}|}}<br>isLink={{#if:{{{isLink|}}}|{{{isLink|}}}|}}<br>nullable={{#if:{{{nullable|}}}|{{{nullable|}}}|}}<br>topic={{#if:{{{topic|}}}|[[{{{topic|}}}]]|}}<br><br>placeholder={{#if:{{{placeholder|}}}|{{{placeholder|}}}|}}|#default={{{!}} class='wikitable' | ||
+ | ! colspan='2' {{!}}Property | ||
+ | {{!}}- | ||
+ | {{#switch:{{{storemode|}}}|property= | ||
+ | ! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Property/{{FULLPAGENAME}}|title=edit}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | !name | ||
+ | {{!}} {{#if:{{{name|}}}|{{{name|}}}|}} | ||
+ | {{!}}- | ||
+ | !label | ||
+ | {{!}} {{#if:{{{label|}}}|{{{label|}}}|}} | ||
+ | {{!}}- | ||
+ | !type | ||
+ | {{!}} {{#if:{{{type|}}}|[[{{{type|}}}]]|}} | ||
+ | {{!}}- | ||
+ | !index | ||
+ | {{!}} {{#if:{{{index|}}}|{{{index|}}}|}} | ||
+ | {{!}}- | ||
+ | !sortPos | ||
+ | {{!}} {{#if:{{{sortPos|}}}|{{{sortPos|}}}|}} | ||
+ | {{!}}- | ||
+ | !primary key | ||
+ | {{!}} {{#if:{{{primaryKey|}}}|{{{primaryKey|}}}|}} | ||
+ | {{!}}- | ||
+ | !mandatory | ||
+ | {{!}} {{#if:{{{mandatory|}}}|{{{mandatory|}}}|}} | ||
+ | {{!}}- | ||
+ | !namespace | ||
+ | {{!}} {{#if:{{{namespace|}}}|{{{namespace|}}}|}} | ||
+ | {{!}}- | ||
+ | !size | ||
+ | {{!}} {{#if:{{{size|}}}|{{{size|}}}|}} | ||
+ | {{!}}- | ||
+ | !uploadable | ||
+ | {{!}} {{#if:{{{uploadable|}}}|{{{uploadable|}}}|}} | ||
+ | {{!}}- | ||
+ | !default | ||
+ | {{!}} {{#if:{{{defaultValue|}}}|{{{defaultValue|}}}|}} | ||
+ | {{!}}- | ||
+ | !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|}}}|}} | ||
+ | {{!}}- | ||
+ | !allow nulls? | ||
+ | {{!}} {{#if:{{{nullable|}}}|{{{nullable|}}}|}} | ||
+ | {{!}}- | ||
+ | !topic | ||
+ | {{!}} {{#if:{{{topic|}}}|[[{{{topic|}}}]]|}} | ||
+ | {{!}}- | ||
+ | !placeholder | ||
+ | {{!}} {{#if:{{{placeholder|}}}|{{placeholder|}}}|}} | ||
+ | {{!}}- | ||
+ | {{!}}} | ||
+ | }} | ||
+ | }} | ||
+ | [[Category:Property]]{{#default_form:Property}} | ||
+ | </source> | ||
+ | === Source === | ||
+ | Click on "Edit" to edit the noinclude-part Source of this Template. | ||
+ | [[Category:Template]] | ||
+ | |||
+ | </noinclude> | ||
+ | <includeonly> | ||
+ | {{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Property<br>|}} | ||
+ | {{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}} | ||
+ | {{#if:{{{?label|}}}|"{{{?label}}}" is label of it <br>|}} | ||
+ | {{#if:{{{?type|}}}|"{{{?type}}}" is type of it <br>|}} | ||
+ | {{#if:{{{?index|}}}|"{{{?index}}}" is index of it <br>|}} | ||
+ | {{#if:{{{?sortPos|}}}|"{{{?sortPos}}}" is sortPos of it <br>|}} | ||
+ | {{#if:{{{?primaryKey|}}}|"{{{?primaryKey}}}" is primaryKey of it <br>|}} | ||
+ | {{#if:{{{?mandatory|}}}|"{{{?mandatory}}}" is mandatory of it <br>|}} | ||
+ | {{#if:{{{?namespace|}}}|"{{{?namespace}}}" is namespace of it <br>|}} | ||
+ | {{#if:{{{?size|}}}|"{{{?size}}}" is size of it <br>|}} | ||
+ | {{#if:{{{?uploadable|}}}|"{{{?uploadable}}}" is uploadable of it <br>|}} | ||
+ | {{#if:{{{?defaultValue|}}}|"{{{?defaultValue}}}" is defaultValue of it <br>|}} | ||
+ | {{#if:{{{?inputType|}}}|"{{{?inputType}}}" is inputType of it <br>|}} | ||
+ | {{#if:{{{?allowedValues|}}}|"{{{?allowedValues}}}" is allowedValues of it <br>|}} | ||
+ | {{#if:{{{?documentation|}}}|"{{{?documentation}}}" is documentation of it <br>|}} | ||
+ | {{#if:{{{?values_from|}}}|"{{{?values_from}}}" is values_from of it <br>|}} | ||
+ | {{#if:{{{?showInGrid|}}}|"{{{?showInGrid}}}" is showInGrid of it <br>|}} | ||
+ | {{#if:{{{?isLink|}}}|"{{{?isLink}}}" is isLink of it <br>|}} | ||
+ | {{#if:{{{?nullable|}}}|"{{{?nullable}}}" is nullable of it <br>|}} | ||
+ | {{#if:{{{?topic|}}}|"{{{?topic}}}" is topic of it <br>|}} | ||
+ | {{#if:{{{?placeholder|}}}|"{{{?placeholder}}}" is placeholder of it <br>|}} | ||
+ | {{#if:{{{?regex|}}}|"{{{?regex}}}" is regex of it <br>|}} | ||
+ | |#default={{#switch:{{{storemode|}}} | ||
+ | |none= | ||
+ | |subobject={{#subobject:- | ||
+ | |isA=Property | ||
+ | |Property name={{{name|}}} | ||
+ | |Property label={{{label|}}} | ||
+ | |Property type={{{type|}}} | ||
+ | |Property index={{{index|}}} | ||
+ | |Property sortPos={{{sortPos|}}} | ||
+ | |Property primaryKey={{{primaryKey|}}} | ||
+ | |Property mandatory={{{mandatory|}}} | ||
+ | |Property namespace={{{namespace|}}} | ||
+ | |Property size={{{size|}}} | ||
+ | |Property uploadable={{{uploadable|}}} | ||
+ | |Property defaultValue={{{defaultValue|}}} | ||
+ | |Property inputType={{{inputType|}}} | ||
+ | |Property allowedValues={{{allowedValues|}}} | ||
+ | |Property documentation={{{documentation|}}} | ||
+ | |Property values_from={{{values_from|}}} | ||
+ | |Property showInGrid={{{showInGrid|}}} | ||
+ | |Property isLink={{{isLink|}}} | ||
+ | |Property nullable={{{nullable|}}} | ||
+ | |Property topic={{{topic|}}} | ||
+ | |Property placeholder={{{placeholder|}}} | ||
+ | |Property regex={{{regex|}}} | ||
+ | }} | ||
+ | |#default={{#set: | ||
+ | |isA=Property | ||
+ | |Property name={{{name|}}} | ||
+ | |Property label={{{label|}}} | ||
+ | |Property type={{{type|}}} | ||
+ | |Property index={{{index|}}} | ||
+ | |Property sortPos={{{sortPos|}}} | ||
+ | |Property primaryKey={{{primaryKey|}}} | ||
+ | |Property mandatory={{{mandatory|}}} | ||
+ | |Property namespace={{{namespace|}}} | ||
+ | |Property size={{{size|}}} | ||
+ | |Property uploadable={{{uploadable|}}} | ||
+ | |Property defaultValue={{{defaultValue|}}} | ||
+ | |Property inputType={{{inputType|}}} | ||
+ | |Property allowedValues={{{allowedValues|}}} | ||
+ | |Property documentation={{{documentation|}}} | ||
+ | |Property values_from={{{values_from|}}} | ||
+ | |Property showInGrid={{{showInGrid|}}} | ||
+ | |Property isLink={{{isLink|}}} | ||
+ | |Property nullable={{{nullable|}}} | ||
+ | |Property topic={{{topic|}}} | ||
+ | |Property placeholder={{{placeholder|}}} | ||
+ | |Property regex={{{regex|}}} | ||
+ | }} | ||
+ | }} | ||
+ | {{#switch: {{{viewmode|}}} | ||
+ | |hidden= | ||
+ | |masterdetail= | ||
+ | = smw_type = | ||
+ | {{#ask:[[Concept:SMW_Type]][[SMW_Type usedByProperties::{{FULLPAGENAME}}]] | ||
+ | | ?SMW_Type type = type | ||
+ | | ?SMW_Type documentation = documentation | ||
+ | | ?SMW_Type id = id | ||
+ | | ?SMW_Type helppage = helppage | ||
+ | | ?SMW_Type typepage = typepage | ||
+ | | ?SMW_Type javaType = javaType | ||
+ | | ?SMW_Type usedByProperties = usedByProperties | ||
+ | |||
+ | |||
+ | |||
+ | }} | ||
+ | |tableheader={{{!}} class='wikitable' | ||
+ | !name!!label!!type!!index!!sortPos!!primaryKey!!mandatory!!namespace!!size!!uploadable!!defaultValue!!inputType!!allowedValues!!documentation!!values_from!!showInGrid!!isLink!!nullable!!topic!!placeholder!!regex | ||
+ | {{!}}- | ||
+ | |tablerow= | ||
+ | {{!}}{{{name|}}}{{!}}{{!}}{{{label|}}}{{!}}{{!}}{{{type|}}}{{!}}{{!}}{{{index|}}}{{!}}{{!}}{{{sortPos|}}}{{!}}{{!}}{{{primaryKey|}}}{{!}}{{!}}{{{mandatory|}}}{{!}}{{!}}{{{namespace|}}}{{!}}{{!}}{{{size|}}}{{!}}{{!}}{{{uploadable|}}}{{!}}{{!}}{{{defaultValue|}}}{{!}}{{!}}{{{inputType|}}}{{!}}{{!}}{{{allowedValues|}}}{{!}}{{!}}{{{documentation|}}}{{!}}{{!}}{{{values_from|}}}{{!}}{{!}}{{{showInGrid|}}}{{!}}{{!}}{{{isLink|}}}{{!}}{{!}}{{{nullable|}}}{{!}}{{!}}{{{topic|}}}{{!}}{{!}}{{{placeholder|}}}{{!}}{{!}}{{{regex|}}} | ||
+ | {{!}}- | ||
+ | |tablefooter={{!}}} | ||
+ | |labelfield= | ||
+ | name={{#if:{{{name|}}}|{{{name|}}}|}}<br>label={{#if:{{{label|}}}|{{{label|}}}|}}<br>type={{#if:{{{type|}}}|[[{{{type|}}}]]|}}<br>index={{#if:{{{index|}}}|{{{index|}}}|}}<br>sortPos={{#if:{{{sortPos|}}}|{{{sortPos|}}}|}}<br>primaryKey={{#if:{{{primaryKey|}}}|{{{primaryKey|}}}|}}<br>mandatory={{#if:{{{mandatory|}}}|{{{mandatory|}}}|}}<br>namespace={{#if:{{{namespace|}}}|{{{namespace|}}}|}}<br>size={{#if:{{{size|}}}|{{{size|}}}|}}<br>uploadable={{#if:{{{uploadable|}}}|{{{uploadable|}}}|}}<br>defaultValue={{#if:{{{defaultValue|}}}|{{{defaultValue|}}}|}}<br>inputType={{#if:{{{inputType|}}}|{{{inputType|}}}|}}<br>allowedValues={{#if:{{{allowedValues|}}}|{{{allowedValues|}}}|}}<br>documentation={{#if:{{{documentation|}}}|{{{documentation|}}}|}}<br>values_from={{#if:{{{values_from|}}}|{{{values_from|}}}|}}<br>showInGrid={{#if:{{{showInGrid|}}}|{{{showInGrid|}}}|}}<br>isLink={{#if:{{{isLink|}}}|{{{isLink|}}}|}}<br>nullable={{#if:{{{nullable|}}}|{{{nullable|}}}|}}<br>topic={{#if:{{{topic|}}}|[[{{{topic|}}}]]|}}<br>placeholder={{#if:{{{placeholder|}}}|{{{placeholder|}}}|}}<br>regex={{#if:{{{regex|}}}|{{{regex|}}}|}}<br>|#default={{{!}} class='wikitable' | ||
+ | ! colspan='2' {{!}}Property | ||
+ | {{!}}- | ||
+ | {{#switch:{{{storemode|}}}|property= | ||
+ | ! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Property/{{FULLPAGENAME}}|title=edit}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | !name | ||
+ | {{!}} {{#if:{{{name|}}}|{{{name|}}}|}} | ||
+ | {{!}}- | ||
+ | !label | ||
+ | {{!}} {{#if:{{{label|}}}|{{{label|}}}|}} | ||
+ | {{!}}- | ||
+ | !type | ||
+ | {{!}} {{#if:{{{type|}}}|[[{{{type|}}}]]|}} | ||
+ | {{!}}- | ||
+ | !index | ||
+ | {{!}} {{#if:{{{index|}}}|{{{index|}}}|}} | ||
+ | {{!}}- | ||
+ | !sortPos | ||
+ | {{!}} {{#if:{{{sortPos|}}}|{{{sortPos|}}}|}} | ||
+ | {{!}}- | ||
+ | !primary key | ||
+ | {{!}} {{#if:{{{primaryKey|}}}|{{{primaryKey|}}}|}} | ||
+ | {{!}}- | ||
+ | !mandatory | ||
+ | {{!}} {{#if:{{{mandatory|}}}|{{{mandatory|}}}|}} | ||
+ | {{!}}- | ||
+ | !namespace | ||
+ | {{!}} {{#if:{{{namespace|}}}|{{{namespace|}}}|}} | ||
+ | {{!}}- | ||
+ | !size | ||
+ | {{!}} {{#if:{{{size|}}}|{{{size|}}}|}} | ||
+ | {{!}}- | ||
+ | !uploadable | ||
+ | {{!}} {{#if:{{{uploadable|}}}|{{{uploadable|}}}|}} | ||
+ | {{!}}- | ||
+ | !default | ||
+ | {{!}} {{#if:{{{defaultValue|}}}|{{{defaultValue|}}}|}} | ||
+ | {{!}}- | ||
+ | !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|}}}|}} | ||
+ | {{!}}- | ||
+ | !allow nulls? | ||
+ | {{!}} {{#if:{{{nullable|}}}|{{{nullable|}}}|}} | ||
+ | {{!}}- | ||
+ | !topic | ||
+ | {{!}} {{#if:{{{topic|}}}|[[{{{topic|}}}]]|}} | ||
+ | {{!}}- | ||
+ | !placeholder | ||
+ | {{!}} {{#if:{{{placeholder|}}}|{{{placeholder|}}}|}} | ||
+ | {{!}}- | ||
+ | !regex | ||
+ | {{!}} {{#if:{{{regex|}}}|{{{regex|}}}|}} | ||
+ | {{!}}- | ||
+ | {{!}}} | ||
+ | }} | ||
+ | }} | ||
+ | [[Category:Property]]{{#default_form:Property}}</includeonly> |
Latest revision as of 17:54, 26 February 2021
This is the template Property.
It belongs to the concept/topic Concept:Property
You may find examples for the use of this template via the List of Properties.
Usage
storemode subobject
{{Property |name= |label= |type= |index= |sortPos= |primaryKey= |mandatory= |namespace= |size= |uploadable= |defaultValue= |inputType= |allowedValues= |documentation= |values_from= |showInGrid= |isLink= |nullable= |topic= |placeholder= |storemode=subobject }}
storemode property
{{Property |name= |label= |type= |index= |sortPos= |primaryKey= |mandatory= |namespace= |size= |uploadable= |defaultValue= |inputType= |allowedValues= |documentation= |values_from= |showInGrid= |isLink= |nullable= |topic= |placeholder= |storemode=property }}
storemode none
{{Property |name= |label= |type= |index= |sortPos= |primaryKey= |mandatory= |namespace= |size= |uploadable= |defaultValue= |inputType= |allowedValues= |documentation= |values_from= |showInGrid= |isLink= |nullable= |topic= |placeholder= |storemode=none }}
viewmode tableheader
{{Property |name= |label= |type= |index= |sortPos= |primaryKey= |mandatory= |namespace= |size= |uploadable= |defaultValue= |inputType= |allowedValues= |documentation= |values_from= |showInGrid= |isLink= |nullable= |topic= |placeholder= |viewmode=tableheader }}
viewmode tablerow
{{Property |name= |label= |type= |index= |sortPos= |primaryKey= |mandatory= |namespace= |size= |uploadable= |defaultValue= |inputType= |allowedValues= |documentation= |values_from= |showInGrid= |isLink= |nullable= |topic= |placeholder= |viewmode=tablerow }}
{{Property |name= |label= |type= |index= |sortPos= |primaryKey= |mandatory= |namespace= |size= |uploadable= |defaultValue= |inputType= |allowedValues= |documentation= |values_from= |showInGrid= |isLink= |nullable= |topic= |placeholder= |viewmode=tablefooter }}
viewmode labelfield
{{Property |name= |label= |type= |index= |sortPos= |primaryKey= |mandatory= |namespace= |size= |uploadable= |defaultValue= |inputType= |allowedValues= |documentation= |values_from= |showInGrid= |isLink= |nullable= |topic= |placeholder= |viewmode=labelfield }}
Source (pretty printed)
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Property<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?label|}}}|"{{{?label}}}" is label of it <br>|}}
{{#if:{{{?type|}}}|"{{{?type}}}" is type of it <br>|}}
{{#if:{{{?index|}}}|"{{{?index}}}" is index of it <br>|}}
{{#if:{{{?sortPos|}}}|"{{{?sortPos}}}" is sortPos of it <br>|}}
{{#if:{{{?primaryKey|}}}|"{{{?primaryKey}}}" is primaryKey of it <br>|}}
{{#if:{{{?mandatory|}}}|"{{{?mandatory}}}" is mandatory of it <br>|}}
{{#if:{{{?namespace|}}}|"{{{?namespace}}}" is namespace of it <br>|}}
{{#if:{{{?size|}}}|"{{{?size}}}" is size of it <br>|}}
{{#if:{{{?uploadable|}}}|"{{{?uploadable}}}" is uploadable of it <br>|}}
{{#if:{{{?defaultValue|}}}|"{{{?defaultValue}}}" is defaultValue of it <br>|}}
{{#if:{{{?inputType|}}}|"{{{?inputType}}}" is inputType of it <br>|}}
{{#if:{{{?allowedValues|}}}|"{{{?allowedValues}}}" is allowedValues of it <br>|}}
{{#if:{{{?documentation|}}}|"{{{?documentation}}}" is documentation of it <br>|}}
{{#if:{{{?values_from|}}}|"{{{?values_from}}}" is values_from of it <br>|}}
{{#if:{{{?showInGrid|}}}|"{{{?showInGrid}}}" is showInGrid of it <br>|}}
{{#if:{{{?isLink|}}}|"{{{?isLink}}}" is isLink of it <br>|}}
{{#if:{{{?nullable|}}}|"{{{?nullable}}}" is nullable of it <br>|}}
{{#if:{{{?topic|}}}|"{{{?topic}}}" is topic of it <br>|}}
{{#if:{{{?placeholder|}}}|"{{{?placeholder}}}" is placeholder of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Property
|Property name={{{name|}}}
|Property label={{{label|}}}
|Property type={{{type|}}}
|Property index={{{index|}}}
|Property sortPos={{{sortPos|}}}
|Property primaryKey={{{primaryKey|}}}
|Property mandatory={{{mandatory|}}}
|Property namespace={{{namespace|}}}
|Property size={{{size|}}}
|Property uploadable={{{uploadable|}}}
|Property defaultValue={{{defaultValue|}}}
|Property inputType={{{inputType|}}}
|Property allowedValues={{{allowedValues|}}}
|Property documentation={{{documentation|}}}
|Property values_from={{{values_from|}}}
|Property showInGrid={{{showInGrid|}}}
|Property isLink={{{isLink|}}}
|Property nullable={{{nullable|}}}
|Property topic={{{topic|}}}
|Property placeholder={{{placeholder|}}}
}}
|#default={{#set:
|isA=Property
|Property name={{{name|}}}
|Property label={{{label|}}}
|Property type={{{type|}}}
|Property index={{{index|}}}
|Property sortPos={{{sortPos|}}}
|Property primaryKey={{{primaryKey|}}}
|Property mandatory={{{mandatory|}}}
|Property namespace={{{namespace|}}}
|Property size={{{size|}}}
|Property uploadable={{{uploadable|}}}
|Property defaultValue={{{defaultValue|}}}
|Property inputType={{{inputType|}}}
|Property allowedValues={{{allowedValues|}}}
|Property documentation={{{documentation|}}}
|Property values_from={{{values_from|}}}
|Property showInGrid={{{showInGrid|}}}
|Property isLink={{{isLink|}}}
|Property nullable={{{nullable|}}}
|Property topic={{{topic|}}}
|Property placeholder={{{placeholder|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
= smw_type =
{{#ask:[[Concept:SMW_Type]][[SMW_Type usedByProperties::{{FULLPAGENAME}}]]
| ?SMW_Type type = type
| ?SMW_Type documentation = documentation
| ?SMW_Type id = id
| ?SMW_Type helppage = helppage
| ?SMW_Type typepage = typepage
| ?SMW_Type javaType = javaType
| ?SMW_Type usedByProperties = usedByProperties
}}
|tableheader={{{!}} class='wikitable'
!name!!label!!type!!index!!sortPos!!primaryKey!!mandatory!!namespace!!size!!uploadable!!defaultValue!!inputType!!allowedValues!!documentation!!values_from!!showInGrid!!isLink!!nullable!!topic!!placeholder
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{label|}}}{{!}}{{!}}{{{type|}}}{{!}}{{!}}{{{index|}}}{{!}}{{!}}{{{sortPos|}}}{{!}}{{!}}{{{primaryKey|}}}{{!}}{{!}}{{{mandatory|}}}{{!}}{{!}}{{{namespace|}}}{{!}}{{!}}{{{size|}}}{{!}}{{!}}{{{uploadable|}}}{{!}}{{!}}{{{defaultValue|}}}{{!}}{{!}}{{{inputType|}}}{{!}}{{!}}{{{allowedValues|}}}{{!}}{{!}}{{{documentation|}}}{{!}}{{!}}{{{values_from|}}}{{!}}{{!}}{{{showInGrid|}}}{{!}}{{!}}{{{isLink|}}}{{!}}{{!}}{{{nullable|}}}{{!}}{{!}}{{{topic|}}}{{!}}{{{placeholder|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>label={{#if:{{{label|}}}|{{{label|}}}|}}<br>type={{#if:{{{type|}}}|[[{{{type|}}}]]|}}<br>index={{#if:{{{index|}}}|{{{index|}}}|}}<br>sortPos={{#if:{{{sortPos|}}}|{{{sortPos|}}}|}}<br>primaryKey={{#if:{{{primaryKey|}}}|{{{primaryKey|}}}|}}<br>mandatory={{#if:{{{mandatory|}}}|{{{mandatory|}}}|}}<br>namespace={{#if:{{{namespace|}}}|{{{namespace|}}}|}}<br>size={{#if:{{{size|}}}|{{{size|}}}|}}<br>uploadable={{#if:{{{uploadable|}}}|{{{uploadable|}}}|}}<br>defaultValue={{#if:{{{defaultValue|}}}|{{{defaultValue|}}}|}}<br>inputType={{#if:{{{inputType|}}}|{{{inputType|}}}|}}<br>allowedValues={{#if:{{{allowedValues|}}}|{{{allowedValues|}}}|}}<br>documentation={{#if:{{{documentation|}}}|{{{documentation|}}}|}}<br>values_from={{#if:{{{values_from|}}}|{{{values_from|}}}|}}<br>showInGrid={{#if:{{{showInGrid|}}}|{{{showInGrid|}}}|}}<br>isLink={{#if:{{{isLink|}}}|{{{isLink|}}}|}}<br>nullable={{#if:{{{nullable|}}}|{{{nullable|}}}|}}<br>topic={{#if:{{{topic|}}}|[[{{{topic|}}}]]|}}<br><br>placeholder={{#if:{{{placeholder|}}}|{{{placeholder|}}}|}}|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Property
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Property/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!name
{{!}} {{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!label
{{!}} {{#if:{{{label|}}}|{{{label|}}}|}}
{{!}}-
!type
{{!}} {{#if:{{{type|}}}|[[{{{type|}}}]]|}}
{{!}}-
!index
{{!}} {{#if:{{{index|}}}|{{{index|}}}|}}
{{!}}-
!sortPos
{{!}} {{#if:{{{sortPos|}}}|{{{sortPos|}}}|}}
{{!}}-
!primary key
{{!}} {{#if:{{{primaryKey|}}}|{{{primaryKey|}}}|}}
{{!}}-
!mandatory
{{!}} {{#if:{{{mandatory|}}}|{{{mandatory|}}}|}}
{{!}}-
!namespace
{{!}} {{#if:{{{namespace|}}}|{{{namespace|}}}|}}
{{!}}-
!size
{{!}} {{#if:{{{size|}}}|{{{size|}}}|}}
{{!}}-
!uploadable
{{!}} {{#if:{{{uploadable|}}}|{{{uploadable|}}}|}}
{{!}}-
!default
{{!}} {{#if:{{{defaultValue|}}}|{{{defaultValue|}}}|}}
{{!}}-
!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|}}}|}}
{{!}}-
!allow nulls?
{{!}} {{#if:{{{nullable|}}}|{{{nullable|}}}|}}
{{!}}-
!topic
{{!}} {{#if:{{{topic|}}}|[[{{{topic|}}}]]|}}
{{!}}-
!placeholder
{{!}} {{#if:{{{placeholder|}}}|{{placeholder|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Property]]{{#default_form:Property}}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.