Category:OSWe427aafafbac4262955b9f690a83405d: Difference between revisions

Update package: OSW Core
(Update package: OSW Core)
Tag: Blanking
(Update package: OSW Core)
Line 1: Line 1:
=={{#switch:{{USERLANGUAGECODE}}|en=Instances|de=Instanzen|#default=Instances}}== 
{{#ask: [[{{FULLPAGENAME}}]]
|?HasType={{#switch:{{USERLANGUAGECODE}}|en=Type|de=Typ|#default=Type}}
|?HasDescription={{#switch:{{USERLANGUAGECODE}}|en=Description|de=Beschreibung|#default=Description}}
|format=datatable
|limit = 2000
}}


=={{#switch:{{USERLANGUAGECODE}}|en=Subcategories|de=Subkategorien|#default=Subcategories}}==
{{#ask:
[[SubClassOf::{{FULLPAGENAME}}]] OR
[[SubClassOf.SubClassOf::{{FULLPAGENAME}}]] OR
[[SubClassOf.SubClassOf.SubClassOf::{{FULLPAGENAME}}]] OR
[[SubClassOf.SubClassOf.SubClassOf.SubClassOf::{{FULLPAGENAME}}]] OR [[SubClassOf.SubClassOf.SubClassOf.SubClassOf.SubClassOf::{{FULLPAGENAME}}]]
|?HasDescription={{#switch:{{USERLANGUAGECODE}}|en=Description|de=Beschreibung|#default=Description}}
|format=datatable
|limit = 2000
}}
footer_template
Line 1: Line 1:
 
<!-- List of all events-->
<h2 class="section-collapsible-initial-collapsed section-heading--collapsed">{{#switch:{{USERLANGUAGECODE}}|#default=Events|de=Ereignisse}}</h2>
{{#ask:[[-HasEvent::{{FULLPAGENAME}}]] OR [[Category:OSWb97757b46edb430591758662c18d354d]][[HasTarget::{{FULLPAGENAME}}]]
|mainlabel={{#switch:{{USERLANGUAGECODE}}|#default=Event|de=Ereignis}}
|?HasType={{#switch:{{USERLANGUAGECODE}}|#default=Type|de=Typ}}
|?HasStartDate={{#switch:{{USERLANGUAGECODE}}|#default=Start|de=Start}}
|?HasEndDate={{#switch:{{USERLANGUAGECODE}}|#default=End|de=Ende}}
|?HasAction # - ={{#switch:{{USERLANGUAGECODE}}|#default=Action (Occupant @ Slot)|de=Aktion (Belegung @ Slot)}} |+ template = Query/SlotAction |sep=
|format=datatable
|datatables-searchPanes=true
|datatables-searchPanes.initCollapsed=true
|sort=HasEndDate
|order=desc
}}
<!-- Create Slot exchange event -->
<div class="pagebot-button"
    data-config='{
        "params":{
            "categories": [
                "Category:OSW5433f882b9f14dca81994e058c8ab4a0"
            ],
            "jsondata": {
                "target_object": {
                    "target_object_type": "{{#ask:[[{{FULLPAGENAME}}]]|?HasType#=|mainlabel=-|limit=1}}",
                    "target_object_instance": "{{FULLPAGENAME}}"
                }
            }
        },
        "label": " {{#switch: {{USERLANGUAGECODE}}
            |en=➕ Document maintenance event
            |de=➕ Wartungsereignis dokumentieren
            |#default=➕ Document maintenance event
        }}"
    }'>
</div>
<!--
This button uses a switch to see what's the type of the page it is placed on (EventSeries or MeetingSeries) and delivers a parameter for the creation of an element of the series (either Event or Meeting)
-->
jsondata
Line 1: Line 1:
{
{
    "type": [
"subclass_of": [
        "Category:Category"
"Category:Item"
    ],
],
    "subclass_of": [
"type": [
        "Category:Item"
"Category:Category"
    ],
],
    "uuid": "e427aafa-fbac-4262-955b-9f690a83405d",
"uuid": "e427aafa-fbac-4262-955b-9f690a83405d",
    "name": "Tool",
"label": [
    "label": [
{
        {
"text": "Tool",
            "text": "Tool",
"lang": "en"
            "lang": "en"
},
        },
{
        {
"text": "Werkzeug",
            "text": "Werkzeug",
"lang": "de"
            "lang": "de"
}
        }
],
    ],
"description": [
    "description": [
{
        {
"text": "Item that participates as a utility (almost) unchanged in a process",
            "text": "Item that participates as a utility (almost) unchanged in a process",
"lang": "en"
            "lang": "en"
},
        },
{
        {
"text": "Gegenstand der als Hilfsmittel (nahezu) unverändert in einem Prozess teilnimmt",
            "text": "Gegenstand der als Hilfsmittel (nahezu) unverändert in einem Prozess teilnimmt",
"lang": "de"
            "lang": "de"
}
        }
],
    ]
"name": "Tool",
"utf8_icon": [
"🔧"
]
}
}
jsonschema
Line 1: Line 1:
{
{
    "@context": [
"@context": [
        "/wiki/Category:Item?action=raw\u0026slot=jsonschema"
"/wiki/Category:Item?action=raw\u0026slot=jsonschema",
    ],
{
    "title": "Tool",
"components": {
    "type": "object",
"@id": "Property:HasStatement",
    "allOf": [
"@type": "@id",
        {
"@context": {
            "$ref": "/wiki/Category:Item?action=raw\u0026slot=jsonschema"
"component_instance_property": {
        }
"@id": "Property:HasProperty",
    ],
"@type": "@id"
    "required": [
},
        "type"
"component_instance": {
    ],
"@id": "Property:HasObject",
    "uuid": "e427aafa-fbac-4262-955b-9f690a83405d",
"@type": "@id"
    "title*": {
}
        "en": "Tool",
}
        "de": "Werkzeug"
},
    },
"events": {
    "description": "Item that participates as a utility (almost) unchanged in a process",
"@id": "Property:HasEvent",
    "description*": {
"@type": "@id"
        "en": "Item that participates as a utility (almost) unchanged in a process",
},
        "de": "Gegenstand der als Hilfsmittel (nahezu) unverändert in einem Prozess teilnimmt"
"slots": {
    },
"@id": "Property:HasSlot",
    "properties": {
"@type": "@id",
        "type": {
"@context": {
            "default": [
"slot_osw_id": {
                "Category:OSWe427aafafbac4262955b9f690a83405d"
"@id": "Property:HasOswId",
            ]
"@type": "xsd:string"
        }
},
    }
"slot_id": {
"@id": "Property:HasId",
"@type": "xsd:string"
},
"name": {
"@id": "Property:HasName",
"@type": "xsd:string"
},
"description": {
"@id": "Property:HasDescription",
"@type": "@id"
},
"slot_init_date_time": {
"@id": "Property:HasInitDate",
"@type": "xsd:dateTime"
},
"slot_occupant": {
"@id": "Property:HasStatement",
"@type": "@id",
"@context": {
"slot_occupant_instance_property": "Property:HasProperty",
"slot_occupant_instance": "Property:HasObject"
}
},
"slot_type_restriction": {
"@id": "Property:HasTypeRestriction",
"@type": "@id"
}
}
},
"typical_process": {
"@id": "Property:HasTypicalProcess",
"@type": "@id"
}
}
],
"allOf": [
{
"$ref": "/wiki/Category:Item?action=raw\u0026slot=jsonschema"
}
],
"type": "object",
"uuid": "e427aafa-fbac-4262-955b-9f690a83405d",
"title": "Tool",
"title*": {
"en": "Tool",
"de": "Werkzeug"
},
"description": "Item that participates as a utility (almost) unchanged in a process",
"description*": {
"en": "Item that participates as a utility (almost) unchanged in a process",
"de": "Gegenstand der als Hilfsmittel (nahezu) unverändert in einem Prozess teilnimmt"
},
"required": [
"type"
],
"defaultProperties": [],
"properties": {
"type": {
"default": [
"Category:OSWe427aafafbac4262955b9f690a83405d"
]
},
"typical_process": {
"title": "Typical Process(es)",
"title*": {
"de": "Typische(r) Prozess(e)"
},
"type": "array",
"format": "table",
"items": {
"title": "Process",
"title*": {
"de": "Prozess"
},
"type": "string",
"format": "autocomplete",
"range": "Category:Category",
"options": {
"autocomplete": {
"query": "[[SubClassOf::Category:OSWe5aa96bffb1c4d95be7fbd46142ad203]]OR[[SubClassOf.SubClassOf::Category:OSWe5aa96bffb1c4d95be7fbd46142ad203]]OR[[SubClassOf.SubClassOf.SubClassOf::Category:OSWe5aa96bffb1c4d95be7fbd46142ad203]]OR[[SubClassOf.SubClassOf.SubClassOf.SubClassOf::Category:OSWe5aa96bffb1c4d95be7fbd46142ad203]]OR[[SubClassOf.SubClassOf.SubClassOf.SubClassOf.SubClassOf::Category:OSWe5aa96bffb1c4d95be7fbd46142ad203]]"
}
}
},
"eval_template": [
{
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}} \u003Cul\u003E\u003C%#typical_process%\u003E\u003Cli\u003E[[:\u003C%.%\u003E]]\u003C/li\u003E\u003C%/typical_process%\u003E\u003C/ul\u003E"
}
]
},
"components": {
"type": "array",
"format": "tabs",
"title": "Components",
"title*": {
"de": "Komponenten"
},
"description": "Component are permanent parts of a tool (vs. Slots for exchangeable parts).",
"description*": {
"de": "Komponenten sind dauerhafte Teile eines Werkzeugs (im Gegensatz zu Slots für austauschbare Teile)."
},
"options": {
"enable_array_copy": true,
"array_copy_ignore": [
"uuid",
"component_id",
"attachments"
]
},
"eval_template": [
{
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}} \u003Cul\u003E\u003C%#components%\u003E\u003Cli\u003E[[\u003C%component_instance%\u003E]] ({{#switch:{{USERLANGUAGECODE}}|en=Type|de=Typ|#default=Type}}: {{#ask:[[\u003C%component_instance%\u003E]]|?HasType=|format=plain|mainlabel=-}})\u003C/li\u003E\u003C%/components%\u003E\u003C/ul\u003E"
}
],
"items": {
"type": "object",
"format": "grid-strict",
"title": "Component",
"title*": {
"de": "Komponente"
},
"id": "component",
"headerTemplate": "{{ i1 }} - {{ self.component_id }}",
"defaultProperties": [],
"required": [
"uuid",
"component_id",
"component_type",
"component_instance_property",
"component_instance"
],
"properties": {
"uuid": {
"title": "UUID",
"title*": {
"de": "UUID"
},
"type": "string",
"$comment": "format uuid field are copied, if not set in copy_ignore",
"format": "uuid",
"_template": "dynamic_template",
"dynamic_template": "{{_uuid_}}",
"options": {
"hidden": true,
"dynamic_template": {
"override": "empty"
}
}
},
"component_id": {
"$comment": "Will be used as a visual reference for the user",
"title": "ID",
"title*": {
"de": "ID"
},
"description": "Automatically generated",
"description*": {
"de": "Wird automatisch generiert"
},
"type": "string",
"format": "dynamic_template",
"dynamic_template": "Component{{patternformat '00' _array_index_}}",
"readOnly": true,
"options": {
"hidden": true,
"dynamic_template": {
"override": "always"
},
"grid_columns": 6
},
"propertyOrder": 10
},
"label": {
"title": "Label",
"title*": {
"de": "Bezeichnung"
},
"description": "Designation of the function or role of the component in this specific context.",
"description*": {
"de": "Bezeichnung der Funktion oder Rolle der Komponente in diesem spezifischen Kontext."
},
"type": "array",
"format": "table",
"eval_template": {
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%={{ }}=%\u003E {{#label}} |{{lang}}={{text}} {{/label}} {{=\u003C% %\u003E=}} }}"
},
"items": {
"eval_template": [
{
"type": "wikitext",
"mode": "store",
"value": "{{{text}}}@{{{lang}}}"
}
],
"$ref": "/wiki/JsonSchema:Label?action=raw"
},
"options": {
"grid_columns": 12
},
"propertyOrder": 20
},
"description": {
"title": "Description",
"title*": {
"de": "Beschreibung"
},
"description": "Optional, additional details on the role or function of the component in this specific context.",
"description*": {
"de": "Optional, zusätzliche Angaben zur Rolle oder Funktion der Komponente in diesem spezifischen Kontext."
},
"type": "array",
"format": "table",
"eval_template": {
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%={{ }}=%\u003E {{#description}} |{{lang}}={{text}} {{/description}} {{=\u003C% %\u003E=}} }}"
},
"items": {
"eval_template": [
{
"type": "wikitext",
"mode": "store",
"value": "{{{text}}}@{{{lang}}}"
}
],
"$ref": "/wiki/JsonSchema:Description?action=raw"
},
"options": {
"grid_columns": 12
},
"propertyOrder": 30
},
"component_type": {
"title": "Component type",
"title*": {
"de": "Typ der Komponente"
},
"type": "string",
"format": "autocomplete",
"range": "Category:Category",
"options": {
"autocomplete": {
"$comment": "Tool",
"query": "[[:Category:OSWe427aafafbac4262955b9f690a83405d]]OR[[SubClassOf::Category:OSWe427aafafbac4262955b9f690a83405d]]OR[[SubClassOf.SubClassOf::Category:OSWe427aafafbac4262955b9f690a83405d]]OR[[SubClassOf.SubClassOf.SubClassOf::Category:OSWe427aafafbac4262955b9f690a83405d]]OR[[SubClassOf.SubClassOf.SubClassOf.SubClassOf::Category:OSWe427aafafbac4262955b9f690a83405d]]OR[[SubClassOf.SubClassOf.SubClassOf.SubClassOf.SubClassOf::Category:OSWe427aafafbac4262955b9f690a83405d]]"
},
"grid_columns": 12
},
"default": "Category:OSWe427aafafbac4262955b9f690a83405d",
"propertyOrder": 40
},
"component_instance_property": {
"type": "string",
"default": "Property:HasPart",
"options": {
"hidden": true
}
},
"component_instance": {
"title": "Instance",
"title*": {
"de": "Instanz"
},
"type": "string",
"format": "autocomplete",
"range": "Category:OSWe427aafafbac4262955b9f690a83405d",
"watch": {
"component_type_": "component.component_type"
},
"options": {
"autocomplete": {
"query": "[[HasType::$(component_type_)]]|?Display_title_of=label|?HasImage=image|?HasDescription=description"
},
"grid_columns": 12
},
"propertyOrder": 50
}
}
}
},
"slots": {
"type": "array",
"format": "tabs",
"title": "Slot configuration",
"title*": {
"de": "Slot-Konfiguration"
},
"description": "Slots represent spaces for exchangable parts or components of a tool (vs. Components, which are permanent parts). Slot exchange events can be used to document changes on slots. This is the initial slot configuration!",
"description*": {
"de": "Slots stellen Plätze für austauschbare Teile oder Komponenten eines Werkzeugs dar (im Gegensatz zu Komponenten, die permanente Teile sind). Slot-Austauschereignisse können verwendet werden, um Änderungen an Slots zu dokumentieren. Dies ist die anfängliche Slot-Konfiguration!"
},
"options": {
"enable_array_copy": true,
"array_copy_ignore": [
"uuid",
"slot_osw_id",
"slot_id",
"attachments"
]
},
"eval_template": [
{
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}} \u003C%#slots%\u003E {{Viewer/Link |page=\u003C%slot_osw_id%\u003E}}: {{#if: \u003C!-- if there's at least one ToolMaintenanceEvent--\u003E{{#ask: [[Category:OSW5433f882b9f14dca81994e058c8ab4a0]][[HasTarget::{{FULLPAGENAME}}]][[HasAction.HasSlot::\u003C%slot_osw_id%\u003E]]|sort=HasEndDate|order=desc|format=plain|link=none|limit=1|searchlabel=}}\u003C!-- use the action of the latest ToolMaintenanceEvent--\u003E|{{#ask:[[-HasAction.HasType::Category:OSW5433f882b9f14dca81994e058c8ab4a0]][[HasSlot::\u003C%slot_osw_id%\u003E]]\u003C!-- same query as above--\u003E[[-HasAction::{{#ask: [[Category:OSW5433f882b9f14dca81994e058c8ab4a0]][[HasTarget::{{FULLPAGENAME}}]][[HasAction.HasSlot::\u003C%slot_osw_id%\u003E]]|sort=HasEndDate|order=desc|format=plain|link=none|limit=1|searchlabel=}}]] \u003C!-- --\u003E|?HasOccupant=|format=plain|mainlabel=-|default={{#switch:{{USERLANGUAGECODE}}|de=Keine Belegung|#default=No occupant}} }} \u003C!-- else use the default occupant--\u003E|{{#ask: [[\u003C%slot_osw_id%\u003E]]|?HasOccupant=|format=plain|sort=HasInitDate|order=desc|limit=1|searchlabel=|mainlabel=-|default={{#switch:{{USERLANGUAGECODE}}|de=Keine Belegung|#default=No occupant}}}} }} \u003Cbr\u003E \u003C%/slots%\u003E"
}
],
"items": {
"type": "object",
"format": "grid-strict",
"title": "Slot",
"title*": {
"de": "Slot"
},
"id": "slot",
"headerTemplate": "{{ i1 }} - {{ self.slot_id }}",
"defaultProperties": [
"name",
"description",
"slot_occupant"
],
"required": [
"uuid",
"slot_osw_id",
"slot_id",
"slot_init_date_time",
"slot_type_restriction"
],
"properties": {
"uuid": {
"title": "UUID",
"title*": {
"de": "UUID"
},
"type": "string",
"$comment": "format uuid field are copied, if not set in copy_ignore",
"_format": "uuid",
"_template": "dynamic_template",
"dynamic_template": "{{_uuid_}}",
"options": {
"hidden": true,
"dynamic_template": {
"override": "empty"
}
}
},
"slot_osw_id": {
"$comment": "Will be used an unique reference for slot exchange events.",
"title": "OSW-ID",
"title*": {
"de": "OSW-ID"
},
"type": "string",
"watch": {
"_own_uuid": "slot.uuid"
},
"_format": "dynamic_template",
"dynamic_template": "{{_current_subject_}}#OSW{{#replace '-' ''}}{{_own_uuid}}{{/replace}}",
"readOnly": true,
"options": {
"hidden": true,
"dynamic_template": {
"override": "empty"
}
}
},
"slot_id": {
"$comment": "Will be used as a visual reference for the user",
"title": "ID",
"title*": {
"de": "ID"
},
"description": "Automatically generated",
"description*": {
"de": "Wird automatisch generiert"
},
"type": "string",
"format": "dynamic_template",
"dynamic_template": "Slot{{patternformat '00' _array_index_}}",
"readOnly": true,
"options": {
"hidden": true,
"dynamic_template": {
"override": "always"
},
"grid_columns": 6
},
"propertyOrder": 10
},
"name": {
"title": "Name",
"title*": {
"de": "Name"
},
"type": "string",
"options": {
"grid_columns": 6
},
"propertyOrder": 20
},
"description": {
"title": "Description",
"title*": {
"de": "Beschreibung"
},
"type": "array",
"format": "table",
"eval_template": {
"type": "mustache-wikitext",
"mode": "render",
"value": "{{=\u003C% %\u003E=}} {{#switch:{{USERLANGUAGECODE}} \u003C%={{ }}=%\u003E {{#description}} |{{lang}}={{text}} {{/description}} {{=\u003C% %\u003E=}} }}"
},
"items": {
"eval_template": [
{
"type": "wikitext",
"mode": "store",
"value": "{{{text}}}@{{{lang}}}"
}
],
"$ref": "/wiki/JsonSchema:Description?action=raw"
},
"options": {
"grid_columns": 12
},
"propertyOrder": 30
},
"slot_init_date_time": {
"allOf": [
{
"$ref": "/wiki/JsonSchema:StartDateTime?action=raw\u0026slot=main"
}
],
"title": "Date of slot initialization",
"title*": {
"de": "Datum der Slot-Initialisierung"
},
"dynamic_template": "{{_now_}}",
"options": {
"dynamic_template": {
"override": "empty"
},
"grid_columns": 4
},
"propertyOrder": 21
},
"slot_type_restriction": {
"title": "Type restriction of the slot",
"title*": {
"de": "Typeinschränkung des Slots"
},
"type": "string",
"format": "autocomplete",
"range": "Category:Category",
"options": {
"autocomplete": {
"$comment": "Tool",
"query": "[[:Category:OSWe427aafafbac4262955b9f690a83405d]]OR[[SubClassOf::Category:OSWe427aafafbac4262955b9f690a83405d]]OR[[SubClassOf.SubClassOf::Category:OSWe427aafafbac4262955b9f690a83405d]]OR[[SubClassOf.SubClassOf.SubClassOf::Category:OSWe427aafafbac4262955b9f690a83405d]]OR[[SubClassOf.SubClassOf.SubClassOf.SubClassOf::Category:OSWe427aafafbac4262955b9f690a83405d]]OR[[SubClassOf.SubClassOf.SubClassOf.SubClassOf.SubClassOf::Category:OSWe427aafafbac4262955b9f690a83405d]]"
}
},
"default": "Category:OSWe427aafafbac4262955b9f690a83405d",
"propertyOrder": 50
},
"slot_occupant": {
"type": "object",
"title": "Initial occupant of the slot",
"title*": {
"de": "Initiale Belegung des Slots"
},
"description": "Tool or component installed in the slot.",
"description*": {
"de": "Im Slot installiertes Werkzeug oder Komponente."
},
"id": "slot_occupant",
"required": [
"slot_occupant_instance_property",
"slot_occupant_instance"
],
"defaultProperties": [
"slot_occupant_type"
],
"properties": {
"slot_occupant_type": {
"title": "Type",
"title*": {
"de": "Typ"
},
"type": "string",
"format": "autocomplete",
"range": "Category:Category",
"watch": {
"slot_type": "slot.slot_type_restriction"
},
"options": {
"autocomplete": {
"$comment": "Tool",
"query": "[[:$(slot_type)]]OR[[SubClassOf::$(slot_type)]]OR[[SubClassOf.SubClassOf::$(slot_type)]]OR[[SubClassOf.SubClassOf.SubClassOf::$(slot_type)]]OR[[SubClassOf.SubClassOf.SubClassOf.SubClassOf::$(slot_type)]]OR[[SubClassOf.SubClassOf.SubClassOf.SubClassOf.SubClassOf::$(slot_type)]]"
}
},
"propertyOrder": 11
},
"slot_occupant_instance_property": {
"type": "string",
"default": "Property:HasOccupant",
"options": {
"hidden": true
}
},
"slot_occupant_instance": {
"title": "Instance",
"title*": {
"de": "Instanz"
},
"type": "string",
"format": "autocomplete",
"range": "Category:OSWe427aafafbac4262955b9f690a83405d",
"watch": {
"slot_occupant_type_": "slot_occupant.slot_occupant_type"
},
"options": {
"autocomplete": {
"query": "[[HasType::$(slot_occupant_type_)]]|?Display_title_of=label|?HasImage=image|?HasDescription=description"
}
},
"propertyOrder": 21
}
},
"options": {
"grid_columns": 12
},
"propertyOrder": 60
}
}
}
},
"events": {
"type": "array",
"format": "table",
"title": "Event(s)",
"title*": {
"de": "Ereignis(se)"
},
"items": {
"title": "Event",
"title*": {
"de": "Ereignis"
},
"type": "string",
"format": "autocomplete",
"range": "Category:OSWb97757b46edb430591758662c18d354d",
"options": {
"autocomplete": {
"query": "[[Category:OSWb97757b46edb430591758662c18d354d]]|?HasLabel=label|?HasType.Display_title_of=type_label",
"render_template": {
"type": [
"handlebars"
],
"value": "{{result.printouts.label}} (Type: {{result.printouts.type_label}})"
}
}
}
}
}
}
}
}