Vorlage:DisplayNeuigkeit: Unterschied zwischen den Versionen

Aus International Center for Computational Logic
Wechseln zu:Navigation, Suche
Tomas Masopust (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Maximilian Marx (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
 
(35 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<noinclude>
Template for displaying news. This template is used by [[Template:Neuigkeit]] and [[Template:Neuigkeit/en]].
Use [[Formular:Neuigkeit]] to create new news.


<includeonly><div style="clear:both"></div>{{Rubrik|
Usage:
''[[Neuigkeiten|Neuigkeit]] vom {{#ifeq:{{{Datum |}}}||'''Datum: ''' ''k.A.''|[[Datum::{{{Datum}}}|]]{{#timel: j\. F Y|{{{Datum}}}}}}}''
 
<pre>
{{DisplayNeuigkeit
| L=/en (English) or empty (German)
| Titel=Title of the news
| Beschreibung=description
| Link PDF=string name of a PDF file stored in the wiki
| URL=link
| Datum=Date
| Bild=Name of an illustrating image file
| Forschungsgruppe=Research Groups
}}
}}
<br />
</pre>
<h2>{{#ifeq:{{{Titel DE|}}}|||[[Titel DE::{{{Titel DE}}}]]}}</h2>
 
<br />
</noinclude><includeonly>__NOTOC__<!--
{{#ifeq:{{{Bild|}}}
 
|
--><div style="clear:both"></div><!--
|
 
|
--><div style="margin-top: 2ex; margin-bottom: 4ex; "><h5 class="flat-top">{{#switch: {{{L}}}
[[File:{{{Bild}}}|border|right|140x140px|]]
|=      ''[[News|Neuigkeit]] {{#ifeq:{{{Forschungsgruppe|}}}|||{{MediaWiki:Portal_label_Aus_der_Forschungsgruppe}} [[{{{Forschungsgruppe}}}]]}} {{#ifeq:{{{Datum|}}}|||vom {{Translate date|{{{Datum}}}}} }}''
[[Bild::{{{Bild}}}| ]]  
|/en=''[[News/en|News]] {{#ifeq:{{{Forschungsgruppe|}}}|||{{MediaWiki:Portal_label_Aus_der_Forschungsgruppe/en}} {{Translate Name|{{{Forschungsgruppe}}}|#userparam=/en }} }} {{#ifeq:{{{Datum|}}}|||of {{Translate date|{{{Datum}}}|#userparam=/en}} }}''
}}
}}</h5></div><!--
{{#ifeq:{{{Beschreibung DE|}}}|||{{#set:Beschreibung DE={{{Beschreibung DE}}} }} {{{Beschreibung DE}}} }}
 
<br /><br />
-->{{Main heading|{{{Titel}}}}}<!--
{{#ifeq:{{{URL|}}}|||Weitere Infos unter: [[URL::{{{URL}}}]]}}
<br />
{{#ifeq:{{{Link PDF|}}}|||{{Rubrik|Weiterführende Informationen}}[[Link PDF::{{{Link PDF}}}|]][[Media:{{{Link PDF}}}|Bericht als PDF]]}}
<br />
{{#ifeq:{{{Forschungsgruppe|}}}|||''Aus der Forschungsgruppe [[Forschungsgruppe::{{{Forschungsgruppe}}}]]''}}


{{#set:Beschreibung EN={{{Beschreibung EN}}} }}
*** Position of an image ***


[[Titel EN::{{{Titel EN|}}}|]]
-->{{#ifeq:{{{Bild|}}}|||
[[Kategorie:Neuigkeit]]
[[File:{{{Bild}}}|border|right|x300px|]]
{{HideHeading1}}
}}<!--
{{#createpageifnotex:{{PAGENAME}}/en|<nowiki>{{</nowiki>Neuigkeit/en<nowiki>}}</nowiki>}}
</includeonly>


*** Text of the news ***


-->{{#ifeq:{{{Beschreibung|}}}|||<div style="padding-top: 2ex; padding-bottom: 3ex; ">{{{Beschreibung}}}</div>
}}<!--


*** Further Links ***


--><ul class="link-list"><!--


*** URL ***


-->{{#ifeq:{{{URL|}}}|||<li>{{MediaWiki:Portal_label_Weitere_Infos_unter{{{L}}}}}: {{{URL}}}</li>}}<!--


<noinclude>
*** Link to a PDF file ***
Englische Vorlage zu Darstellung von News.
Inhalte werden von der DE Seite geholt.


</noinclude><includeonly><div style="clear:both"></div>{{Rubrik|
-->{{#ifeq:{{{Link PDF|}}}|||<li>[[Media:{{{Link PDF}}}|{{MediaWiki:Portal_label_Bericht_als_PDF{{{L}}}}}]]</li>}}
''[[Neuigkeiten/en|News]] of {{#ifeq:{{#show:{{#rel2abs:..}}|?Datum#ISO|}}||'''Date: ''' ''n.A.''|{{#timel: F d, Y|{{#show:{{#rel2abs:..}}|?Datum#ISO|}}}}}}''
</ul>
}}
<br />
<h2>{{#ifeq:{{#show:{{#rel2abs:..}}|?Titel EN|}}|||{{#show:{{#rel2abs:..}}|?Titel EN|}}}}</h2>
<br />
{{#ifeq:{{#show:{{#rel2abs:..}}|?Bild|}}
|
|
|
[[File:{{#show:{{#rel2abs:..}}|?Bild|}}|border|right|140x140px|]]
}}
{{#ifeq:{{#show:{{#rel2abs:..}}|?Beschreibung EN|}}|||
{{#show:{{#rel2abs:..}}|?Beschreibung EN|}}}}
<br /><br />
{{#ifeq:{{#show:{{#rel2abs:..}}|?URL|}}|||More info at: {{#show:{{#rel2abs:..}}|?URL|}}}}
<br />
{{#ifeq:{{#show:{{#rel2abs:..}}|?Link PDF|}}|||{{Rubrik|Further information}}{{#show:{{#rel2abs:..}}|?Link PDF}}|[[Media:{{#show:{{#rel2abs:..}}|?Link PDF|}}|Report as PDF]]}} TODOB
<br />
{{#ifeq:{{#show:{{#rel2abs:..}}|?Forschungsgruppe|}}|||''From the research group {{#show:{{#rel2abs:..}}|?Forschungsgruppe|}}''}}
{{HideHeading1}}
</includeonly>
</includeonly>

Aktuelle Version vom 31. Juli 2019, 16:02 Uhr

Template for displaying news. This template is used by Template:Neuigkeit and Template:Neuigkeit/en. Use Formular:Neuigkeit to create new news.

Usage:

{{DisplayNeuigkeit
| L=/en (English) or empty (German)
| Titel=Title of the news
| Beschreibung=description
| Link PDF=string name of a PDF file stored in the wiki
| URL=link
| Datum=Date
| Bild=Name of an illustrating image file
| Forschungsgruppe=Research Groups
}}