Anonymous

Category:Entity: Difference between revisions

From OSL Demo
Update package: OSW Core
(Update package: OSW Core)
(Update package: OSW Core)
jsondata
Line 24: Line 24:
             "lang": "de"
             "lang": "de"
         }
         }
    ],
    "type": [
        "Category:Category"
     ]
     ]
}
}
jsonschema
Line 33: Line 33:
         "query_label": "Property:HasLabel",
         "query_label": "Property:HasLabel",
         "description": "skos:definition",
         "description": "skos:definition",
         "description_": "Property:HasDecription",
         "description*": "Property:HasDescription",
         "image": "schema:image",
         "image": "schema:image",
         "image*": "Property:HasImage",
         "image*": "Property:HasImage",
Line 158: Line 158:
             "eval_template": {
             "eval_template": {
                 "type": "mustache-wikitext",
                 "type": "mustache-wikitext",
                "mode": "render",
                 "value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%={{ }}=%\u003E {{#description}} |{{lang}}={{text}} {{/description}} {{=\u003C% %\u003E=}} }}"
                 "value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%={{ }}=%\u003E {{#description}} |{{lang}}={{text}} {{/description}} {{=\u003C% %\u003E=}} }}"
             },
             },
             "items": {
             "items": {
                "eval_template": [
                    {
                        "type": "wikitext",
                        "mode": "store",
                        "value": "{{{text}}}@{{{lang}}}"
                    }
                ],
                 "$ref": "/wiki/JsonSchema:Description?action=raw"
                 "$ref": "/wiki/JsonSchema:Description?action=raw"
             }
             }
footer_template
Line 1: Line 1:
{{#if: {{{attachments|}}} |
<!-- {{#if: {{{attachments|}}} |-->
=={{{_label_attachments| {{#switch:{{USERLANGUAGECODE}}|en=Attachments|de=Anhang|#default=Attachments}} }}}==
=={{{_label_attachments| {{#switch:{{USERLANGUAGECODE}}|en=Attachments|de=Anhang|#default=Attachments}} }}}==
<!-- {{#ask: [[IsFileAttachmentOf::{{FULLPAGENAME}}]] -->
<!-- {{#ask: [[IsFileAttachmentOf::{{FULLPAGENAME}}]] -->
Line 15: Line 15:
<!-- <div class="fileupload-auto-reload">{{#batchupload:OslTemplate:ELN/Attachment|{{FULLPAGENAME}}|{{REVISIONUSER}}}}</div> -->
<!-- <div class="fileupload-auto-reload">{{#batchupload:OslTemplate:ELN/Attachment|{{FULLPAGENAME}}|{{REVISIONUSER}}}}</div> -->
{{#batchupload:}}
{{#batchupload:}}
|}}
<!--|}}-->
header_template
Line 1: Line 1:
<table class="info_box" style="height: 33px;border: 0;background-color: unset;">
<tr><td style="border: 0; display: flex;justify-content: right;" colspan="2">
    <div class="pagebot-button" data-config='{
    "action": "edit",
    "class": "btn btn-outline-secondary",
    "icon_class": "icon icon-edit",
    "label": "",
    "tooltip": "Edit page"
}'></div><div class="pagebot-button" data-config='{
    "action": "edit-data",
    "class": "btn btn-outline-secondary",
    "icon_class": "icon icon-menu",
    "label": ""
}'></div><div class="pagebot-button" data-config='{
    "action": "copy",
    "class": "btn btn-outline-secondary",
    "icon_class": "icon icon-copy",
    "label": ""
}'></div><div class="pagebot-button" data-config='{
    "action": "export",
    "class": "btn btn-outline-secondary",
    "icon_class": "icon icon-download",
    "label": ""
}'></div>{{#ifeq: {{NAMESPACE}}|Category|<div class="pagebot-button" data-config='{
    "action": "create-subcategory",
    "class": "btn btn-light",
    "icon_class": "icon icon-arrow-down",
    "label": ""
}'></div><div class="pagebot-button" data-config='{
    "action": "create-instance",
    "class": "btn btn-light",
    "icon_class": "icon icon-plus",
    "label": ""
}'></div><div class="pagebot-button" data-config='{
    "action": "query-instance",
    "class": "btn btn-light",
    "icon_class": "icon icon-search",
    "label": ""
}'></div>|}}</th>
</td>
</table>
<table class="info_box">
<table class="info_box">
<tr>
<tr>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.