Template:Category/display: Difference between revisions
Template page
More actions
SemanticSchemas: Update static display template for Category |
SemanticSchemas: Update static display template for Category |
||
| Line 2: | Line 2: | ||
<includeonly> | <includeonly> | ||
{| class="wikitable source-semanticschemas" | {| class="wikitable source-semanticschemas" | ||
|- | |- | ||
! colspan="2" style="background-color: #eaecf0; text-align: center;" | Category <span style="float: right; font-weight: normal; font-size: 0.8em;">[[Special:FormEdit/Category/{{FULLPAGENAME}}|edit]]</span> | |||
{{#if:{{{has_description|}}}| | |||
{{!}}- | |||
! Description | ! Description | ||
{{!}} {{Property/Default | value={{{has_description|}}} }} | |||
|- | }} | ||
{{#if:{{{display_label|}}}| | |||
{{!}}- | |||
! Display name | ! Display name | ||
{{!}} {{Property/Default | value={{{display_label|}}} }} | |||
|- | }} | ||
{{#if:{{{has_target_namespace|}}}| | |||
{{!}}- | |||
! Target namespace | ! Target namespace | ||
{{!}} {{Property/Default | value={{{has_target_namespace|}}} }} | |||
|- | }} | ||
{{#if:{{{has_parent_category|}}}| | |||
{{!}}- | |||
! Inherits from | ! Inherits from | ||
{{!}} {{Property/Page | value={{#arraymap:{{{has_parent_category|}}}|,|@@item@@|Category:@@item@@|, }} }} | |||
|- | }} | ||
{{#if:{{{has_required_property|}}}| | |||
{{!}}- | |||
! Required fields | ! Required fields | ||
{{!}} {{Property/Page | value={{#arraymap:{{{has_required_property|}}}|,|@@item@@|Property:@@item@@|, }} }} | |||
|- | }} | ||
{{#if:{{{has_optional_property|}}}| | |||
{{!}}- | |||
! Optional fields | ! Optional fields | ||
{{!}} {{Property/Page | value={{#arraymap:{{{has_optional_property|}}}|,|@@item@@|Property:@@item@@|, }} }} | |||
|- | }} | ||
{{#if:{{{has_required_subobject|}}}| | |||
{{!}}- | |||
! Required subobjects | ! Required subobjects | ||
{{!}} {{Property/Page | value={{#arraymap:{{{has_required_subobject|}}}|,|@@item@@|Subobject:@@item@@|, }} }} | |||
|- | }} | ||
{{#if:{{{has_optional_subobject|}}}| | |||
{{!}}- | |||
! Optional subobjects | ! Optional subobjects | ||
{{!}} {{Property/Page | value={{#arraymap:{{{has_optional_subobject|}}}|,|@@item@@|Subobject:@@item@@|, }} }} | |||
}} | |||
{{#if:{{{has_display_format|}}}| | |||
{{!}}- | |||
! Display format | ! Display format | ||
{{!}} {{Property/Default | value={{{has_display_format|}}} }} | |||
}} | |||
|} | |} | ||
[[Category:Category]] | |||
[[Category:SemanticSchemas-managed]] | |||
</includeonly><noinclude>[[Category:SemanticSchemas-managed-display]]</noinclude> | </includeonly><noinclude>[[Category:SemanticSchemas-managed-display]]</noinclude> | ||