Template:Subobject/display: Difference between revisions
Template page
More actions
SemanticSchemas: Update static display template for Subobject |
SemanticSchemas: Update static display template for Subobject |
||
| Line 2: | Line 2: | ||
<includeonly> | <includeonly> | ||
{| class="wikitable source-semanticschemas" | {| class="wikitable source-semanticschemas" | ||
|- | |- | ||
! colspan="2" style="background-color: #eaecf0; text-align: center;" | Subobject <span style="float: right; font-weight: normal; font-size: 0.8em;">[[Special:FormEdit/Subobject/{{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_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@@|, }} }} | |||
}} | |||
|} | |} | ||
[[Category:Subobject]] | |||
[[Category:SemanticSchemas-managed]] | |||
</includeonly><noinclude>[[Category:SemanticSchemas-managed-display]]</noinclude> | </includeonly><noinclude>[[Category:SemanticSchemas-managed-display]]</noinclude> | ||