Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/vhosts/tangowiki/includes/diff/DairikiDiff.php on line 434

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /var/www/vhosts/tangowiki/includes/Hooks.php on line 201

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/tangowiki/extensions/SemanticForms/includes/SF_Utils.php on line 262

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/tangowiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3_Readers.php on line 399

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/tangowiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_SQLStore3_Readers.php on line 487

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/tangowiki/extensions/SemanticMediaWiki/includes/storage/SQLStore/SMW_DIHandler_WikiPage.php on line 112
Difference between revisions of "Template:Infobox Milonga" - TangoWiki

Difference between revisions of "Template:Infobox Milonga"

From Tangowiki
 
(Created page with "<includeonly>{|border="1" cellpadding="4" align="right" style="border-color:#12529c; border-width:2px; border-style:solid;background-color:#ffffff;text-align:left;font-size:sm...")
(68 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|border="1" cellpadding="4" align="right" style="{{#ifeq:{{{Practica}}}|Is Práctica|border-color:#f6d0d9;|border-color:#f9d8ed;}}" class="infobox milonga"
+
<includeonly>{|border="1" cellpadding="4" align="right" style="border-color:#12529c; border-width:2px; border-style:solid;background-color:#ffffff;text-align:left;font-size:smaller;width:275px;empty-cells:hide;border-collapse:collapse; margin-left:20px"
|-style="{{#ifeq:{{{Practica}}}|Is Práctica|background-color:#c44c68;|background-color:#ac548c;}}color:#fff;font-size:140%;text-align:center"
+
|-style="background-color:#12529c;color:#ffffff;font-size:140%;text-align:center" class="Verlauf"
!colspan="2"|<br /><small>{{#ifeq:{{{Practica}}}|Is Práctica|Práctica|Milonga}}</small><br />{{BASEPAGENAME}}<br /><br />
+
!colspan="2"|<br />{{BASEPAGENAME}}<br /><small>Milonga</small><br /><b /r>
 
{{#if: {{{Filename|}}}| {{!-}} style="text-align:center;font-size:90%"
 
{{#if: {{{Filename|}}}| {{!-}} style="text-align:center;font-size:90%"
 
{{!}}colspan="2"{{!}}<br>{{#if: {{{Filename|}}}|[[File:{{{Filename}}}|250px]]}}
 
{{!}}colspan="2"{{!}}<br>{{#if: {{{Filename|}}}|[[File:{{{Filename}}}|250px]]}}
{{#if: {{{Caption|}}}|{{{Caption}}}<br />}}
+
{{#if: {{{Caption|}}}|{{{Caption}}}}}<br>
}}
+
{{#if: {{{Official name|}}} | {{!-}}
+
! align="left" {{!}} Official name
+
{{!}} {{#if: {{{Official name|}}}|{{{Official name}}}}}
+
 
}}
 
}}
 
|-
 
|-
 
! align="left" | Venue
 
! align="left" | Venue
| width="70%" | [[Takes place at venue::{{{Venue}}}]]
+
| width="70%" | [[Has venue::{{{Venue}}}]]
 
|-
 
|-
 +
{{#if: {{{City|}}} | {{!-}}
 +
! align="left" {{!}} City
 +
{{!}} {{#if: {{{City|}}}|[[Takes place in city::{{{City}}}]]}}
 +
}}
 +
{{#if: {{{Country|}}} | {{!-}}
 +
! align="left" {{!}} Country
 +
{{!}} {{#if: {{{Country|}}}|[[Takes place in country::{{{Country}}}]]}}
 +
}}
 
{{#if: {{{Former venue|}}} | {{!-}}
 
{{#if: {{{Former venue|}}} | {{!-}}
 
! align="left" {{!}} Former venue
 
! align="left" {{!}} Former venue
{{!}} {{#if: {{{Former venue|}}}|[[Had former venue::{{{Former venue}}}]]}}
+
{{!}} {{#if: {{{Former venue|}}}|[[Had venue::{{{Former venue}}}]]}}
 
}}
 
}}
{{#if: {{{City|}}} | {{!-}}
+
{{#if: {{{Milonga website|}}} | {{!-}}
! align="left" {{!}} City
+
! align="left" {{!}} Weekday
{{!}} {{#if: {{{City|}}}|[[Takes place in the city::{{{City}}}]], [[Takes place in the country::{{{Country|}}}]] }}
+
{{!}} {{#if: {{{Milonga website|}}}|[[Is online at::{{{Milonga website}}}]]}}
 +
}}
 +
{{#if: {{{Facebook page|}}} | {{!-}}
 +
! align="left" {{!}} Weekday
 +
{{!}} {{#if: {{{Facebook page|}}}|[[Is on Facebook at::{{{Facebook page}}}]]}}
 
}}
 
}}
|-
 
| style="{{#ifeq:{{{Practica}}}|Is Práctica|background-color:#e28ea2;|background-color:#db9dc5;}}" class="infobox milonga" colspan="2" {{!}} {{#ifeq:{{{Practica}}}|Is Práctica|'''Práctica'''|'''Milonga'''}}
 
 
{{#if: {{{Weekday|}}} | {{!-}}
 
{{#if: {{{Weekday|}}} | {{!-}}
 
! align="left" {{!}} Weekday
 
! align="left" {{!}} Weekday
{{!}} {{#if: {{{Weekday|}}}|{{#arraymap:{{{Weekday|}}}|,|@@|[[Takes place on week day::@@]]}} }}
+
{{!}} {{#if: {{{Weekday|}}}|[[Takes place on week day::{{{Weekday}}}]]}}
}}
+
{{#if: {{{Start time|}}} | {{!-}}
+
! align="left" {{!}} Time
+
{{!}} {{#if: {{{Start time|}}}|[[Starts at::{{{Start time}}}]]}} – {{#if:{{{End time|}}}|[[Ends at::{{{End time}}}]]}}
+
 
}}
 
}}
 
{{#if: {{{Music style|}}} | {{!-}}
 
{{#if: {{{Music style|}}} | {{!-}}
Line 36: Line 38:
 
{{!}} {{#if: {{{Music style|}}}|{{{Music style}}}}}
 
{{!}} {{#if: {{{Music style|}}}|{{{Music style}}}}}
 
}}
 
}}
|-
+
{{#if: {{{Contact person|}}} | {{!-}}
| style="{{#ifeq:{{{Practica}}}|Is Práctica|background-color:#e28ea2;|background-color:#db9dc5;}}" class="infobox milonga" colspan="2" {{!}} '''Contact'''
+
! align="left" {{!}} Contact person
{{#if: {{{Organizer|}}} | {{!-}}
+
{{!}} {{#if: {{{Contact person|}}}|[[Has contact person::{{{Contact person}}}]]}}
! align="left" {{!}} Organizer
+
{{!}} {{#if: {{{Organizer|}}}|[[Is organized by::{{{Organizer}}}]]}}{{#if: {{{Organizer contact|}}}|<br />[[Has e-mail::{{{Organizer contact}}}]] }}
+
 
}}
 
}}
{{#if: {{{Contact person|}}} | {{!-}}
+
{{#if: {{{Contact|}}} | {{!-}}
 
! align="left" {{!}} Contact
 
! align="left" {{!}} Contact
{{!}} {{#if: {{{Contact person|}}}|[[Has contact person::{{{Contact person}}}]]}} {{#if: {{{Contact|}}}|<br />[[Has e-mail::{{{Contact}}}]] }}
+
{{!}} {{#if: {{{Contact|}}}|[[Has e-mail::{{{Contact}}}]]}}
 
}}
 
}}
{{#if: {{{Milonga website|}}} | {{!-}}
+
{{#if: {{{Music style|}}} | {{!-}}
! align="left" {{!}} Website
+
! align="left" {{!}} Music style
{{!}} {{#if: {{{Milonga website|}}}|[[Is online at::{{{Milonga website}}}]]}}
+
{{!}} {{#if: {{{Music style|}}}|{{{Music style}}}}}
}}
+
{{#if: {{{Facebook page|}}} | {{!-}}
+
! align="left" {{!}} Facebook page
+
{{!}} {{#if: {{{Facebook page|}}}|[[Is on Facebook at::{{{Facebook page}}}]]}}
+
}}
+
{{#if: {{{Table reservation|}}} | {{!-}}
+
! align="left" {{!}} Table reservation possible
+
{{!}} {{#if: {{{Table reservation|}}}|{{{Table reservation}}} }}
+
}}
+
{{#if: {{{Telephone number|}}} | {{!-}}
+
! align="left" {{!}} Telephone number
+
{{!}} {{#if: {{{Telephone number|}}}|[[Has telephone number::{{{Telephone number}}}]] }}
+
}}
+
|-
+
| style="{{#ifeq:{{{Practica}}}|Is Práctica|background-color:#e28ea2;|background-color:#db9dc5;}}" class="infobox milonga" colspan="2" {{!}} '''Historical information'''
+
{{#if: {{{Start|}}} | {{!-}}
+
! align="left" {{!}} Start – end
+
{{!}} {{#if: {{{Start|}}}|[[Started on::{{{Start}}}]]}} – {{#if:{{{End|}}}|[[Ended on::{{{End}}}]]}} {{#if:{{{Active|}}}|[[Is still active::{{{Active}}}]]}}
+
 
}}
 
}}
 
{{#if: {{{TJs|}}} | {{!-}}
 
{{#if: {{{TJs|}}} | {{!-}}
 
! align="left" {{!}} TJs
 
! align="left" {{!}} TJs
{{!}} {{#if: {{{TJs|}}}|{{Bullet}} {{#arraymap:{{{TJs|}}}|,|@@|[[Has TJ::@@]]| {{Bullet br}} }} }}
+
{{!}} {{#ask:[[Category:TJ]] [[Played at::{{PAGENAME}}]]|format=ul}}
 +
}}
 +
{{#if: {{{Additional information|}}} | {{!-}}
 +
! align="left" {{!}} Additional information
 +
{{!}} {{#if: {{{Additional information|}}}|{{{Additional information}}}}}
 
}}
 
}}
<!---------------HIDDEN (old, now it's not drawn automatically, but TJs have to be chosen manually----------
 
|-
 
! align="left" | TJs
 
! {{#ask:[[Category:TJ]][[Played at milonga::{{BASEPAGENAME}}]]|format=ul}}
 
--------------------->
 
 
|}
 
|}
 
{{#ifeq:{{{Practica}}}|Is Práctica|{{#set:Is Práctica=Yes}}|}}
 
 
[[Category:Milonga]]
 
[[Category:Milonga]]
 
</includeonly>
 
</includeonly>
  
 
<noinclude>{{documentation}}</noinclude>
 
<noinclude>{{documentation}}</noinclude>

Revision as of 14:27, 17 November 2014



[edit] [[[:Template:Purge]]] Template documentation

Description

This template is used for infoboxes on milonga pages. Do not use this template as it is, instead add a new milonga with the milonga form. This adds the page automatically to the milonga category.

Mastercode for embedding

Mandatory parts are marked bold.

{{ Infobox Milonga
| Filename =
| Caption = 
| Official name =
| Venue =
| City =
| Country =
| Former venue =
| Milonga website =
| Facebook page =
| Práctica =
| Weekday =
| Start time =
| End time =
| Start =
| End =
| Active =
| Organizer =
| Organizer contact =
| Contact person =
| Contact =
| Table reservation =
| Telephone number =
| Music style =
| Additional information =
}}