Category:Item: Difference between revisions

Update package: OSW Core
No edit summary
Tag: Metadata slot edit
(Update package: OSW Core)
 
(7 intermediate revisions by 2 users not shown)
jsondata
Line 2: Line 2:
     "subclass_of": [
     "subclass_of": [
         "Category:Entity"
         "Category:Entity"
    ],
    "type": [
        "Category:Category"
     ],
     ],
     "uuid": "4240d9f1-cbe6-45bd-b932-0868584f7071",
     "uuid": "4240d9f1-cbe6-45bd-b932-0868584f7071",
Line 17: Line 14:
         }
         }
     ],
     ],
    "_debug": false,
     "description": [
     "description": [
         {
         {
Line 30: Line 26:
             "lang": "en"
             "lang": "en"
         }
         }
    ],
    "type": [
        "Category:Category"
     ]
     ]
}
}
jsonschema
Line 3: Line 3:
         "/wiki/Category:Entity?action=raw\u0026slot=jsonschema",
         "/wiki/Category:Entity?action=raw\u0026slot=jsonschema",
         {
         {
             "type_": {
             "type": {
                 "@id": "@type",
                 "@id": "Property:HasType",
                 "@type": "@id"
                 "@type": "@id"
             },
             },
             "type*": "Property:HasType"
             "type*": {
                "@id": "Property:HasSchema",
                "@type": "@id"
            }
         }
         }
     ],
     ],
Line 28: Line 31:
             "type": "array",
             "type": "array",
             "format": "table",
             "format": "table",
            "propertyOrder": -1000,
             "eval_template": [
             "eval_template": [
                 {
                 {
Line 42: Line 46:
                 "type": "string",
                 "type": "string",
                 "format": "autocomplete",
                 "format": "autocomplete",
                 "options": {
                 "subclassof_range": "Category:Item"
                    "autocomplete": {
                        "query": "[[IsA::Category:Category]] |?Display_title_of=label",
                        "render_template": {
                            "type": [
                                "handlebars"
                            ],
                            "value": "\u003Ca href='/wiki/{{result.fulltext}}'\u003E{{result.printouts.label.[0]}}\u003C/a\u003E"
                        }
                    }
                }
             },
             },
             "minLength": 1,
             "minItems": 1,
             "default": [
             "default": [
                 "Category:Item"
                 "Category:Item"
Line 62: Line 56:
                 "conditional_visible": {
                 "conditional_visible": {
                     "modes": [
                     "modes": [
                        "default",
                         "query"
                         "query"
                     ]
                     ]
footer_template
Line 1: Line 1:
=={{#switch:{{USERLANGUAGECODE}}|en=Graph|de=Graph}}==
<h2 class="section-collapsible-initial-collapsed section-heading--collapsed">{{#switch:{{USERLANGUAGECODE}}|en=Graph|de=Graph}}</h2>
<div style="width: 100%;" class="InteractiveSemanticGraph" data-config='{ "root":"{{FULLPAGENAME}}", "properties":["Subcategory of","-Subcategory of","-IsASubcategoryOf","IsASubcategoryOf","-IsInstanceOf","IsLocatedIn", "HasFileAttachment"], "ignore_properties":["IsA"], "permalink":true, "depth":2, "edit": true}'></div>
<div style="width: 100%;" class="InteractiveSemanticGraph" data-config='{ "root":"{{FULLPAGENAME}}", "properties":["HasSchema", "SubClassOf", "HasImage", "IsLocatedIn"], "ignore_properties":["Subcategory_of", "-Subcategory_of", "Has_query", "Display_title_of", "Display_title_of_lowercase", "Display_title_of_normalized"], "permalink":true, "depth":1, "edit": true,  "query_limit":25}'></div>
<br>
<br>
<br>
<h2 class="section-collapsible-initial-collapsed section-heading--collapsed">{{#switch:{{USERLANGUAGECODE}}|en=QR Code|de=QR-Code|#default=QR Code}}</h2>
<div class="QrCodeGenerator" data-config='{
    "text": "{{fullurl:{{FULLPAGENAME}}}}",
    "heading": "{{{label|{{#ask:[[{{FULLPAGENAME}}]]|?HasLabel.[0].text=|mainlabel=-}}}}}",
    "image": true,
    "print": true,
    "print_unit": "mm",
    "print_format": [29,42],
    "print_margin": [3,3,3,3],
    "print_scale": 0.115
}' style="width: 200px;"></div>