Šablona:DisplayMember: Porovnání verzí

Z ApolloWiki
Přejít na:navigace, hledání
Bez shrnutí editace
m (Editace uživatele „Prochazka vaclav“ (diskuse) vráceny do předchozího stavu, jehož autorem je „Masopust“)
značka: rychlé vrácení zpět
Řádek 6: Řádek 6:
{{DisplayMember
{{DisplayMember
| Page = title of the main page where the person's data is stored
| Page = title of the main page where the person's data is stored
| Academic title = title prefix
| Akademischer Titel = title prefix
| Academic title2 = title suffix
| Akademischer Titel2 = title suffix
| Name = full name
| Name = full name
| Former = 0 (current employees) or 1 (former employees)
| Ehemaliger = 0 (current employees) or 1 (former employees)
| Research team = list of research{{FULLPAGENAME}} group names (semicolon separated)
| Forschungsgruppe = list of research{{FULLPAGENAME}} group names (semicolon separated)
| Image = Image
| Bild = Image
| Position = Position
| Stellung = Position
| Office = Room
| Raum = Room
| Info = text description
| Info = text description
| Consultation day = Week day of office hours
| Sprechstunde Tag = Week day of office hours
| Consultation start = office hour start, e.g., 11:00
| Sprechstunde Beginn = office hour start, e.g., 11:00
| Consultation end = office hour end, e.g., 12:00
| Sprechstunde Ende = office hour end, e.g., 12:00
| Telefon = phone number
| Telefon = phone number
| Fax = fax number
| Fax = fax number
Řádek 24: Řádek 24:
| DBLP = URL of DBLP publication page
| DBLP = URL of DBLP publication page
| Google Scholar = URL of Google Scholar page
| Google Scholar = URL of Google Scholar page
| Show publications = 1 (show publications) or 0 (don't show any publications)
| Publikationen anzeigen = 1 (show publications) or 0 (don't show any publications)
| Show theses = 1 (show supervisions) or 0 (don't show any supervisions)
| Abschlussarbeiten anzeigen = 1 (show supervisions) or 0 (don't show any supervisions)
}}
}}
</pre>
</pre>
Řádek 33: Řádek 33:
{{DisplayMember
{{DisplayMember
| Page=Tomáš Masopust
| Page=Tomáš Masopust
| Academic title = Dr.
| Akademischer Titel = Dr.
| Academic title2 = Ph.D.
| Akademischer Titel2 = Ph.D.
| Name =Tomáš Masopust
| Name =Tomáš Masopust
| Former = 0
| Ehemaliger = 0
| Research team = DES-TCS
| Forschungsgruppe = DES-TCS
| Position = Position
| Stellung = Position
| Office = Room
| Raum = Room
| Info = text description
| Info = text description
| Consultation day = Mon
| Sprechstunde Tag = Mon
| Consultation start = 11:00
| Sprechstunde Beginn = 11:00
| Consultation end = 12:00
| Sprechstunde Ende = 12:00
| Telefon = phone number
| Telefon = phone number
| Fax = fax number
| Fax = fax number
Řádek 50: Řádek 50:
| DBLP = http://www.informatik.uni-trier.de/~ley/pers/hd/k/Knuth:Donald_E=
| DBLP = http://www.informatik.uni-trier.de/~ley/pers/hd/k/Knuth:Donald_E=
| Google Scholar = http://scholar.google.com/citations?user=S6H-0RAAAAAJ
| Google Scholar = http://scholar.google.com/citations?user=S6H-0RAAAAAJ
| Show publications = 1
| Publikationen anzeigen = 1
| Show theses = 1
| Abschlussarbeiten anzeigen = 1
}}
}}


</noinclude><includeonly>__NOTOC__{{HideHeading1}}<!--
</noinclude><includeonly>__NOTOC__{{HideHeading1}}<!--
--><div itemscope itemtype ="http://schema.org/Person"><div style="margin-bottom: 5ex; "><!--
--><div itemscope itemtype ="http://schema.org/Person"><div style="margin-bottom: 5ex; "><!--
--><h1 class="firstHeading"><span itemprop="honorificPrefix">{{{Academic title|}}}</span> <span itemprop="name">{{{Name}}}{{#ifeq: {{{Academic title2|}}}|||,}}</span> <span itemprop="honorificSuffix">{{{Academic title2|}}}</span></h1>{{DISPLAYTITLE:{{#setmaintitle:{{{Name}}}}}}}
--><h1 class="firstHeading"><span itemprop="honorificPrefix">{{{Akademischer Titel|}}}</span> <span itemprop="name">{{{Name}}}{{#ifeq: {{{Akademischer Titel2|}}}|||,}}</span> <span itemprop="honorificSuffix">{{{Akademischer Titel2|}}}</span></h1>{{DISPLAYTITLE:{{#setmaintitle:{{{Name}}}}}}}
<h5>
<h5>
{{#ifeq: {{{Former|}}}|1
{{#ifeq: {{{Ehemaliger|}}}|1
|''{{MediaWiki:Portal_label_Ehemaliges_Mitglied}}''
|''{{MediaWiki:Portal_label_Ehemaliges_Mitglied}}''
|<span itemprop="jobTitle">{{{Position|}}}</span><!--
|<span itemprop="jobTitle">{{{Stellung|}}}</span><!--
// Only set affiliation for current members; this will include guests and we do not actually set "worksFor": //
// Only set affiliation for current members; this will include guests and we do not actually set "worksFor": //
--><span style="display: none; "><span itemprop="affiliation" itemscope itemtype="http://schema.org/Organization"><span itemprop="name">Palacky University in Olomouc</span><span itemprop="url">http://www.upol.cz</span></span><span itemprop="affiliation" itemscope itemtype="http://schema.org/Organization"><span itemprop="name">Department of Computer Science</span><span itemprop="url">https://www.inf.upol.cz</span></span></span> <!--
--><span style="display: none; "><span itemprop="affiliation" itemscope itemtype="http://schema.org/Organization"><span itemprop="name">Palacky University in Olomouc</span><span itemprop="url">http://www.upol.cz</span></span><span itemprop="affiliation" itemscope itemtype="http://schema.org/Organization"><span itemprop="name">Department of Computer Science</span><span itemprop="url">https://www.inf.upol.cz</span></span></span> <!--


-->{{#arraymap: {{{Research team}}}|;|@@@|<span itemprop="memberOf">[[@@@]]</span>|,&#160;}}
-->{{#arraymap: {{{Forschungsgruppe}}}|;|@@@|<span itemprop="memberOf">[[@@@]]</span>|,&#160;}}
}}
}}
</h5></div><!--
</h5></div><!--


-->{{#ifeq: {{{Former|}}}|1|<!--
-->{{#ifeq: {{{Ehemaliger|}}}|1|<!--


*** Display for former members ***
*** Display for former members ***


--><div class="row">
--><div class="row">
<!-- start left column (picture and links) -->
<!-- Start left column (picture and links) -->
<div class="col-sm-4 col-md-3">
<div class="col-sm-4 col-md-3">
<div style="max-width: 200px; "><!-- to avoid sticking image to the far right in single-column mode -->
<div style="max-width: 200px; "><!-- to avoid sticking image to the far right in single-column mode -->
<div style="margin-left: auto; margin-right: auto; width: 150px;">[[{{#setmainimage:{{#ifeq:{{{Image|}}}|
<div style="margin-left: auto; margin-right: auto; width: 150px;">[[{{#setmainimage:{{#ifeq:{{{Bild|}}}|
|
|
|Image:{{{Image}}}
|Bild:{{{Bild}}}
}}}}|150px|link=|frameless|{{{Name}}}]]{{#ifeq:{{{Image|}}}|||<link itemprop="image" href="{{filepath:{{{Image}}}}}"/>}}
}}}}|150px|link=|frameless|{{{Name}}}]]{{#ifeq:{{{Bild|}}}|||<link itemprop="image" href="{{filepath:{{{Bild}}}}}"/>}}


<ul class="link-list" style="margin-top: 2ex; "><!--
<ul class="link-list" style="margin-top: 2ex; "><!--
Řádek 92: Řádek 92:
</div>
</div>
</div>
</div>
<!-- start right column (previous position and group) -->
<!-- Start right column (previous position and group) -->
<div class="col-sm-8 col-md-9">
<div class="col-sm-8 col-md-9">
<ul class="plain-list"><!--
<ul class="plain-list"><!--


--><!-- TODO -->
--><!-- TODO -->
<li><span class="glyphicon glyphicon-info-sign"></span>&nbsp;&nbsp;{{#ifeq: {{{Position|}}}|||{{MediaWiki:Portal_label_Ehemals}} {{{Position}}} }} {{#ifeq:{{{Research team|}}}|||{{MediaWiki:Portal_label_in_Research team}}
<li><span class="glyphicon glyphicon-info-sign"></span>&nbsp;&nbsp;{{#ifeq: {{{Stellung|}}}|||{{MediaWiki:Portal_label_Ehemals}} {{{Stellung}}} }} {{#ifeq:{{{Forschungsgruppe|}}}|||{{MediaWiki:Portal_label_in_Forschungsgruppe}}


{{#arraymap: {{{Research team}}}|;|@@@|[[@@@]]|,&#160;}}
{{#arraymap: {{{Forschungsgruppe}}}|;|@@@|[[@@@]]|,&#160;}}
</li>}}
</li>}}
</ul>
</ul>
Řádek 109: Řádek 109:


--><div class="row">
--><div class="row">
<!-- start left column (picture and links) -->
<!-- Start left column (picture and links) -->
<div class="col-sm-4 col-md-3">
<div class="col-sm-4 col-md-3">
<div style="max-width: 200px; "><!-- to avoid sticking image to the far right in single-column mode -->
<div style="max-width: 200px; "><!-- to avoid sticking image to the far right in single-column mode -->
<div style="margin-left: auto; margin-right: auto; width: 150px;">[[{{#setmainimage:{{#ifeq:{{{Image|}}}|
<div style="margin-left: auto; margin-right: auto; width: 150px;">[[{{#setmainimage:{{#ifeq:{{{Bild|}}}|
|Image:Missing_portrait_3-2.png
|Image:Missing_portrait_3-2.png
|Image:{{{Image}}}
|Image:{{{Bild}}}
}}}}|150px|link=|frameless|{{{Name}}}]]{{#ifeq:{{{Image|}}}|||<link itemprop="image" href="{{filepath:{{{Image}}}}}"/>}}
}}}}|150px|link=|frameless|{{{Name}}}]]{{#ifeq:{{{Bild|}}}|||<link itemprop="image" href="{{filepath:{{{Bild}}}}}"/>}}


<ul class="link-list" style="margin-top: 2ex; "><!--
<ul class="link-list" style="margin-top: 2ex; "><!--
Řádek 128: Řádek 128:
</div>
</div>
</div>
</div>
<!-- start right column (contact and info) -->
<!-- Start right column (contact and info) -->
<div class="col-sm-8 col-md-9">
<div class="col-sm-8 col-md-9">
<ul class="plain-list"><!--
<ul class="plain-list"><!--
Řádek 138: Řádek 138:
-->{{#ifeq: {{{Fax|}}}|||<li><span class="glyphicon glyphicon-file"></span>&nbsp;&nbsp;<span itemprop="faxNumber">{{{Fax|}}}</span></li>}}<!--
-->{{#ifeq: {{{Fax|}}}|||<li><span class="glyphicon glyphicon-file"></span>&nbsp;&nbsp;<span itemprop="faxNumber">{{{Fax|}}}</span></li>}}<!--


-->{{#ifeq: {{{Office|}}}|||<li><span class="glyphicon glyphicon-map-marker"></span>&nbsp;&nbsp;[[{{{Office}}}{{{L|}}}|{{{Office}}}]]</li>}}<!--
-->{{#ifeq: {{{Raum|}}}|||<li><span class="glyphicon glyphicon-map-marker"></span>&nbsp;&nbsp;[[{{{Raum}}}{{{L|}}}|{{{Raum}}}]]</li>}}<!--


-->{{#ifeq: {{{Consultation day|}}}|||<li><span class="glyphicon glyphicon-question-sign"></span>&nbsp;&nbsp;{{{Consultation day}}}, {{{Consultation start}}} &ndash; {{{Consultation end}}} Hours
-->{{#ifeq: {{{Sprechstunde Tag|}}}|||<li><span class="glyphicon glyphicon-question-sign"></span>&nbsp;&nbsp;{{{Sprechstunde Tag}}}, {{{Sprechstunde Beginn}}} &ndash; {{{Sprechstunde Ende}}} Hours
</li>}}
</li>}}
</ul>
</ul>
Řádek 150: Řádek 150:
}}<!--
}}<!--


----- The rest is the same for both Member and Former -----
----- The rest is the same for both Member and Ehemaliger -----
-->
-->
<tabs>{{#tab:
<tabs>{{#tab:
{{#ifeq: {{{Show publications|}}}|1||Publications}},
{{#ifeq: {{{Publikationen anzeigen|}}}|1||Publications}},
{{#ifeq: {{{Show theses|}}}|1||Teaching}},
{{#ifeq: {{{Abschlussarbeiten anzeigen|}}}|1||Teaching}},
Projects
Projects
<!--
<!--
Řádek 161: Řádek 161:


-->
-->
|{{#ifeq: {{{Show publications|}}}|1||
|{{#ifeq: {{{Publikationen anzeigen|}}}|1||
<h4>Newest Publications</h4>
<h4>Newest Publications</h4>
<span class="glyphicon glyphicon-chevron-right"></span> [[{{FULLPAGENAME}}/Publications|All Publications]]
<span class="glyphicon glyphicon-chevron-right"></span> [[{{FULLPAGENAME}}/Publications|All Publications]]
Řádek 177: Řádek 177:


-->
-->
|{{#ifeq: {{{Abschlussarbeiten anzeigen|}}}|1||
{{PAGENAME}}
{{#ask: [[Category:Vorlesung]] <q>[[Lecturer::{{FULLPAGENAME}}]] OR [[Tutor::{{FULLPAGENAME}}]]</q>

|{{#ifeq: {{{Show theses|}}}|1||
{{#ask: [[Category:Course]] [[Current teacher::{{PAGENAME}}]]
| ?Title
| ?Title
| ?Year
| ?Term
| ?Term
| sort=Year,Term
| order=desc,desc
| intro=<h4>Courses</h4>
| intro=<h4>Courses</h4>
| format=plainlist
| format=plainlist
| template=Display course in query
| template=Lehrveranstaltung kurz
| limit=10
| link=none
| limit=5
| searchlabel=<br/><br/>více předmětů
| searchlabel=<br/><br/>show further courses
| default=Aktuálně nevyučuje žádné předměty.
| default=No courses
}}
}}
{{#ask: [[Category:Projektarbeit]] [[Current::1]] [[Contact::{{FULLPAGENAME}}]]
{{#ask: [[Category:Projektarbeit]] [[Current::1]] [[Contact::{{FULLPAGENAME}}]]
Řádek 223: Řádek 225:
*** Tab for activities ***
*** Tab for activities ***
|{{MediaWiki:Portal_label_Aktivaeten }}={{#ask:
|{{MediaWiki:Portal_label_Aktivaeten }}={{#ask:
[[Kategorie:Aktivität]] [[Person::{{FULLPAGENAME}}]] [[end(Jahr)::>{{CURRENTYEAR}}]]
[[Kategorie:Aktivität]] [[Person::{{FULLPAGENAME}}]] [[Ende(Jahr)::>{{CURRENTYEAR}}]]
|mainlabel=-
|mainlabel=-
|{{#ifeq:{{{L|}}}||?Beschreibung DE=|?Beschreibung EN=}}
|{{#ifeq:{{{L|}}}||?Beschreibung DE=|?Beschreibung EN=}}
Řádek 230: Řádek 232:
|template=ZeigeAktivitaeten
|template=ZeigeAktivitaeten
|link=none
|link=none
|sort=Rank,start(Jahr)
|sort=Rank,Start(Jahr)
|order=descending,descending
|order=descending,descending
|intro=<ul style="min-height: 800px;">
|intro=<ul style="min-height: 800px;">
Řádek 237: Řádek 239:
}}-->
}}-->


<!-- end of schema.org itemscope-->
<!-- End of schema.org itemscope-->
</includeonly>
</includeonly>

Verze z 30. 9. 2021, 10:35

Template for displaying personal pages.

Usage:

{{DisplayMember
| Page = title of the main page where the person's data is stored
| Akademischer Titel = title prefix
| Akademischer Titel2 = title suffix
| Name = full name
| Ehemaliger = 0 (current employees) or 1 (former employees)
| Forschungsgruppe = list of research{{FULLPAGENAME}}  group names (semicolon separated)
| Bild = Image
| Stellung = Position
| Raum = Room
| Info = text description
| Sprechstunde Tag = Week day of office hours
| Sprechstunde Beginn = office hour start, e.g., 11:00
| Sprechstunde Ende = office hour end, e.g., 12:00
| Telefon = phone number
| Fax = fax number
| Email = email
| Alternative URI = homepage
| DBLP = URL of DBLP publication page
| Google Scholar = URL of Google Scholar page
| Publikationen anzeigen = 1 (show publications) or 0 (don't show any publications)
| Abschlussarbeiten anzeigen = 1 (show supervisions) or 0 (don't show any supervisions)
}}
Example output

Dr. Tomáš Masopust, Ph.D.

PositionPalacky University in OlomoucDepartment of Computer Science DES-TCS
  •   email
  •   phone number
  •   fax number
  •   Room
  •   Mon, 11:00 – 12:00 Hours

text description

Newest Publications

All Publications
No courses
No projects