|
|
| Line 12: |
Line 12: |
| |<nowiki>{{{for template|Person}}}</nowiki> | | |<nowiki>{{{for template|Person}}}</nowiki> |
| }} | | }} |
|
| |
| '''Required fields:'''
| |
|
| |
| {| class="formtable"
| |
| |-
| |
| ! 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>
| |
| |-
| |
| ! Target namespace: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Where pages of this category are created (e.g., Main, User).</p>
| |
| | <nowiki>{{{field|has_target_namespace|property=Has target namespace|input type=text|size=60}}}</nowiki>
| |
| |-
| |
| ! Display format: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">How to lay out the page (table or sidebox). Ignored when Has display template is set — the custom template takes precedence.</p>
| |
| | <nowiki>{{{field|has_display_format|property=Has display format|input type=radiobutton|values=table,sidebox,none}}}</nowiki>
| |
| |-
| |
| ! Category display template: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Custom template for rendering a category's page layout. When set, this overrides the display format — the standard Category/table or Category/sidebox call is suppressed and only this template is rendered.</p>
| |
| | <nowiki>{{{field|has_display_template|property=Has display template|input type=combobox|values from namespace=Template|autocomplete=on}}}</nowiki>
| |
| |-
| |
| ! Subobject display template: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Custom template for rendering an entire subobject section. Set on a Subobject field declaration inside a category to override the default per-subobject table layout — the dispatcher emits a single call to this template (with category= and page= params) in place of the built-in #ask pipeline, so the template can aggregate all subobjects into one table, card grid, timeline, or any layout you want.</p>
| |
| | <nowiki>{{{field|has_subobject_display_template|property=Has subobject display template|input type=combobox|values from namespace=Template|autocomplete=on}}}</nowiki>
| |
| |-
| |
| ! Show backlinks for: <br><p class="pfFieldDescription" style="font-size:0.7em; color:gray;">Properties whose incoming links should be shown as backlinks on pages in this category.</p>
| |
| | <nowiki>{{{field|show_backlinks_for|property=Show backlinks for|input type=tokens|multiple|values from namespace=Property|autocomplete=on}}}</nowiki>
| |
| |}
| |
|
| |
|
| <nowiki>{{{end template}}}</nowiki> | | <nowiki>{{{end template}}}</nowiki> |
|
| |
| {{Form:Property field/composite|subobject=true}}
| |
|
| |
| {{Form:Subobject field/composite|subobject=true}}
| |
|
| |
|
| </includeonly> | | </includeonly> |