Vorlage:Room: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
245 Bytes entfernt ,  29. September 2021
K
keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<includeonly>
<includeonly>[[Category:Rooms]]
* Room code: [[RoomCode::{{SUBPAGENAME}}]]
{|
* Address: [[Address::{{{Address}}}]]
{{!tr|Name|{{{name|}}}}}
* Room name: [[RoomName::{{{RoomName}}}]]
{{!tr|Alternative name|{{{alt_name|}}}}}
{{#if: {{{SearchValue|}}}|* Search value: {{#set: SearchValue={{{SearchValue|}}}|+sep=,|template=BySetTemplateSimpleValueOutputMultiple}}}}
{{!tr|Address|{{{address|}}}}}
{{#if: {{{RoomSize|}}}|* Room size: [[RoomSize::{{{RoomSize}}}]]}}
{{!tr|Capacity|{{{capacity|}}}}}
{{#if: {{{latitude|}}} | {{#if: {{#regex:{{{latitude}}}|%^[+-]?(90{{!}}([1-9]{{!}}[1-8][0-9])(\.[0-9]{1,5})?)$%}} | {{#if: {{{longitude|}}} | {{#if: {{#regex:{{{longitude}}}|%^[+-]?(180{{!}}([1-9]{{!}}[1-9][0-9]{{!}}1[1-7][0-9])(\.[0-9]{1,5})?)$%}} |* GPS-Location: [[Latitude::{{{latitude}}}]], [[Longitude::{{{longitude}}}]] [https://www.openstreetmap.org/?mlat={{{latitude}}}&mlon={{{longitude}}}#map=19/{{{latitude}}}/{{{longitude}}} OSM] |* GPS-Location: <span style="background-color:#FAA">longitude wrong</span>}} |* GPS-Location: <span style="background-color:#FAA">latitude set, longitude missing</span>}} |* GPS-Location: <span style="background-color:#FAA">latitude wrong</span>}}}}
{{!tr|Accessibility|{{{accessibility|}}}}}
{{!tr|TISS-Code|{{#if:{{{tiss_code|}}}|[[has tiss code::{{{tiss_code}}}]]}}}}
{{!tr|URL|{{{url|}}}}}
{{!tr|LectureTube|{{{lecturetube|}}}}}
|}


{{#ifexist: File:Room_{{SUBPAGENAME}}.png|[[File:Room_{{SUBPAGENAME}}.png|280px|{{SUBPAGENAME}}]]{{#set:RoomImage=File:Room_{{SUBPAGENAME}}.png|}}}}
[https://toss.fsinf.at/map/#{{PAGENAME}} View on TOSS map],
[https://tuw-maps.tuwien.ac.at/?q={{PAGENAME}} View on tuw maps]{{#set:
|has room code={{PAGENAME}}
|has name={{{name|}}}
|has alternative name={{{alt_name|}}}
|has address={{{address|}}}
|has capacity={{{capacity|}}}
|has url={{{url|}}}
|has latitude={{{lat|}}}
|has longitude={{{lng|}}}
|has accessibility={{{accessibility|}}}
|has lecturetube={{{lecturetube|no}}}
}}</includeonly><noinclude>
;name
:the official name
;alt_name
:alternative names
;address
:the official address
;capacity
:maximum number of people allowed
;tiss_code
:For rooms that can be [https://tiss.tuwien.ac.at/events/selectRoom.xhtml reserved through TISS], the <code>roomCode</code> value in the URL.
;url
:official URL
;accessibility
:notes on if (and how) the room is accessible (imported from the German websites because they tend to be more accurate than the English info; please do not translate this to English as it complicates further imports)
;lecturetube
:if [https://teachingsupport.tuwien.ac.at/lecturetube/ LectureTube] is available set to "yes", otherwise omit


[[Kategorie:Raumcode]]</includeonly>
== Example ==
<noinclude>
'''Parameter:'''
* RoomCode
* Address (wichtig erst straße + Hausnummer, dann der Rest wie Stock, Stiege, Bereich)
* RoomName
'''Optional:'''
* SearchValue (getrennt mit einem Beistrich, wird für die externe Suche verwendet)
* RoomSize
* latitude (90 bis -90, dazwischen mit max. 5 Nachkommastellen) und longitude (180 bis -180, dazwischen mit max. 5 Nachkommastellen) (muss beides angegeben werden)


Wenn ein Bild mit dem Raumnamen vorhanden ist, wird dieses automatisch gesetzt.
Beispiel:
<pre>
<pre>
{{RaumCode
{{room
|Address=Getreidemarkt 9
|name=GM 1 Audi. Max.
|RoomName=GM 1 Audi. Max. (Auditorium maximum)
|alt_name=Audimax
|SearchValue=audimax, audi max, GM1
|address=Getreidemarkt 9
|RoomSize=500
|capacity=500
|latitude=48.19892
|tiss_code=AUDI
|longitude=16.36988
|accessiblity=Über den oberen Eingang möglich
|url=https://www.tuwien.at/index.php?id=1213
|lecturetube=yes
}}
}}
Der größte Hörsaal an der TU.
</pre>
</pre>


[[Kategorie:Vorlage]]</noinclude>
Sets [[:Category:Rooms]].
</noinclude>
fsinf
198

Bearbeitungen

Navigationsmenü