259
edits
(add cycling steps) Tag: Metadata slot edit |
(fix) Tag: Metadata slot edit |
||
(4 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 33: | Line 44: | ||
"title": "Cycling Steps", | "title": "Cycling Steps", | ||
"type": "array", | "type": "array", | ||
" | "format": "tabs", | ||
"eval_template": [ | |||
{ | |||
"type": "mustache-wikitext", | |||
"mode": "render", | |||
"value": "{{#cyclingSteps}} {{name}}: {{numberOfCycles}} cycles \u003Cbr\u003E {{/cyclingSteps}}" | |||
} | |||
], | |||
"items": { | "items": { | ||
"type": "object", | "type": "object", | ||
"title": "Step", | "title": "Step", | ||
"headerTemplate": "Step {{ i1 }} - {{ self.name }}", | |||
"required": [ | "required": [ | ||
"uuid" | "uuid" | ||
Line 55: | Line 74: | ||
"name": { | "name": { | ||
"title": "Name", | "title": "Name", | ||
" | "type": "string" | ||
}, | }, | ||
"numberOfCycles": { | "numberOfCycles": { |