Template:PirateBeer: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(using subobject)
No edit summary
Line 1: Line 1:
<includeonly>{{#vardefine:NA|?}}{{#subobject:piratebeer
<includeonly>{{#vardefine:NA|?}}{{#subobject:piratebeer
|By crew={{{crew|{{PAGENAME}}}}}}
|By crew={{{crew|{{PAGENAME}}}}}
|In city={{{city|}}}
|In city={{{city|}}}
|In postal code={{{postalcode|}}}
|In postal code={{{postalcode|}}}
Line 6: Line 6:
|At house number={{{number|}}}
|At house number={{{number|}}}
|In venue={{{place|}}}
|In venue={{{place|}}}
|Has date={{{date|}}}
|Has date={{#time:Y-m-d|{{{date|}}}|{{{lang|en}}}}}
|@category=Event|Pirate Beer
|@category=Event|Pirate Beer
}}{{#if: {{{date|}}} | {{#time:D. j M. Y|{{{date}}}|{{{lang|en}}}}} {{#if: {{{time|}}} | {{#switch: {{{lang|}}} | fr = à | at }} {{{time}}} }} | {{#var:NA}} }}<br />
}}{{#if: {{{date|}}} | {{#time:D. j M. Y|{{{date}}}|{{{lang|en}}}}} {{#if: {{{time|}}} | {{#switch: {{{lang|}}} | fr = à | at }} {{{time}}} }} | {{#var:NA}} }}<br />

Revision as of 12:11, 20 November 2016

Usage

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

Example

Mon. 14 Nov. 2016 at 19:30pm
Flying Dutchman, Treasure Island 666
9000 Atlantis