Template:PirateBeer: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#vardefine:NA|?}}{{#subobject:Pirate Beer
<includeonly>{{#vardefine:venue|{{#set: In venue={{{venue|}}} }}{{#if: {{{linkvenue|}}} | [[Has link venue::{{{linkvenue}}}|{{{venue|}}} ]] | {{{venue|}}} }} }}<nowiki />
|Organized by={{{crew|{{PAGENAME}}}}}
{{#if: {{{date|}}} | [[Has date::{{{date}}}|{{#time:D j F Y|{{{date}}}|{{{lang|en}}} }}]] | ? }} {{#if:{{{time|}}} | {{#switch: {{{lang|}}} | fr = à | at }} [[Has time::{{{time}}}]] }}<br />
|In city={{{city|}}}
{{#if: {{{address|}}} | [[Has address::{{{address}}}]] {{#if: {{{venue|}}} | ({{#var:venue}}) }} | {{#if: {{{venue|}}} | {{#var:venue}} | ? }} }}<br />
|In postal code={{{postalcode|}}}
{{#if: {{{postalcode|}}} | [[In postal code::{{{postalcode}}}]] [[In city::{{{city}}}]] | [[In city::{{{city}}}]] }}
|In street={{{street|}}}
 
|At house number={{{number|}}}
{{#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>
|In venue={{{place|}}}
|Has date={{#if: {{{date|}}} | {{#time:Y-m-d|{{{date|}}}}} }}
|Has event type=Pirate Beer
}}{{#if: {{{date|}}} | {{#ask: [[-Has subobject::{{FULLPAGENAME}}]] [[Has event type::Pirate Beer]] [[Has date::{{#time:Y-m-d|{{{date}}}}}]] [[In postal code::{{{postalcode|}}}]] | ?Has date#MEDIAWIKI-F[D j F Y]=  | mainlabel =-}} {{#if: {{{time|}}} | {{#switch: {{{lang|}}} | fr = à | at }} {{{time}}} }} | {{#var:NA}} }}<br />
{{#if: {{{linkplace|}}}{{{place|}}} | [{{{linkplace}}} {{{place}}}] | {{{place|{{#var:NA}}}}} }}, {{{street|{{#var:NA}}}}} {{{number|}}}<br />
{{{postalcode|}}} {{{city|}}}{{#if: {{{nocat|}}} | | {{#if: {{{crew|}}} | [[Category:{{{crew}}}]] }} }}
</includeonly><noinclude>
== Usage ==
== Usage ==
  <nowiki>{{PirateBeer
  <nowiki>{{PirateBeer
Line 18: Line 11:
|date = 14 nov 2016
|date = 14 nov 2016
|time = 19:30pm
|time = 19:30pm
|place = Flying Dutchman
|venue = Flying Dutchman
|street = Treasure Island
|linkvenue = http://www.the-flying-dutchman.nl/
|number = 666
|address = Treasure Island 666
|postalcode = 9000
|postalcode = 9000
|city = Atlantis
|city = Atlantis
|linkplace=http://www.the-flying-dutchman.nl/
}}</nowiki>
}}</nowiki>


Line 33: Line 25:
|date = 14 nov 2016
|date = 14 nov 2016
|time = 19:30pm
|time = 19:30pm
|place = Flying Dutchman
|venue = Flying Dutchman
|street = Treasure Island
|linkvenue = http://www.the-flying-dutchman.nl/
|number = 666
|address = Treasure Island 666
|postalcode = 9000
|postalcode = 9000
|city = Atlantis
|city = Atlantis
|linkplace=http://www.the-flying-dutchman.nl/
|nocat = true
|nocat = true
}}</noinclude>
}}</noinclude>

Revision as of 11:43, 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

This event is organized by An awesome crew.