Category:OSW69f251a900944602a08d1cca830249b5: Difference between revisions

m
Protected "Sub Quantity Property": Protected as read-only import via Page Exchange extension ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]
(Update package: OSW Core)
m (Protected "Sub Quantity Property": Protected as read-only import via Page Exchange extension ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
 
(2 intermediate revisions by the same user not shown)
jsondata
Line 1: Line 1:
{
{
    "type": [
"type": [
        "Category:Category"
"Category:Category"
    ],
],
    "subclass_of": [
"subclass_of": [
        "Category:QuantityProperty"
"Category:QuantityProperty"
    ],
],
    "uuid": "69f251a9-0094-4602-a08d-1cca830249b5",
"uuid": "69f251a9-0094-4602-a08d-1cca830249b5",
    "label": [
"label": [
        {
{
            "text": "Sub Quantity Property",
"text": "Sub Quantity Property",
            "lang": "en"
"lang": "en"
        },
},
        {
{
            "text": "Untergrößenattribut",
"text": "Untergrößenattribut",
            "lang": "de"
"lang": "de"
        }
}
    ],
],
    "description": [
"description": [
        {
{
            "text": "Is the sub-property of a main quantity or other sub-quantity and inherits its valid units. Can define a subset of input and display units from it.",
"text": "Is the sub-property of a main quantity or other sub-quantity and inherits its valid units. Can define a subset of input and display units from it.",
            "lang": "en"
"lang": "en"
        },
},
        {
{
            "text": "Ist das Unterattribut einer Hauptgröße oder einer anderen Untergröße und erbt dessen gültige Einheiten. Kann daraus ein Untermenge von Eingabe- und Anzeigeeinheiten definieren.",
"text": "Ist das Unterattribut einer Hauptgröße oder einer anderen Untergröße und erbt dessen gültige Einheiten. Kann daraus ein Untermenge von Eingabe- und Anzeigeeinheiten definieren.",
            "lang": "de"
"lang": "de"
        }
}
    ],
],
    "name": "SubQuantityProperty"
"name": "SubQuantityProperty"
}
}
jsonschema
Line 1: Line 1:
{
{
    "@context": [
"@context": [
        "/wiki/Category:QuantityProperty?action=raw\u0026slot=jsonschema",
"/wiki/Category:QuantityProperty?action=raw\u0026slot=jsonschema",
        {
{
            "display_units": {
"display_units": {
                "@id": "Property:HasDisplayUnit",
"@id": "Property:HasDisplayUnit",
                "@type": "@id"
"@type": "@id"
            }
},
        }
"input_units": {
    ],
"@id": "Property:HasInputUnit",
    "allOf": [
"@type": "@id"
        {
}
            "$ref": "/wiki/Category:QuantityProperty?action=raw\u0026slot=jsonschema"
}
        }
],
    ],
"allOf": [
    "type": "object",
{
    "uuid": "69f251a9-0094-4602-a08d-1cca830249b5",
"$ref": "/wiki/Category:QuantityProperty?action=raw\u0026slot=jsonschema"
    "title": "SubQuantityProperty",
}
    "title*": {
],
        "en": "Sub Quantity Property",
"type": "object",
        "de": "Untergrößenattribut"
"uuid": "69f251a9-0094-4602-a08d-1cca830249b5",
    },
"title": "SubQuantityProperty",
    "description": "Is the sub-property of a main quantity or other sub-quantity and inherits its valid units. Can define a subset of input and display units from it.",
"title*": {
    "description*": {
"en": "Sub Quantity Property",
        "en": "Is the sub-property of a main quantity or other sub-quantity and inherits its valid units. Can define a subset of input and display units from it.",
"de": "Untergrößenattribut"
        "de": "Ist das Unterattribut einer Hauptgröße oder einer anderen Untergröße und erbt dessen gültige Einheiten. Kann daraus ein Untermenge von Eingabe- und Anzeigeeinheiten definieren."
},
    },
"description": "Is the sub-property of a main quantity or other sub-quantity and inherits its valid units. Can define a subset of input and display units from it.",
    "required": [
"description*": {
        "subproperty_of",
"en": "Is the sub-property of a main quantity or other sub-quantity and inherits its valid units. Can define a subset of input and display units from it.",
        "base_property",
"de": "Ist das Unterattribut einer Hauptgröße oder einer anderen Untergröße und erbt dessen gültige Einheiten. Kann daraus ein Untermenge von Eingabe- und Anzeigeeinheiten definieren."
        "type"
},
    ],
"required": [
    "properties": {
"subproperty_of",
        "subproperty_of": {
"base_property",
            "title": "Subquantity of",
"type"
            "title*": {
],
                "de": "Untergröße von"
"properties": {
            },
"subproperty_of": {
            "type": "string",
"title": "Subquantity of",
            "format": "autocomplete",
"title*": {
            "options": {
"de": "Untergröße von"
                "autocomplete": {
},
                    "category": "Category:QuantityProperty"
"items": {
                }
"type": "string",
            }
"format": "autocomplete",
        },
"range": "Category:QuantityProperty"
        "base_property": {
}
            "title": "Base quantity",
},
            "title*": {
"base_property": {
                "de": "Hauptgröße"
"title": "Base quantity",
            },
"title*": {
            "type": "string",
"de": "Hauptgröße"
            "format": "autocomplete",
},
            "options": {
"type": "string",
                "autocomplete": {
"format": "autocomplete",
                    "category": "Category:OSW1b15ddcf042c4599bd9d431cbfdf3430"
"options": {
                }
"autocomplete": {
            }
"category": "Category:OSW1b15ddcf042c4599bd9d431cbfdf3430"
        },
}
        "display_units": {
}
            "title": "Display units",
},
            "title*": {
"display_units": {
                "de": "Anzeigeeinheiten"
"title": "Display units",
            },
"title*": {
            "type": "array",
"de": "Anzeigeeinheiten"
            "minItems": 1,
},
            "uniqueItems": true,
"type": "array",
            "eval_template": {
"minItems": 1,
                "type": "mustache-wikitext",
"uniqueItems": true,
                "mode": "render",
"watch": {
                "value": "{{#display_units}} [[{{{.}}}]] \u003Cbr\u003E {{/display_units}}"
"base_property": "base_property"
            },
},
            "items": {
"items": {
                "title": "Unit",
"title": "Unit",
                "title*": {
"title*": {
                    "de": "Einheit"
"de": "Einheit"
                },
},
                "type": "string",
"type": "string",
                "format": "autocomplete",
"format": "autocomplete",
                "options": {
"options": {
                    "autocomplete": {
"autocomplete": {
                        "query": "[[-HasDisplayUnit::{{base_property}}]]|?Display_title_of=label",
"query": "[[-HasDisplayUnit::{{base_property}}]][[Display_title_of::~*{{{_user_input}}}*]]|?Display_title_of=label"
                        "render_template": {
}
                            "type": [
}
                                "handlebars"
}
                            ],
},
                            "value": "{{result.printouts.label.[0]}}"
"input_units": {
                        }
"title": "Input units",
                    }
"title*": {
                }
"de": "Eingabeeinheiten"
            }
},
        },
"type": "array",
        "input_units": {
"minItems": 1,
            "title": "Input units",
"uniqueItems": true,
            "title*": {
"watch": {
                "de": "Eingabeeinheiten"
"base_property": "base_property"
            },
},
            "type": "array",
"items": {
            "minItems": 1,
"title": "Unit",
            "uniqueItems": true,
"title*": {
            "eval_template": {
"de": "Einheit"
                "type": "mustache-wikitext",
},
                "mode": "render",
"type": "string",
                "value": "{{#input_units}} [[{{{.}}}]] \u003Cbr\u003E {{/input_units}}"
"format": "autocomplete",
            },
"options": {
            "items": {
"autocomplete": {
                "title": "Unit",
"query": "[[-HasInputUnit::{{base_property}}]][[Display_title_of::~*{{{_user_input}}}*]]|?Display_title_of=label"
                "title*": {
}
                    "de": "Einheit"
}
                },
}
                "type": "string",
},
                "format": "autocomplete",
"type": {
                "options": {
"default": [
                    "autocomplete": {
"Category:OSW69f251a900944602a08d1cca830249b5"
                        "query": "[[-HasInputUnit::{{base_property}}]]|?Display_title_of=label",
]
                        "render_template": {
}
                            "type": [
}
                                "handlebars"
                            ],
                            "value": "{{result.printouts.label.[0]}}"
                        }
                    }
                }
            }
        },
        "type": {
            "default": [
                "Category:OSW69f251a900944602a08d1cca830249b5"
            ]
        }
    }
}
}
header_template
Line 13: Line 13:
</table>  <!--  
</table>  <!--  
-->{{#set:  
-->{{#set:  
   |Corresponds to={{#ask: [[{{{base_quantity}}}]] |?Corresponds to |mainlabel=- |headers=hide |format=plainlist |link=none |valuesep=;}} |+sep=;
   |Corresponds to={{#ask: [[{{{base_property}}}]] |?Corresponds to |mainlabel=- |headers=hide |format=plainlist |link=none |valuesep=;}} |+sep=;
}}<!--  
}}<!--  
-->{{#if: {{{display_units|}}} | <!-- set specified display units if defined-->
-->{{#if: {{{display_units|}}} | <!-- set specified display units if defined-->