Template:Termin: Difference between revisions

From Attraktor Wiki
Jump to navigation Jump to search
Fh (talk | contribs)
No edit summary
Fh (talk | contribs)
Meetup-Widget nur zeigen, wenn Termin noch nicht rum
Line 15: Line 15:
</noinclude><includeonly>
</noinclude><includeonly>
<div style="border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; float:left; margin:10px; background: #F2F2FF; min-width: 150px;">
<div style="border: 1px solid #D8D8D8; padding:4px 8px 8px 8px; float:left; margin:10px; background: #F2F2FF; min-width: 150px;">
{{#if: {{{title|}}}|<p><b>[[Title::{{{title|}}}]]</b></p> }}
{{#if: {{{title|}}}|
  <p><b>[[Title::{{{title|}}}]]</b></p>  
}}
 
<table style="background:none;">
<table style="background:none;">
{{#if: {{{date|}}}|<tr><td>Beginn:</td><td>[[Date::{{{date|}}}|{{#widget:NiceDate|timestamp={{{date}}} }}]] </td></tr> }}
{{#if: {{{date|}}}|
{{#if: {{{enddate|}}}|<tr><td>Ende:</td><td>[[Enddate::{{{enddate|}}}|{{#widget:NiceDate|timestamp={{{enddate}}} }} ]]</td></tr>}}
  <tr><td>Beginn:</td><td>
{{#if: {{{url|}}}|<tr><td>Url:</td><td>[[Url::{{{url|}}}]] </td></tr> }}
    [[Date::{{{date|}}}|{{#widget:NiceDate|timestamp={{{date}}} }}]]  
  </td></tr>  
}}
 
{{#if: {{{enddate|}}}|
  <tr><td>Ende:</td><td>
    [[Enddate::{{{enddate|}}}|{{#widget:NiceDate|timestamp={{{enddate}}} }} ]]
  </td></tr>
}}
 
{{#if: {{{url|}}}|
  <tr><td>Url:</td><td>
    [[Url::{{{url|}}}]]  
  </td></tr>  
}}
</table>
</table>
 
{{#if: {{{enddate|}}}>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}|
{{#if: {{{meetupid|}}}|<p>Zum Termin bei Meetup anmelden: <br/> {{#widget:Meetup|meetupid={{{meetupid}}} }}</p> }}
  {{#if: {{{meetupid|}}}|
    <p>Zum Termin bei Meetup anmelden: <br/>  
      {{#widget:Meetup|meetupid={{{meetupid}}} }}
    </p>  
  }}
}}
</div>
</div>



Revision as of 08:02, 5 June 2013

This is the "Termin" template. It should be called in the following format:

{{Termin
|date=
|enddate=
|title=
|url=
|visible=
|meetupid=(optional) id of the meetup event
}}

Edit the page to see the template text.