VisualDataSchema:Images: Difference between revisions

From Visual Data Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: Line 19:
                 },
                 },
                 "properties": {
                 "properties": {
                    "new_content_block": {
                        "wiki": {
                            "type": "content-block",
                            "name": "new_content_block",
                            "content": "[[File:animal-4691724_1920.jpg|300px]]"
                        },
                        "type": "object",
                        "description": "\u003Cspan typeof=\"mw:File\"\u003E\u003Ca href=\"/wiki/File:Animal-4691724_1920.jpg\" class=\"mw-file-description\"\u003E\u003Cimg src=\"/images/thumb/8/81/Animal-4691724_1920.jpg/300px-Animal-4691724_1920.jpg\" decoding=\"async\" width=\"300\" height=\"200\" class=\"mw-file-element\" srcset=\"/images/thumb/8/81/Animal-4691724_1920.jpg/450px-Animal-4691724_1920.jpg 1.5x, /images/thumb/8/81/Animal-4691724_1920.jpg/600px-Animal-4691724_1920.jpg 2x\" data-file-width=\"1920\" data-file-height=\"1280\" /\u003E\u003C/a\u003E\u003C/span\u003E"
                    },
                     "image": {
                     "image": {
                         "wiki": {
                         "wiki": {
Line 64: Line 55:
                         "type": "string",
                         "type": "string",
                         "format": "text"
                         "format": "text"
                    },
                    "new_content_block": {
                        "wiki": {
                            "type": "content-block",
                            "name": "new_content_block",
                            "content": "[[File:animal-4691724_1920.jpg|300px|link=]]"
                        },
                        "type": "object",
                        "description": "\u003Cspan typeof=\"mw:File\"\u003E\u003Cspan\u003E\u003Cimg src=\"/images/thumb/8/81/Animal-4691724_1920.jpg/300px-Animal-4691724_1920.jpg\" decoding=\"async\" width=\"300\" height=\"200\" class=\"mw-file-element\" srcset=\"/images/thumb/8/81/Animal-4691724_1920.jpg/450px-Animal-4691724_1920.jpg 1.5x, /images/thumb/8/81/Animal-4691724_1920.jpg/600px-Animal-4691724_1920.jpg 2x\" data-file-width=\"1920\" data-file-height=\"1280\" /\u003E\u003C/span\u003E\u003C/span\u003E"
                     }
                     }
                 },
                 },

Revision as of 16:36, 23 February 2024

wiki
type"schema"
name"Images"
properties
image-container
wiki
name"image-container"
unique-itemstrue
type"schema"
items
type"object"
wiki
name"image"
type"schema"
layout"section"
properties
image
wiki
name"image"
type"property"
multiple-itemsfalse
requiredtrue
input-config
accept
"image/png"
"image/gif"
"image/jpeg"
"image/pjpeg"
"image/webp"
droppabletrue
showDropTargettrue
value-prefix"File:"
visibility"visible"
preferred-input"OO.ui.SelectFileWidget"
type"string"
format"text"
caption
wiki
name"caption"
type"property"
multiple-itemsfalse
visibility"visible"
preferred-input"OO.ui.TextInputWidget"
input-config
Empty array
requiredfalse
type"string"
format"text"
new_content_block
wiki
type"content-block"
name"new_content_block"
content"[[File:animal-4691724_1920.jpg|300px|link=]]"
type"object"
description"<span typeof="mw:File"><span><img src="/images/thumb/8/81/Animal-4691724_1920.jpg/300px-Animal-4691724_1920.jpg" decoding="async" width="300" height="200" class="mw-file-element" srcset="/images/thumb/8/81/Animal-4691724_1920.jpg/450px-Animal-4691724_1920.jpg 1.5x, /images/thumb/8/81/Animal-4691724_1920.jpg/600px-Animal-4691724_1920.jpg 2x" data-file-width="1920" data-file-height="1280" /></span></span>"
required
"image"
type"array"
uniqueItemstrue
type"object"