Difference between revisions of "Template:Infobox Milonga"
From Tangowiki
(25 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{|border="1" cellpadding="4" align="right" style="border-color:# | + | <includeonly>{|border="1" cellpadding="4" align="right" style="{{#ifeq:{{{Practica}}}|Is Práctica|border-color:#f6d0d9;|border-color:#f9d8ed;}}" class="infobox milonga" |
− | | | + | |-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 /><br /> | + | !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 | + | {{#if: {{{Caption|}}}|{{{Caption}}}<br />}} |
}} | }} | ||
{{#if: {{{Official name|}}} | {{!-}} | {{#if: {{{Official name|}}} | {{!-}} | ||
Line 20: | 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="background:# | + | | 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:: | + | {{!}} {{#if: {{{Weekday|}}}|{{#arraymap:{{{Weekday|}}}|,|@@|[[Takes place on week day::@@]]}} }} |
}} | }} | ||
{{#if: {{{Start time|}}} | {{!-}} | {{#if: {{{Start time|}}} | {{!-}} | ||
! align="left" {{!}} Time | ! align="left" {{!}} Time | ||
{{!}} {{#if: {{{Start time|}}}|[[Starts at::{{{Start time}}}]]}} – {{#if:{{{End time|}}}|[[Ends at::{{{End time}}}]]}} | {{!}} {{#if: {{{Start time|}}}|[[Starts at::{{{Start time}}}]]}} – {{#if:{{{End time|}}}|[[Ends at::{{{End time}}}]]}} | ||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
{{#if: {{{Music style|}}} | {{!-}} | {{#if: {{{Music style|}}} | {{!-}} | ||
Line 41: | Line 37: | ||
}} | }} | ||
|- | |- | ||
− | | style=" | + | | style="{{#ifeq:{{{Practica}}}|Is Práctica|background-color:#e28ea2;|background-color:#db9dc5;}}" class="infobox milonga" colspan="2" {{!}} '''Contact''' |
{{#if: {{{Organizer|}}} | {{!-}} | {{#if: {{{Organizer|}}} | {{!-}} | ||
! align="left" {{!}} Organizer | ! align="left" {{!}} Organizer | ||
− | {{!}} {{#if: {{{Organizer|}}}|[[Is organized by::{{{Organizer}}}]]}} {{#if: {{{Organizer contact|}}}|<br />[[Has e-mail::{{{Organizer contact}}}]] }} | + | {{!}} {{#if: {{{Organizer|}}}|[[Is organized by::{{{Organizer}}}]]}}{{#if: {{{Organizer contact|}}}|<br />[[Has e-mail::{{{Organizer contact}}}]] }} |
}} | }} | ||
{{#if: {{{Contact person|}}} | {{!-}} | {{#if: {{{Contact person|}}} | {{!-}} | ||
Line 66: | Line 62: | ||
{{!}} {{#if: {{{Telephone number|}}}|[[Has telephone number::{{{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 =
}}