VisualDataSchema:Page upload: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: content model change |
||
(14 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
"wiki": { | "wiki": { | ||
"type": "schema", | "type": "schema", | ||
"name": " | "uuid": "66142e96ec966", | ||
"name": "Page upload", | |||
"title": "Page upload", | |||
"description": "a multiple file upload with droppable area and caption. Uploaded files will be saved under the page holding this schema, using the '''pageId as prefix'''" | |||
}, | }, | ||
"properties": { | "properties": { | ||
Line 8: | Line 11: | ||
"wiki": { | "wiki": { | ||
"name": "files", | "name": "files", | ||
"type": "schema" | "title-parsed": "Files", | ||
"title": "Files", | |||
"min-items": 1, | |||
"unique-items": false, | |||
"type": "schema", | |||
"uuid": "66142e96ec96c" | |||
}, | }, | ||
"items": { | "items": { | ||
Line 15: | Line 23: | ||
"name": "file", | "name": "file", | ||
"type": "schema", | "type": "schema", | ||
"layout": "section" | "layout": "section", | ||
"uuid": "66142e96ec96f" | |||
}, | }, | ||
"properties": { | "properties": { | ||
"file": { | "file": { | ||
"wiki": { | "wiki": { | ||
"name": "file", | |||
"type": "property", | "type": "property", | ||
"multiple-items": false, | "multiple-items": false, | ||
"required": true, | "required": true, | ||
"input-config": { | |||
"accept": [ | |||
"image/svg+xml", | |||
"image/png", | |||
"image/gif", | |||
"image/jpeg", | |||
"image/pjpeg", | |||
"image/webp", | |||
"application/pdf", | |||
"image/tiff", | |||
"image/x-tiff", | |||
"image/bmp", | |||
"image/x-windows-bmp" | |||
], | |||
"droppable": true, | |||
"showDropTarget": true | |||
}, | |||
"label-parsed": "file", | |||
"value-prefix": "File:", | |||
"visibility": "visible", | |||
"preferred-input": "OO.ui.SelectFileWidget", | |||
"value-formula": "{{PAGEID}}-\u003Cvalue\u003E", | "value-formula": "{{PAGEID}}-\u003Cvalue\u003E", | ||
" | "uuid": "66142e96ec971" | ||
}, | }, | ||
"type": "string", | "type": "string", | ||
Line 36: | Line 63: | ||
"caption": { | "caption": { | ||
"wiki": { | "wiki": { | ||
"name": "caption", | |||
"type": "property", | "type": "property", | ||
" | "multiple-items": false, | ||
"label-parsed": "caption", | |||
"visibility": "visible", | "visibility": "visible", | ||
"preferred-input": "OO.ui.TextInputWidget", | "preferred-input": "OO.ui.TextInputWidget", | ||
"input-config": [], | "input-config": [], | ||
"required": false, | "required": false, | ||
"property-model": "json-schema" | "property-model": "json-schema", | ||
"uuid": "66142e96ec977" | |||
}, | }, | ||
"type": "string", | "type": "string", | ||
Line 52: | Line 81: | ||
"required": [ | "required": [ | ||
"file" | "file" | ||
] | ] | ||
}, | }, | ||
"type": "array", | "type": "array", | ||
Line 62: | Line 90: | ||
}, | }, | ||
"type": "object", | "type": "object", | ||
"title": " | "title": "Page upload", | ||
"description": "a multiple file upload with droppable area and caption. Uploaded files will be saved under the page holding this schema, using the \u003Cb\u003EpageId as prefix\u003C/b\u003E" | |||
} | } |
Latest revision as of 17:51, 8 April 2024
wiki |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | "object" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
title | "Page upload" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description | "a multiple file upload with droppable area and caption. Uploaded files will be saved under the page holding this schema, using the <b>pageId as prefix</b>" |