328
edits
(Install package: OSW Base) |
(Update package: OSW Base) |
||
Line 4: | Line 4: | ||
* General (same as UUID of the category page): 6c4212f1-a393-42be-963d-2b9efd19c5c2 | * General (same as UUID of the category page): 6c4212f1-a393-42be-963d-2b9efd19c5c2 | ||
* FhG: 82c7d151-8555-55e6-9159-d6c38313b14a | * FhG: 82c7d151-8555-55e6-9159-d6c38313b14a | ||
{{#ask: [[{{FULLPAGENAME}}]] | |||
|?IsLocatedIn={{#switch: {{USERLANGUAGECODE}} |en=Located in |de=Lage |#default=Located in }} | |||
|?HasNumberOfRooms={{#switch: {{USERLANGUAGECODE}} |en=Number of rooms |de=Räume (Anzahl) |#default=Number of rooms }} | |||
|?HasNumberOfOccupants={{#switch: {{USERLANGUAGECODE}} |en=Number of occupants |de=Belegung (Anzahl) |#default=Number of occupants }} | |||
|format=datatable | |||
|limit=5000 | |||
|sort=Display title of | |||
|order=asc | |||
}} | |||
jsonschema | |||
---|---|---|---|
Line 2: | Line 2: | ||
"@context": [ | "@context": [ | ||
{ | { | ||
"located_in": "Property:IsLocatedIn" | "located_in": { | ||
"@id": "schema:containedInPlace", | |||
"@type": "@id" | |||
}, | |||
"located_in*": { | |||
"@id": "Property:IsLocatedIn", | |||
"@type": "@id" | |||
} | |||
}, | |||
"/wiki/Category:OSW3d238d05316e45a4ac95a11d7b24e36b?action=raw\u0026slot=jsonschema" | |||
], | |||
"allOf": [ | |||
{ | |||
"$ref": "/wiki/Category:OSW3d238d05316e45a4ac95a11d7b24e36b?action=raw\u0026slot=jsonschema" | |||
} | } | ||
], | |||
"title": "Floor", | |||
"type": "object", | |||
"required": [ | |||
"type" | |||
], | ], | ||
"properties": { | "properties": { | ||
"type": { | |||
"default": [ | |||
"Category:OSW6c4212f1a39342be963d2b9efd19c5c2" | |||
] | |||
}, | |||
"located_in": { | "located_in": { | ||
"title": "Building", | "title": "Building", | ||
Line 18: | Line 41: | ||
"type": "string", | "type": "string", | ||
"format": "autocomplete", | "format": "autocomplete", | ||
" | "range": "Category:OSW4bcd4a99a73f482ea40ac4210dfab836" | ||
}, | }, | ||
" | "uniqueItems": true | ||
} | } | ||
} | |||
} | } | ||
header_template | |||
Line 15: | Line 15: | ||
</tr> | </tr> | ||
</table> | </table> | ||
<!-- Overview of rooms --> | |||
{{#if: {{#ask: [[Category:OSWc5ed0ed1e33c4b31887c67af25a610c1]][[IsLocatedIn::{{FULLPAGENAME}}]]}} | | |||
=={{#switch:{{USERLANGUAGECODE}}|en=Rooms |de=Räume|#default=Rooms}}== | |||
{{#set: HasNumberOfRooms= | |||
{{#ask: [[Category:OSWc5ed0ed1e33c4b31887c67af25a610c1]][[IsLocatedIn::{{FULLPAGENAME}}]] | |||
|format=count | |||
|limit=1000 | |||
}} | |||
}} | |||
{{#switch:{{USERLANGUAGECODE}} | |||
|en=Number of rooms | |||
|de=Räume (Anzahl) | |||
|#default=Number of rooms | |||
}}: {{#show: {{FULLPAGENAME}} |?HasNumberOfRooms}} | |||
{{#ask: [[Category:OSWc5ed0ed1e33c4b31887c67af25a610c1]][[IsLocatedIn::{{FULLPAGENAME}}]] | |||
|?HasRoomNumber={{#switch: {{USERLANGUAGECODE}} |en=Room number |de=Raumnummer |#default=Room number}} | |||
|?HasArea={{#switch: {{USERLANGUAGECODE}} |en=Area |de=Fläche |#default=Area}} | |||
|?HasRoomUsage={{#switch: {{USERLANGUAGECODE}} |en=Room usage |de=Raumnutzung |#default=Room usage}} | |||
|?HasRoomUsageType={{#switch: {{USERLANGUAGECODE}} |en=Room usage type |de=Raumnutzungstyp |#default=Room usage type}} | |||
|?HasNumberOfOccupants={{#switch: {{USERLANGUAGECODE}} |en=Number of occupants |de=Belegung (Anzahl) |#default=Number of occupants}} | |||
|format=table | |||
|limit=1000 | |||
|sort=Display title of | |||
|order=asc | |||
}} | |||
| {{#set: HasNumberOfRooms=0}} | |||
}} | |||
<!-- Occupancy --> | |||
=={{#switch:{{USERLANGUAGECODE}}|en=Occupancy|de=Belegung|#default=Occupancy}}== | |||
{{#set: HasNumberOfOccupants= | |||
{{#ask: [[Category:OSWc5ed0ed1e33c4b31887c67af25a610c1]][[IsLocatedIn::{{FULLPAGENAME}}]] | |||
|?HasNumberOfOccupants | |||
|format=sum | |||
}} | |||
}} | |||
{{#switch:{{USERLANGUAGECODE}} | |||
|en=Number of occupants | |||
|de=Belegung (Anzahl) | |||
|#default=Number of occupants | |||
}}: {{#show: {{FULLPAGENAME}} |?HasNumberOfOccupants}} |
edits