Form:Property/composite: Difference between revisions
From Miniscope
More actions
SemanticSchemas: Auto-generated form |
SemanticSchemas: Auto-generated form |
||
| Line 3: | Line 3: | ||
<!-- Composite form slot for Property --> | <!-- Composite form slot for Property --> | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<h2>Property</h2> | {{#if:{{{subobject|}}}|<h3>Property</h3>|<h2>Property</h2>}} | ||
<nowiki>{{{for template|Property}}}</nowiki> | {{#if:{{{subobject|}}} | ||
|{{#if:{{{required|}}} | |||
|<nowiki>{{{for template|Property/subobject|multiple|minimum instances=1}}}</nowiki> | |||
|<nowiki>{{{for template|Property/subobject|multiple}}}</nowiki> | |||
}} | |||
|<nowiki>{{{for template|Property}}}</nowiki> | |||
}} | |||
'''Required fields:''' | '''Required fields:''' | ||
| Line 21: | Line 27: | ||
{| class="formtable" | {| class="formtable" | ||
|- | |||
! Display name: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Human-readable name shown instead of the internal name.</p> | |||
| <nowiki>{{{field|display_label|property=Display label|input type=text|size=60}}}</nowiki> | |||
|- | |- | ||
! Allow multiple values: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Whether this field can hold more than one value.</p> | ! Allow multiple values: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Whether this field can hold more than one value.</p> | ||
| Line 28: | Line 37: | ||
| <nowiki>{{{field|allows_value|property=Allows value|input type=tokens|multiple|size=60}}}</nowiki> | | <nowiki>{{{field|allows_value|property=Allows value|input type=tokens|multiple|size=60}}}</nowiki> | ||
|- | |- | ||
! | ! Subproperty Of: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Parent property that this property specializes.</p> | ||
| <nowiki>{{{field| | | <nowiki>{{{field|subproperty_of|property=Subproperty of|input type=combobox|values from namespace=Property|autocomplete=on}}}</nowiki> | ||
|- | |- | ||
! Autocomplete from namespace: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;"> | ! Allowed category: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Autocomplete suggestions will come from pages in this category.</p> | ||
| <nowiki>{{{field|allows_value_from_category|property=Allows value from category|input type=combobox|values from namespace=Category|autocomplete=on}}}</nowiki> | |||
|- | |||
! Allowed namespace: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Autocomplete from pages in this namespace. Input values omit the namespace prefix; the template adds it automatically.</p> | |||
| <nowiki>{{{field|allows_value_from_namespace|property=Allows value from namespace|input type=text|size=60}}}</nowiki> | | <nowiki>{{{field|allows_value_from_namespace|property=Allows value from namespace|input type=text|size=60}}}</nowiki> | ||
|- | |- | ||
! | ! Render template: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Custom template for rendering this property's value in display tables (e.g. Template:Property/Email for mailto links). Set on a Property page for a default that applies wherever the property is used, or on a Property field/subobject in a category to override the default for that category.</p> | ||
| <nowiki>{{{field| | | <nowiki>{{{field|has_render_template|property=Has render template|input type=combobox|values from namespace=Template|autocomplete=on}}}</nowiki> | ||
|- | |- | ||
! Input type: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Override the auto-detected PageForms input type for this property.</p> | ! Input type: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Override the auto-detected PageForms input type for this property.</p> | ||
| <nowiki>{{{field|has_input_type|property=Has input type|input type=dropdown|values=checkbox,checkboxes,combobox,date,datepicker,datetime,datetimepicker,dropdown,googlemaps,leaflet,listbox,openlayers,radiobutton,rating,regexp,text,textarea,tokens,tree,year}}}</nowiki> | | <nowiki>{{{field|has_input_type|property=Has input type|input type=dropdown|values=checkbox,checkboxes,combobox,date,datepicker,datetime,datetimepicker,dropdown,googlemaps,leaflet,listbox,openlayers,radiobutton,rating,regexp,text,textarea,tokens,tree,year}}}</nowiki> | ||
|- | |- | ||
! | ! Inverse Property Label: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Label describing the inverse relationship. Used as the display name when a property appears in a category's backlinks section.</p> | ||
| <nowiki>{{{field| | | <nowiki>{{{field|inverse_property_label|property=Inverse property label|input type=text|size=60}}}</nowiki> | ||
| | |||
|} | |} | ||
Latest revision as of 07:24, 27 April 2026