Template:Event/doc2: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
 
(55 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 29: 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>
</noinclude><includeonly>[[category:milongas]]</includeonly>{{event|categories=milonga
<includeonly>[[category:milongas]]</includeonly>
|status={{#if:{{{status|}}} |{{{status}}}}}
{{#if: {{{un_locode|}}}|[[category:{{{un_locode}}}]]}}
|summary={{#if:{{{summary|}}} |{{{summary}}}}}
<div style="background-color:#f63">
|time_start={{#if:{{{time_start|}}} |{{{time_start}}}}}
Info displayed by [[Template:milonga]] (under construction)
|time_end={{#if:{{{time_end|}}} |{{{time_end}}}}}
<table class="wikitable">
|date_start={{#if:{{{date_start|}}} |{{{date_start}}}}}
{{#if:{{{event_name|}}} |  
|date_end={{#if:{{{date_end|}}} |{{{date_end}}}}}
<tr>
|venue_name={{#if:{{{venue_name|}}} |{{{venue_name}}}}}
<td>'''Name'''</td>
|address={{#if:{{{address|}}} |{{{address}}}}}
<td>'''{{{event_name}}}'''</td>
|price={{#if:{{{price|}}} |{{{price}}}}}
</tr>
|event_phone={{#if:{{{event_phone|}}} |{{{event_phone}}}}}
}}
|event_email={{#if:{{{event_email|}}} |{{{event_email}}}}}
<tr>
|event_comment={{#if:{{{event_comment|}}} |{{{event_comment}}}}}
<td>
|event_link={{#if:{{{event_link|}}} |{{{event_link}}}}}
{{#if:{{{un_locode|}}} | '''[[UN/LOCODE|City code]]''' }}
</td><td>
{{#if:{{{un_locode|}}} | [[:category:{{{un_locode}}}|{{{un_locode}}}]] }}
</td>
</tr>
<tr>
<td style="width:160px;">'''Time'''</td>
<td>{{#if:{{{time_start|}}} | From '''{{{time_start}}}''' }} {{#if:{{{time_end|}}} | Until '''{{{time_end}}}''' }}</td>
</tr>
 
 
{{#if:{{{venue_name|}}} |  
<tr>
<td>'''Venue name'''</td>
<td>'''[[{{{venue_name}}}]]'''</td>
</tr>
}}
 
 
{{#if:{{{address|}}} |
<tr>
<td>'''Address'''</td>
<td>'''[http://maps.google.com/?q={{urlencode:{{{address}}}}}{{{address}}}]'''</td>
</tr>
}}
}}
<tr>
<td>
{{#if:{{{music_by|}}} | '''Music by''' }}
</td><td>
{{#if:{{{music_by|}}} | '''{{{music_by}}}''' }}
</td>
</tr>
{{#if:{{{price|}}} |
<tr>
<td>'''Price'''</td>
<td>'''{{{price}}}'''</td>
</tr>
}}
<tr>
<td>
{{#if:{{{event_phone|}}} | '''Contact Phone''' }}
</td><td>
{{#if:{{{event_phone|}}} | '''{{{event_phone}}}''' }}
</td>
</tr>
<tr>
<td>
{{#if:{{{event_email|}}} | '''Email''' }}
</td><td>
{{#if:{{{event_email|}}} | '''mailto:{{{event_email}}}''' }}
</td>
</tr>
<tr>
<td>
{{#if:{{{event_link|}}} | '''Link''' }}
</td><td>
{{#if:{{{event_link|}}} | '''{{{event_link}}}''' }}
</td>
</tr>
</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