VisualDataSchema:Article: Difference between revisions

From Wikiyouth
Jump to navigation Jump to search
No edit summary
No edit summary
Line 32: Line 32:
                     "name": "author",
                     "name": "author",
                     "type": "property",
                     "type": "property",
                    "visibility": "visible",
                     "multiple-items": true,
                     "multiple-items": true,
                    "label-parsed": "Author",
                    "help-message-parsed": "Can be multiple authors.",
                    "default-parsed": [],
                    "visibility": "visible",
                     "preferred-input": "OO.ui.TagMultiselectWidget",
                     "preferred-input": "OO.ui.TagMultiselectWidget",
                     "input-config": [],
                     "input-config": [],
Line 43: Line 40:
                 "format": "text",
                 "format": "text",
                 "title": "Author",
                 "title": "Author",
                 "description": "Can be multiple authors.",
                 "description": "Can be multiple authors",
                 "default": []
                 "default": []
             },
             },
Line 67: Line 64:
         "project": {
         "project": {
             "wiki": {
             "wiki": {
                "name": "project",
                 "type": "property",
                 "type": "property",
                 "name": "project",
                 "multiple-items": false,
                "required": true,
                "label-parsed": "Project",
                "help-message-parsed": "Must be registered with the \u003Ca href=\"/wiki/Projects\" title=\"Projects\"\u003EProject\u003C/a\u003E form",
                 "visibility": "visible",
                 "visibility": "visible",
                "multiple-items": false,
                 "preferred-input": "LookupElement",
                 "preferred-input": "LookupElement",
                 "input-config": [],
                 "input-config": [],
Line 77: Line 77:
                 "askquery-printouts": [
                 "askquery-printouts": [
                     "name"
                     "name"
                 ],
                 ]
                "required": true
             },
             },
             "type": "string",
             "type": "string",

Revision as of 10:33, 23 February 2024

wiki
type"schema"
name"Article"
properties
title
wiki
name"title"
type"property"
multiple-itemsfalse
requiredtrue
label-parsed"Title"
visibility"visible"
preferred-input"OO.ui.TextInputWidget"
input-config
Empty array
type"string"
format"text"
title"Title"
authors
wiki
name"authors"
min-items1
unique-itemsfalse
type"schema"
items
type"string"
wiki
name"author"
type"property"
visibility"visible"
multiple-itemstrue
preferred-input"OO.ui.TagMultiselectWidget"
input-config
Empty array
requiredfalse
format"text"
title"Author"
description"Can be multiple authors"
default
Empty array
type"array"
minItems1
uniqueItemsfalse
date
wiki
name"date"
type"property"
multiple-itemsfalse
label-parsed"Date"
visibility"visible"
preferred-input"mw.widgets.DateInputWidget"
input-config
Empty array
requiredfalse
type"string"
format"date"
title"Date"
project
wiki
name"project"
type"property"
multiple-itemsfalse
requiredtrue
label-parsed"Project"
help-message-parsed"Must be registered with the <a href="/wiki/Projects" title="Projects">Project</a> form"
visibility"visible"
preferred-input"LookupElement"
input-config
Empty array
options-askquery"[[name::+]]"
askquery-schema"Project"
askquery-printouts
"name"
type"string"
format"text"
title"Project"
description"Must be registered with the [[Projects|Project]] form"
role
wiki
name"role"
type"property"
multiple-itemsfalse
options-allow-nulltrue
label-parsed"Role"
visibility"visible"
preferred-input"OO.ui.DropdownInputWidget"
input-config
Empty array
requiredfalse
options-values-parsed
""
volunteer"volunteer"
project coordinator"project coordinator"
partecipant"partecipant"
other"other"
enum
""
"volunteer"
"project coordinator"
"partecipant"
"other"
type"string"
format"text"
title"Role"
required
"title"
"project"
type"object"
[Mark as patrolled]