Form:Category/composite: Difference between revisions
From Miniscope
More actions
SemanticSchemas: Auto-generated form |
SemanticSchemas: Auto-generated form |
||
| Line 3: | Line 3: | ||
<!-- Composite form slot for Category --> | <!-- Composite form slot for Category --> | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<h2>Category</h2> | {{#if:{{{subobject|}}}|<h3>Category</h3>|<h2>Category</h2>}} | ||
<nowiki>{{{for template|Category}}}</nowiki> | {{#if:{{{subobject|}}} | ||
|{{#if:{{{required|}}} | |||
|<nowiki>{{{for template|Category/subobject|multiple|minimum instances=1}}}</nowiki> | |||
|<nowiki>{{{for template|Category/subobject|multiple}}}</nowiki> | |||
}} | |||
|<nowiki>{{{for template|Category}}}</nowiki> | |||
}} | |||
'''Required fields:''' | '''Required fields:''' | ||
| Line 22: | Line 28: | ||
| <nowiki>{{{field|display_label|property=Display label|input type=text|size=60}}}</nowiki> | | <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| | | <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| | | <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| | | <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| | | <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| | | <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> | ||
Latest revision as of 07:24, 27 April 2026