Template:Event/doc2: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
[[category:milongas|*]]
[[category:Milonga|*]]


'''This is under construction'''
'''This is under construction'''
See also
http://wiki.tango.info/w/mul/index.php?title=Special:WhatLinksHere/Template:milonga&hideredirs=1&hidelinks=1


* [[TangoSud Project]] - created the template
* [[TangoSud Project]] - created the template


==Usage==
==Usage==
*Copy and paste the <b><i><nowiki>{{milonga ...}}</nowiki> block</i></b> in your milonga page, then fill in the requested fields in your milonga page.
*Copy and paste the <b><i><nowiki>{{event...}}</nowiki> block</i></b> in your milonga page, then fill in the requested fields in your milonga page.


  <nowiki>{{</nowiki>milonga
  <nowiki>{{</nowiki>event
  |event_name =
  |summary    =
  |time_start =
  |time_start =
  |time_end  =
  |time_end  =
  |un_locode  =
  |status    =
  |venue_name =
  |venue_name =
|address    =
  |music_by  =
  |music_by  =
  |price      =
  |price      =
|address    =
  |event_phone=
  |event_phone=
  |event_email=
  |event_email=
Line 28: Line 25:
==Presentation==
==Presentation==
The information contained in the <b><i><nowiki>{{milonga ...}}</nowiki> block</i></b> will be presented by this template as follows:
The information contained in the <b><i><nowiki>{{milonga ...}}</nowiki> block</i></b> will be presented by this template as follows:
</noinclude><includeonly>[[category:milongas]]</includeonly>{{#if: {{{un_locode|}}}|[[category:{{{un_locode}}}]]}}<div class="ti_milonga"
</noinclude><includeonly>[[category:milongas]]</includeonly>{{event|categories=milonga
><table class="wikitable"><caption class="ti_milonga">Info displayed by [[Template:milonga]] (under construction)</caption><tbody>
|status={{#if:{{{status|}}} |{{{status}}}}}
{{#if:{{{cancel|}}} |  
|summary={{#if:{{{summary|}}} |{{{summary}}}}}
[[category:canceled]]
|time_start={{#if:{{{time_start|}}} |{{{time_start}}}}}
<tr>
|time_end={{#if:{{{time_end|}}} |{{{time_end}}}}}
<th>Status</th>
|date_start={{#if:{{{date_start|}}} |{{{date_start}}}}}
<td>'''CLOSED'''</td>
|date_end={{#if:{{{date_end|}}} |{{{date_end}}}}}
</tr>
|venue_name={{#if:{{{venue_name|}}} |{{{venue_name}}}}}
}}
|address={{#if:{{{address|}}} |{{{address}}}}}
{{#if:{{{event_name|}}} |  
|price={{#if:{{{price|}}} |{{{price}}}}}
<tr>
|event_phone={{#if:{{{event_phone|}}} |{{{event_phone}}}}}
<th>Name</th>
|event_email={{#if:{{{event_email|}}} |{{{event_email}}}}}
<td>'''{{{event_name}}}'''</td>
|event_comment={{#if:{{{event_comment|}}} |{{{event_comment}}}}}
</tr>
|event_link={{#if:{{{event_link|}}} |{{{event_link}}}}}
}}
{{#if:{{{un_locode|}}} |
<tr>
<th>[[UN/LOCODE|City code]]</th>
<td>[[:category:{{{un_locode}}}|{{{un_locode}}}]]</td>
</tr>
}}
<tr>
<th style="width:100px;">Time</th>
<td>{{#if:{{{time_start|}}} | From '''{{{time_start}}}''' }} {{#if:{{{time_end|}}} | Until '''{{{time_end}}}''' }}</td>
</tr>
{{#if:{{{venue_name|}}} |  
<tr>
<th>Venue name</th>
<td>'''[[{{{venue_name}}}]]'''</td>
</tr>
}}
 
 
{{#if:{{{address|}}} |
<tr>
<th>Address</th>
<td>'''[http://maps.google.com/?q={{urlencode:{{{address}}}}} {{{address}}}]'''</td>
</tr>
}}
 
 
{{#if:{{{music_by|}}} |  
<tr>
<th>Music by</th>
<td>'''{{{music_by}}}'''</td>
</tr>
}}
 
{{#if:{{{price|}}} |
<tr>
<th>Price</th>
<td>'''{{{price}}}'''</td>
</tr>
}}
 
{{#if:{{{event_phone|}}} |  
<tr>
<th>Contact Phone</th>
<td>'''{{{event_phone}}}'''</td>
</tr>
}}
{{#if:{{{event_email|}}} |
<tr>
<th>Email</th>
<td>'''mailto:{{{event_email}}}'''</td>
</tr>
}}
{{#if:{{{event_link|}}} |
<tr>
<th>Link</th>
<td>'''{{{event_link}}}'''</td>
</tr>
}}
}}
</tbody></table></div>

Latest revision as of 2013-06-13T03:55:35


This is under construction

Usage

  • Copy and paste the {{event...}} block in your milonga page, then fill in the requested fields in your milonga page.
{{event
|summary    =
|time_start =
|time_end   =
|status     =
|venue_name =
|address    =
|music_by   =
|price      =
|event_phone=
|event_email=
|event_link =
}}

Presentation

The information contained in the {{milonga ...}} block will be presented by this template as follows:

CATEGORIES milonga
STATUS
SUMMARY
COMMENT
Wiki Info display by Template:event