VisualDataSchema:Images: Difference between revisions

From Visual Data Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 60: Line 60:
                             "type": "content-block",
                             "type": "content-block",
                             "name": "new_content_block",
                             "name": "new_content_block",
                             "content": "{{#visualdataquery:[[name::{{PAGEID}}]]\n|?image\n|schema=image\n|format=template\n|template=image_preview\n}}"
                             "content": "{{#visualdataquery:[[name::{{PAGEID}}]]\n|?image\n|schema=images\n|format=template\n|template=image_preview\n}}"
                         },
                         },
                         "type": "object",
                         "type": "object",

Revision as of 16:25, 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/jpeg"
"image/pjpeg"
"image/webp"
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"{{#visualdataquery:[[name::{{PAGEID}}]] |?image |schema=images |format=template |template=image_preview }}"
type"object"
description"schema does not exist"
required
"image"
type"array"
uniqueItemstrue
type"object"