Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/tangowiki/languages/LanguageConverter.php on line 694

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_Sql3SmwIds.php on line 816

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/vhosts/tangowiki/extensions/SemanticMediaWiki/src/PropertyAliasFinder.php on line 74

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
 
(48 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|border="1" cellpadding="4" align="right" style="border-color:#129c5d; 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"
+
<includeonly>{|border="1" cellpadding="4" align="right" style="{{#ifeq:{{{Practica}}}|Is Práctica|border-color:#f6d0d9;|border-color:#f9d8ed;}}" class="infobox milonga"
|-style="background-color:#129c5d;color:#ffffff;font-size:140%;text-align:center" class="Verlauf"
+
|-style="{{#ifeq:{{{Practica}}}|Is Práctica|background-color:#c44c68;|background-color:#ac548c;}}color:#fff;font-size:140%;text-align:center"
!colspan="2"|<br /><small>Milonga</small><br />{{BASEPAGENAME}}<br /><b /r>
+
!colspan="2"|<br /><small>{{#ifeq:{{{Practica}}}|Is Práctica|Práctica|Milonga}}</small><br />{{BASEPAGENAME}}<br /><br />
 
{{#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}}}}}
 
}}
 
}}
 
|-
 
|-
Line 16: Line 20:
 
{{#if: {{{City|}}} | {{!-}}
 
{{#if: {{{City|}}} | {{!-}}
 
! align="left" {{!}} City
 
! align="left" {{!}} City
{{!}} {{#if: {{{City|}}}|[[Takes place in the city::{{{City}}}]]}}, [[Takes place in the country::{{{Country}}}]]
+
{{!}} {{#if: {{{City|}}}|[[Takes place in the city::{{{City}}}]], [[Takes place in the country::{{{Country|}}}]] }}
 
}}
 
}}
 +
|-
 +
| 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|}}}|[[Takes place on week day::{{{Weekday}}}]]}}
+
{{!}} {{#if: {{{Weekday|}}}|{{#arraymap:{{{Weekday|}}}|,|@@|[[Takes place on week day::@@]]}} }}
 
}}
 
}}
{{#if: {{{Start|}}} | {{!-}}
+
{{#if: {{{Start time|}}} | {{!-}}
! align="left" {{!}} Start – end
+
! align="left" {{!}} Time
{{!}} {{#if: {{{Start|}}}||[[Started on::{{#time: Y-–F–d:{{{Start}}}}}]]}} }} – {{#if: {{{End|}}}|[[Ended on::{{{End}}}]]|still happening}}
+
{{!}} {{#if: {{{Start time|}}}|[[Starts at::{{{Start time}}}]]}} – {{#if:{{{End time|}}}|[[Ends at::{{{End time}}}]]}}
 
}}
 
}}
 
{{#if: {{{Music style|}}} | {{!-}}
 
{{#if: {{{Music style|}}} | {{!-}}
 
! align="left" {{!}} Music style
 
! align="left" {{!}} Music style
 
{{!}} {{#if: {{{Music style|}}}|{{{Music style}}}}}
 
{{!}} {{#if: {{{Music style|}}}|{{{Music style}}}}}
 +
}}
 +
|-
 +
| style="{{#ifeq:{{{Practica}}}|Is Práctica|background-color:#e28ea2;|background-color:#db9dc5;}}" class="infobox milonga" colspan="2" {{!}} '''Contact'''
 +
{{#if: {{{Organizer|}}} | {{!-}}
 +
! align="left" {{!}} Organizer
 +
{{!}} {{#if: {{{Organizer|}}}|[[Is organized by::{{{Organizer}}}]]}}{{#if: {{{Organizer contact|}}}|<br />[[Has e-mail::{{{Organizer contact}}}]] }}
 
}}
 
}}
 
{{#if: {{{Contact person|}}} | {{!-}}
 
{{#if: {{{Contact person|}}} | {{!-}}
! align="left" {{!}} Contact person
+
! align="left" {{!}} Contact
{{!}} {{#if: {{{Contact person|}}}|[[Has contact person::{{{Contact person}}}]]}}<br /> [[Has e-mail::{{{Contact}}}]]
+
{{!}} {{#if: {{{Contact person|}}}|[[Has contact person::{{{Contact person}}}]]}} {{#if: {{{Contact|}}}|<br />[[Has e-mail::{{{Contact}}}]] }}
 
}}
 
}}
 
{{#if: {{{Milonga website|}}} | {{!-}}
 
{{#if: {{{Milonga website|}}} | {{!-}}
Line 42: Line 54:
 
{{!}} {{#if: {{{Facebook page|}}}|[[Is on Facebook at::{{{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|}}} | {{!-}}
 +
! align="left" {{!}} TJs
 +
{{!}} {{#if: {{{TJs|}}}|{{Bullet}} {{#arraymap:{{{TJs|}}}|,|@@|[[Has TJ::@@]]| {{Bullet br}} }} }}
 +
}}
 +
<!---------------HIDDEN (old, now it's not drawn automatically, but TJs have to be chosen manually----------
 
|-
 
|-
 
! align="left" | TJs
 
! align="left" | TJs
 
! {{#ask:[[Category:TJ]][[Played at milonga::{{BASEPAGENAME}}]]|format=ul}}
 
! {{#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>

Latest revision as of 20:56, 25 August 2015



[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 =
}}