|
|
| Line 3: |
Line 3: |
| <!-- Composite form slot for Subobject --> | | <!-- Composite form slot for Subobject --> |
| </noinclude><includeonly> | | </noinclude><includeonly> |
| <h2>Subobject</h2> | | {{#if:{{{subobject|}}}|<h3>Subobject</h3>|<h2>Subobject</h2>}} |
|
| |
|
| <nowiki>{{{for template|Subobject}}}</nowiki>
| | {{#if:{{{subobject|}}} |
| | | |{{#if:{{{required|}}} |
| '''Required fields:'''
| | |<nowiki>{{{for template|Subobject/subobject|multiple|minimum instances=1}}}</nowiki> |
| | | |<nowiki>{{{for template|Subobject/subobject|multiple}}}</nowiki> |
| {| class="formtable" | | }} |
| |-
| | |<nowiki>{{{for template|Subobject}}}</nowiki> |
| ! Description<span style="color:red;"> *</span>: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Explains the purpose of this category, property, or subobject.</p>
| | }} |
| | <nowiki>{{{field|has_description|property=Has description|input type=textarea|size=60|mandatory=true}}}</nowiki>
| |
| |}
| |
| | |
| '''Optional fields:'''
| |
| | |
| {| 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> | |
| |-
| |
| ! Optional fields: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Fields that may optionally be filled in.</p>
| |
| | <nowiki>{{{field|has_optional_property|property=Has optional property|input type=tokens|multiple|values from namespace=Property|autocomplete=on}}}</nowiki> | |
| |-
| |
| ! Required fields: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Fields that must be filled in when creating pages of this type.</p>
| |
| | <nowiki>{{{field|has_required_property|property=Has required property|input type=tokens|multiple|values from namespace=Property|autocomplete=on}}}</nowiki> | |
| |}
| |
|
| |
|
| <nowiki>{{{end template}}}</nowiki> | | <nowiki>{{{end template}}}</nowiki> |
|
| |
|
| </includeonly> | | </includeonly> |