259
edits
No edit summary Tag: Metadata slot edit |
(fix) Tag: Metadata slot edit |
||
(5 intermediate revisions by the same user not shown) | |||
jsonschema | |||
---|---|---|---|
Line 1: | Line 1: | ||
{ | { | ||
"@context": [ | "@context": [ | ||
"/wiki/Category:Item?action=raw\u0026slot=jsonschema" | "/wiki/Category:Item?action=raw\u0026slot=jsonschema", | ||
{ | |||
"cyclingSteps": "Property:HasPart", | |||
"name": { | |||
"@type": "@id", | |||
"@id": "Property:HasName" | |||
}, | |||
"numberOfCycles": { | |||
"@type": "@id", | |||
"@id": "Property:HasNumberOfCycles" | |||
} | |||
} | |||
], | ], | ||
"allOf": [ | "allOf": [ | ||
Line 20: | Line 31: | ||
"required": [ | "required": [ | ||
"type" | "type" | ||
], | |||
"defaultProperties": [ | |||
"cyclingSteps" | |||
], | ], | ||
"properties": { | "properties": { | ||
Line 26: | Line 40: | ||
"Category:OSW2cdabebb4d1b4aa19407941ebc7cebfc" | "Category:OSW2cdabebb4d1b4aa19407941ebc7cebfc" | ||
] | ] | ||
}, | |||
"cyclingSteps": { | |||
"title": "Cycling Steps", | |||
"type": "array", | |||
"format": "tabs", | |||
"eval_template": [ | |||
{ | |||
"type": "mustache-wikitext", | |||
"mode": "render", | |||
"value": "{{#cyclingSteps}} {{name}}: {{numberOfCycles}} cycles \u003Cbr\u003E {{/cyclingSteps}}" | |||
} | |||
], | |||
"items": { | |||
"type": "object", | |||
"title": "Step", | |||
"headerTemplate": "Step {{ i1 }} - {{ self.name }}", | |||
"required": [ | |||
"uuid" | |||
], | |||
"defaultProperties": [ | |||
"name", | |||
"numberOfCycles" | |||
], | |||
"properties": { | |||
"uuid": { | |||
"title": "UUID", | |||
"type": "string", | |||
"format": "uuid", | |||
"options": { | |||
"hidden": true | |||
} | |||
}, | |||
"name": { | |||
"title": "Name", | |||
"type": "string" | |||
}, | |||
"numberOfCycles": { | |||
"title": "Number of cycles", | |||
"type": "string", | |||
"format": "number" | |||
} | |||
} | |||
} | |||
} | } | ||
} | } | ||
} | } |