Difference between revisions of "Template:Infobox Milonga"
From Tangowiki
(41 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 />< | + | !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|}}} | {{!-}} | ||
+ | ! 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}}}]] | + | {{!}} {{#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:: | + | {{!}} {{#if: {{{Weekday|}}}|{{#arraymap:{{{Weekday|}}}|,|@@|[[Takes place on week day::@@]]}} }} |
}} | }} | ||
− | {{#if: {{{Start|}}} | {{!-}} | + | {{#if: {{{Start time|}}} | {{!-}} |
− | ! align="left" {{!}} | + | ! align="left" {{!}} Time |
− | {{!}} {{#if: {{{Start|}}}|[[ | + | {{!}} {{#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 | + | ! 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 =
}}