Category:Item: Difference between revisions

Update package: OSW Core
(test)
Tag: Metadata slot edit
(Update package: OSW Core)
 
(3 intermediate revisions by one other user not shown)
jsondata
Line 18: Line 18:
             "text": "Item",
             "text": "Item",
             "lang": "en"
             "lang": "en"
        },
        {
            "text": "Item",
            "lang": "de"
         }
         }
     ],
     ],
jsonschema
Line 46: Line 46:
                 "type": "string",
                 "type": "string",
                 "format": "autocomplete",
                 "format": "autocomplete",
                 "options": {
                 "subclassof_range": "Category:Item"
                    "autocomplete": {
                        "query": "[[HasType::Category:Category]] |?Display_title_of=label"
                    }
                }
             },
             },
             "minItems": 1,
             "minItems": 1,
Line 60: Line 56:
                 "conditional_visible": {
                 "conditional_visible": {
                     "modes": [
                     "modes": [
                        "default",
                         "query"
                         "query"
                     ]
                     ]
footer_template
Line 1: Line 1:
<h2 class="section-collapsible-initial-collapsed section-heading--collapsed">{{#switch:{{USERLANGUAGECODE}}|en=Graph|de=Graph}}</h2>
<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":["IsA","-IsA","HasSchema", "-IsInstanceOf","IsLocatedIn"], "ignore_properties":["Subcategory_of", "-Subcategory_of", "Has_query", "Display_title_of", "Display_title_of_lowercase", "Display_title_of_normalized"], "permalink":true, "depth":2, "edit": true,  "query_limit":25}'></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>