Template:PirateBeer: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
m (default value for crew argument : pagename)
(using subobject)
Line 1: Line 1:
<includeonly>{{#vardefine:NA|?}}{{#set: By crew={{{crew|{{PAGENAME}}}}}} | In city={{{city|}}} | In postal code={{{postalcode|}}} | In street={{{street|}}} | At house number={{{number|}}} | In venue={{{place|}}} | Has date={{{date|}}} }}{{#if: {{{nocat|}}} | | [[Category:Event]] [[Category:Pirate Beer]] {{#if: {{{crew|}}} | [[Category:{{{crew}}}]] }} }}{{#if: {{{date|}}} | {{#time:D. j M. Y|{{{date}}}|{{{lang|en}}}}} {{#if: {{{time|}}} | {{#switch: {{{lang|}}} | fr = à | at }} {{{time}}} }} | {{#var:NA}} }}<br />
<includeonly>{{#vardefine:NA|?}}{{#subobject:piratebeer
|By crew={{{crew|{{PAGENAME}}}}}}
|In city={{{city|}}}
|In postal code={{{postalcode|}}}
|In street={{{street|}}}
|At house number={{{number|}}}
|In venue={{{place|}}}
|Has date={{{date|}}}
|@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: {{{linkplace|}}}{{{place|}}} | [{{{linkplace}}} {{{place}}}] | {{{place|{{#var:NA}}}}} }}, {{{street|{{#var:NA}}}}} {{{number|}}}<br />
{{#if: {{{linkplace|}}}{{{place|}}} | [{{{linkplace}}} {{{place}}}] | {{{place|{{#var:NA}}}}} }}, {{{street|{{#var:NA}}}}} {{{number|}}}<br />
{{{postalcode|}}} {{{city|}}}
{{{postalcode|}}} {{{city|}}}{{#if: {{{nocat|}}} | | {{#if: {{{crew|}}} | [[Category:{{{crew}}}]] }} }}</includeonly><noinclude>
</includeonly><noinclude>
== Usage ==
== Usage ==
  <nowiki>{{PirateBeer
  <nowiki>{{PirateBeer

Revision as of 12:07, 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

Property "By crew" (as page type) with input value "An awesome crew}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.Mon. 14 Nov. 2016 at 19:30pm
Flying Dutchman, Treasure Island 666
9000 Atlantis