Category:Item: Difference between revisions

1,911 bytes removed ,  Thursday at 04:35
m
Protected "Item": Protected as read-only import via Page Exchange extension ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]
(Install package: OSW Core)
 
m (Protected "Item": Protected as read-only import via Page Exchange extension ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading])
 
(3 intermediate revisions by the same user not shown)
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"], "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>
jsondata
Line 12: Line 12:
             "text": "Gegenstand",
             "text": "Gegenstand",
             "lang": "de"
             "lang": "de"
        }
    ],
    "_debug": false,
    "description": [
        {
            "text": "Item",
            "lang": "en"
         }
         }
     ],
     ],
Line 27: Line 20:
             "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_": {
             "exact_ontology_match***": {
                 "@id": "@type",
                 "@id": "owl:sameAs",
                 "@type": "@id"
                 "@type": "@id"
             },
             },
             "type*": "Property:HasType"
             "rdf_type*": {
                "@id": "schema:additionalType"
            }
         }
         }
     ],
     ],
    "type": "object",
    "title": "Item",
     "allOf": [
     "allOf": [
         {
         {
            "type": "object",
             "$ref": "/wiki/Category:Entity?action=raw\u0026slot=jsonschema"
             "$ref": "/wiki/Category:Entity?action=raw\u0026slot=jsonschema"
         }
         }
     ],
     ],
    "type": "object",
    "title": "Item",
    "title*": {
        "de": "Item"
    },
     "required": [
     "required": [
         "type"
         "type"
Line 23: Line 27:
     "properties": {
     "properties": {
         "type": {
         "type": {
            "title": "Types/Categories",
            "title*": {
                "de": "Typen/Kategorien"
            },
            "type": "array",
            "format": "table",
            "eval_template": [
                {
                    "type": "mustache-wikitext",
                    "mode": "render",
                    "value": "{{#type}} [[:{{{.}}}]] \u003Cbr\u003E{{/type}}"
                }
            ],
             "items": {
             "items": {
                 "title": "Type",
                 "subclassof_range": "Category:Item",
                "title*": {
                    "de": "Type"
                },
                "type": "string",
                 "format": "autocomplete",
                 "format": "autocomplete",
                 "options": {
                 "options": {
                     "autocomplete": {
                     "autocomplete": {
                         "query": "[[IsA::Category:Category]] |?Display_title_of=label",
                         "$comment": "All categories here since subclassof_range is limited by depth 5",
                         "render_template": {
                         "query": "[[:Category:%2B]]"
                            "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 63: Line 45:
                 "conditional_visible": {
                 "conditional_visible": {
                     "modes": [
                     "modes": [
                        "default",
                         "query"
                         "query"
                     ]
                     ]
                }
            }
        },
        "entry_access": {
            "type": "object",
            "title": "Access restrictions",
            "title*": {
                "de": "Zugriffsbeschränkungen"
            },
            "eval_template": {
                "type": "mustache-wikitext",
                "mode": "render",
                "value": "{{=\u003C% %\u003E=}} {{#ifeq: \u003C%={{ }}=%\u003E {{{entry_access.read.level}}} {{=\u003C% %\u003E=}} |public|{{#set: |Visible to=public }} | }} \u003C%={{ }}=%\u003E"
            },
            "properties": {
                "read": {
                    "type": "object",
                    "title": "Read access",
                    "title*": {
                        "de": "Lesezugriff"
                    },
                    "properties": {
                        "level": {
                            "type": "string",
                            "title": "Level",
                            "title*": {
                                "de": "Level"
                            },
                            "enum": [
                                "public",
                                "internal",
                                "restricted"
                            ],
                            "options": {
                                "enum_titles": [
                                    "Public",
                                    "For all users",
                                    "For some users"
                                ],
                                "enum_titles*": [
                                    "Öffentlich",
                                    "Für alle Nutzer",
                                    "Für bestimmte Nutzer"
                                ]
                            }
                        }
                    }
                 }
                 }
             }
             }