Template:PirateBeer: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#vardefine:venue|{{#set: In venue={{{venue|}}} }}{{#if: {{{linkvenue|}}} | [[Has link venue::{{{linkvenue}}}|{{{venue|}}} ]] | {{{venue|}}} }} }}<nowiki />
<includeonly>{{#vardefine:venue|{{#if: {{{linkvenue|}}} | [{{{linkvenue}}} {{{venue|}}}] | {{{venue|?}}} }} }}{{#if: {{{date|}}} | {{#time:D j F Y|{{{date}}}|{{{lang|en}}} }} | ? }} {{#if: {{{time|}}} | {{#switch: {{{lang|}}} | fr = à | at }} {{{time}}} }}<br />{{#if: {{{address|}}} | {{{address}}} {{#if: {{{venue|}}} | ({{#var:venue}}) }} | {{#var:venue}} }}<br />{{#if: {{{postalcode|}}} | {{{postalcode}}} {{{city}}} | {{{city}}} }} {{#if: {{{nocat|}}} | | [[Category:Event]] [[Category:PirateBeer]] }} {{#if: {{{noproperties|}}} | | {{#set: In language={{{lang|en}}}| Has date={{{date|}}}| Has time={{{time|}}}| Has address={{{address|}}}| In venue={{{venue|}}}| Has link venue={{{linkvenue|}}}| In city={{{city|}}}| In postal code={{{postalcode|}}}| Organized by={{{crew|}}}| Has event type=Pirate Beer| Has default form=Pirate event}}</includeonly><noinclude>
{{#if: {{{date|}}} | [[Has date::{{{date}}}|{{#time:D j F Y|{{{date}}}|{{{lang|en}}} }}]] | ? }} {{#if:{{{time|}}} | {{#switch: {{{lang|}}} | fr = à | at }} [[Has time::{{{time}}}]] }}<br />
{{#if: {{{address|}}} | [[Has address::{{{address}}}]] {{#if: {{{venue|}}} | ({{#var:venue}}) }} | {{#if: {{{venue|}}} | {{#var:venue}} | ? }} }}<br />
{{#if: {{{postalcode|}}} | [[In postal code::{{{postalcode}}}]] [[In city::{{{city}}}]] | [[In city::{{{city}}}]] }}
 
{{#switch: {{{lang|}}} | fr = Cet évènement est organisé par | This event is organized by }} [[Organized by::{{{crew}}}]]. [[In language::{{{lang|en}}}| ]] [[Has event type::Pirate Beer| ]] [[Has default form::Pirate event| ]] {{#if: {{{nocat|}}} | | [[Category:Event]] [[Category:PirateBeer]] }}</includeonly><noinclude>
== Usage ==
== Usage ==
  <nowiki>{{PirateBeer
  <nowiki>{{PirateBeer
Line 31: Line 26:
|city = Atlantis
|city = Atlantis
|nocat = true
|nocat = true
|noproperties = true
}}</noinclude>
}}</noinclude>

Revision as of 22:58, 30 January 2017

Usage

{{PirateBeer
|lang = en
|crew = An awesome crew
|date = 14 nov 2016
|time = 19:30pm
|venue = Flying Dutchman
|linkvenue = http://www.the-flying-dutchman.nl/
|address = Treasure Island 666
|postalcode = 9000
|city = Atlantis
}}

Example

Mon 14 November 2016 at 19:30pm
Treasure Island 666 (Flying Dutchman)
9000 Atlantis {{#if: true | |