Template:PirateBeers: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#ask:[[Category:PirateBeer]] [[Organized by::{{{1|{{PAGENAME}} }}}]]
{{#ask:[[Category:PirateBeer]] {{#if: {{{1|}}}
|?In language
| [[Organized by::{{{1}}}]]
| [[Organized by::+]]
}}
  |?Has date#ISO
  |?Has date#ISO
  |?Has time
  |?Has time
Line 19: Line 21:
  |userparam={{{headers|}}}
  |userparam={{{headers|}}}
  |named args=1
  |named args=1
  |default={{#switch: {{{lang|}}} | fr = Il n'y a pas encore de Pirate Beer organisée par | There is not yet any pirate beer event organized by }} [[{{{1|{{PAGENAME}} }}}]].
  |default={{NoEvent|{{{1|+}}}|type=PirateBeer}}
}} {{#ifeq: {{{formlink|true}}} | true | <div style="text-align:right">{{#formlink:form=PirateBeer event|query string=PirateBeer[crew]={{{1|{{PAGENAME}} }}}&PirateBeer[lang]={{{lang|en}}}|link text=''{{#switch: {{{lang|}}} | fr = Ajouter une nouvelle Pirate Beer | Add a new Pirate Beer event }}'' }}</div> }}</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}}.
}} {{NewEvent|{{{1|}}}|type=PirateBeer}}</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 ==
== Usage ==
Line 27: Line 29:
|An awesome crew
|An awesome crew
|headers=show
|headers=show
|lang=en
|formlink=true
|formlink=true
}}</nowiki>
}}</nowiki>
Line 41: Line 42:
=== [[Crew BW#Pirate Beer|Crew BW]] ===
=== [[Crew BW#Pirate Beer|Crew BW]] ===


{{PirateBeers|Crew BW|lang=fr}}</noinclude>
{{PirateBeers|Crew BW}}</noinclude>

Revision as of 08:10, 23 February 2017

This template lists pirate beer events organized by a given crew. You can create a new pirate beer event with this form.

Usage

{{PirateBeers
|An awesome crew
|headers=show
|formlink=true
}}

All parameters are optional. Default value for the crew name is the page's name where the template is included.

Examples

An awesome crew

There is no event for An awesome crew. Add a new event

Crew BW

There is no event for Crew BW. Add a new event