Template:PirateBeers: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
(Redirected page to Template:PirateDrinks)
Line 1: Line 1:
<includeonly>
#REDIRECT [[Template:PirateDrinks]]
{{#ask: [[Has event type::PirateBeer]] {{#if: {{{1|}}}
| [[Organized by::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}]]
}}
|?Has date#ISO
|?Has time
|?In venue
|?Has link venue
|?Has address
|?In city
|?In postal code#
|format=template
|sort=In city
|link=none
|headers=hide
|sep=,
|introtemplate=Table center intro
|template=PirateBeer item
|outrotemplate=Table outro
|userparam={{{nomap|true}}}
|named args=1
|default={{NoEvent|{{{1|}}}|type=PirateBeer}}
}} {{#ifeq: {{{formlink|true}}} | true
| <span style="float:right;">''{{NewEvent|{{{1|}}}|type=PirateBeer}}''</span><br />
}} {{#ifeq: {{{export|true}}} | true
| <span style="float:right">''{{ExportEvent|workgroup={{{1|}}}|type=PirateBeer|date=now|text={{int:event-export-for|iCalendar}} }}''</span><br />
}}</includeonly><noinclude>This template lists pirate beer events organized by a given crew. You can create a new pirate beer event with {{#formlink:form=PirateBeer event|link text=this form}}.
 
== Usage ==
 
<nowiki>{{PirateBeers
|An awesome crew
|formlink=true
|nomap=true
|export=true
}}</nowiki>
 
All parameters are optional. Default value for the crew name is the page's name where the template is included.
 
== Examples ==
 
=== No Events ===
 
<nowiki>{{PirateBeers|An awesome crew}}</nowiki>
 
{{PirateBeers|An awesome crew}}
 
=== [[Crew BW#Pirate Beer|Crew BW]] ===
 
<nowiki>{{PirateBeers|Crew BW}}</nowiki>
 
{{PirateBeers|Crew BW}}
 
=== [[Pirates de Liège]] ===
 
<nowiki>{{PirateBeers|Pirates de Liège|nomap=false}}</nowiki>
 
{{PirateBeers|Pirates de Liège|nomap=false}}</noinclude>

Revision as of 00:24, 5 November 2017