Category:OSW2cdabebb4d1b4aa19407941ebc7cebfc: Difference between revisions

fix
No edit summary
Tag: Metadata slot edit
 
(fix)
Tag: Metadata slot edit
 
(6 intermediate revisions by the same user not shown)
jsondata
Line 13: Line 13:
         }
         }
     ],
     ],
     "name": "BigMapCyclingProtocol"
     "name": "BigMapCyclingProtocol",
    "utf8_icon": [
        "📝"
    ],
    "description": [
        {
            "text": "Draft based on http://big-map-notebook.u-picardie.fr",
            "lang": "en"
        }
    ]
}
}
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 14: Line 25:
         "en": "BIG-MAP cycling protocol"
         "en": "BIG-MAP cycling protocol"
     },
     },
     "description": "",
     "description": "Draft based on http://big-map-notebook.u-picardie.fr",
     "description*": {},
     "description*": {
        "en": "Draft based on http://big-map-notebook.u-picardie.fr"
    },
     "required": [
     "required": [
         "type"
         "type"
    ],
    "defaultProperties": [
        "cyclingSteps"
     ],
     ],
     "properties": {
     "properties": {
Line 24: 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"
                    }
                }
            }
         }
         }
     }
     }
}
}