534
edits
|  (Update package: OSW Core) |  (Update package: OSW Core) | ||
| jsonschema | |||
|---|---|---|---|
| Line 21: | Line 21: | ||
|              "@id": "@type" |              "@id": "@type" | ||
|          }, |          }, | ||
|         "uuid*": "Property:HasUuid", | |||
|          "name*": "Property:HasName", |          "name*": "Property:HasName", | ||
|          "label": "skos:prefLabel", |          "label": "skos:prefLabel", | ||
| Line 35: | Line 36: | ||
|          "image": "schema:image", |          "image": "schema:image", | ||
|          "image*": "Property:HasImage", |          "image*": "Property:HasImage", | ||
|         "based_on": "skos:isBasedOn", | |||
|         "based_on*": { | |||
|             "@id": "Property:IsBasedOn", | |||
|             "@type": "@id" | |||
|         }, | |||
|          "short_name": "Property:HasShortName", |          "short_name": "Property:HasShortName", | ||
|          "statements": "Property:HasStatement" |          "statements": "Property:HasStatement", | ||
|         "attachments*": { | |||
|             "@id": "Property:HasFileAttachment", | |||
|             "@type": "@id" | |||
|         } | |||
|      }, |      }, | ||
|      "uuid": "ce353767-c628-45bd-9d88-d6eb3009aec0", |      "uuid": "ce353767-c628-45bd-9d88-d6eb3009aec0", | ||
| Line 114: | Line 124: | ||
|                  "type": "mustache-wikitext", |                  "type": "mustache-wikitext", | ||
|                  "mode": "render", |                  "mode": "render", | ||
|                  "value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%={{ }}=%\u003E {{# |                  "value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%={{ }}=%\u003E {{#short_name}} |{{lang}}={{text}} {{/short_name}} {{=\u003C% %\u003E=}} }}" | ||
|              }, |              }, | ||
|              "items": { |              "items": { | ||
| Line 175: | Line 185: | ||
|                  } |                  } | ||
|              ] |              ] | ||
|         }, | |||
|         "based_on": { | |||
|             "type": "array", | |||
|             "title": "Based on", | |||
|             "title*": { | |||
|                 "de": "Basierend auf" | |||
|             }, | |||
|             "description": "Other entities on which this one is based, e.g. when it is created by copying", | |||
|             "description*": { | |||
|                 "de": "Andere Entitäten auf die diese basiert, z. B. wenn sie durch Kopieren entstanden ist" | |||
|             }, | |||
|             "items": { | |||
|                 "type": "string" | |||
|             }, | |||
|             "options": { | |||
|                 "hidden": "true" | |||
|             } | |||
|          }, |          }, | ||
|          "statements": { |          "statements": { | ||
| Line 183: | Line 210: | ||
|              }, |              }, | ||
|              "format": "tabs", |              "format": "tabs", | ||
|             "propertyOrder": 1010, | |||
|              "eval_template": { |              "eval_template": { | ||
|                  "type": "mustache-wikitext", |                  "type": "mustache-wikitext", | ||
| Line 190: | Line 218: | ||
|              "items": { |              "items": { | ||
|                  "$ref": "/wiki/JsonSchema:Statement?action=raw" |                  "$ref": "/wiki/JsonSchema:Statement?action=raw" | ||
|             } | |||
|         }, | |||
|         "attachments": { | |||
|             "type": "array", | |||
|             "title": "File attachments", | |||
|             "title*": { | |||
|                 "de": "Dateianhänge" | |||
|             }, | |||
|             "eval_template": { | |||
|                 "type": "mustache-wikitext", | |||
|                 "mode": "render", | |||
|                 "value": "{{=\u003C% %\u003E=}} \u003C%={{ }}=%\u003E {{#attachments}} [[{{{.}}}]] \u003Cbr\u003E {{/attachments}} {{=\u003C% %\u003E=}}" | |||
|             }, | |||
|             "options": { | |||
|                 "collapsed": true | |||
|             }, | |||
|             "propertyOrder": 1020, | |||
|             "items": { | |||
|                 "title": "Attachment", | |||
|                 "title*": { | |||
|                     "de": "Anhang" | |||
|                 }, | |||
|                 "type": "string", | |||
|                 "format": "url", | |||
|                 "options": { | |||
|                     "upload": {} | |||
|                 }, | |||
|                 "links": [ | |||
|                     { | |||
|                         "href": "{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}\u0026width=200\u0026height=200{{/if}}", | |||
|                         "mediaType": "image" | |||
|                     }, | |||
|                     { | |||
|                         "href": "{{#if self}}/w/index.php?title=Special:Redirect/file/{{self}}{{/if}}", | |||
|                         "rel": "{{#if self}}download{{/if}}", | |||
|                         "download": true | |||
|                     } | |||
|                 ] | |||
|              } |              } | ||
|          } |          } | ||
|      } |      } | ||
| } | } | ||
| footer_template | |||
| Line 1: | Line 1: | ||
| {{#if: {{{attachments|}}} | | |||
| =={{{_label_attachments| {{#switch:{{USERLANGUAGECODE}}|en=Attachments|de=Anhang|#default=Attachments}} }}}== | |||
| <!-- {{#ask: [[IsFileAttachmentOf::{{FULLPAGENAME}}]] --> | |||
| {{#ask: [[-HasFileAttachment::{{FULLPAGENAME}}]] | |||
| |?HasName | |||
| <!-- |?HasName #=Name  | |||
| |?HasUrl=Link  | |||
| |?Modification date=Zuletzt geändert  --> | |||
| |?HasUrl | |||
| |format=gallery | |||
| |redirects=HasUrl<!-- Links direct to download --> | |||
| |captionproperty=HasName | |||
| }} <!-- With format=table chem and math formular fail to render on page!?! --> | |||
| <!-- With format=datatable VE page safe fails!?! --> | |||
| <!-- <div class="fileupload-auto-reload">{{#batchupload:OslTemplate:ELN/Attachment|{{FULLPAGENAME}}|{{REVISIONUSER}}}}</div> --> | |||
| {{#batchupload:}} | |||
| |}} | |||
| header_template | |||
| Line 5: | Line 5: | ||
|      "class": "btn btn-outline-secondary",   |      "class": "btn btn-outline-secondary",   | ||
|      "icon_class": "icon icon-edit", |      "icon_class": "icon icon-edit", | ||
|      "label": "" |      "label": "", | ||
|     "tooltip": "Edit page" | |||
| }'></div><div class="pagebot-button" data-config='{ | }'></div><div class="pagebot-button" data-config='{ | ||
|      "action": "edit-data", |      "action": "edit-data", | ||
|      "class": "btn btn-outline-secondary",   |      "class": "btn btn-outline-secondary",   | ||
|      "icon_class": "icon icon-menu", |      "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": "" |      "label": "" | ||
| }'></div>{{#ifeq: {{NAMESPACE}}|Category|<div class="pagebot-button" data-config='{ | }'></div>{{#ifeq: {{NAMESPACE}}|Category|<div class="pagebot-button" data-config='{ | ||
|      "action": "create-subcategory", |      "action": "create-subcategory", | ||
|      "class": "btn btn-light",   |      "class": "btn btn-light",   | ||
|      "icon_class": "icon icon- |      "icon_class": "icon icon-arrow-down", | ||
|      "label": "" |      "label": "" | ||
| }'></div><div class="pagebot-button" data-config='{ | }'></div><div class="pagebot-button" data-config='{ | ||
edits