Template:CrewSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
|-
|-
! {{#switch: {{{lang|}}} | fr = Ville | nl = Staad | City }}
! {{#switch: {{{lang|}}} | fr = Ville | nl = Staad | City }}
| [[In postal code::{{{postalcode|}}}]] [[In city::{{{city|{{#var:NA}}}}}]]
|[[In postal code::{{{postalcode|}}}]] [[In city::{{{city|{{#var:NA}}}}}]]
|-
|-
! {{#switch: {{{lang|}}} | fr = Province | nl = Provincie | Province }}
! {{#switch: {{{lang|}}} | fr = Province | nl = Provincie | Province }}
| [[In province::{{{province|{{#var:NA}}}}}]]
|[[In province::{{{province|{{#var:NA}}}}}]]
|-
|-
! {{#switch: {{{lang|}}} | fr = Région | nl = Gewest | Region }}
! {{#switch: {{{lang|}}} | fr = Région | nl = Gewest | Region }}
| [[In region::{{{region|{{#var:NA}}}}}]]
|[[In region::{{{region|{{#var:NA}}}}}]]
|-  
|-  
! {{#switch: {{{lang|}}} | fr = Membres | nl = Leden | Members }}
! {{#switch: {{{lang|}}} | fr = Membres | nl = Leden | Members }}
| {{#arraymap:{{{members|{{#var:NA}}}}}|,|x|x|<br />}}
|{{#arraymap:{{{members|{{#var:NA}}}}}|,|x|x|<br />}}
|-  
|-  
! {{#switch: {{{lang|}}} | fr = Capitaine | nl = Kapitein | Captain }}
! {{#switch: {{{lang|}}} | fr = Capitaine | nl = Kapitein | Captain }}
| {{{captain|{{#var:NA}}}}}
|{{{captain|{{#var:NA}}}}}
|-  
|-  
! {{#switch: {{{lang|}}} | fr = Navigateur | nl = Navigator | Navigator }}
! {{#switch: {{{lang|}}} | fr = Navigateur | nl = Navigator | Navigator }}
| {{{navigator|{{#var:NA}}}}}
|{{{navigator|{{#var:NA}}}}}
|-
|-
! {{#switch: {{{lang|}}} | fr = Trésorier | nl = Penningmeester | Treasure Keeper }}
! {{#switch: {{{lang|}}} | fr = Trésorier | nl = Penningmeester | Treasure Keeper }}
| {{{treasurekeeper|{{#var:NA}}}}}  
|{{{treasurekeeper|{{#var:NA}}}}}  
{{#if: {{{socialnetworks|}}} |  
{{#if: {{{socialnetworks|}}} |  
{{!}}-
{{!}}-
! {{#switch: {{{lang|}}} | fr = Réseaux sociaux | nl = Sociale Netwerken | Social Networks }}
! {{#switch: {{{lang|}}} | fr = Réseaux sociaux | nl = Sociale Netwerken | Social Networks }}
{{!}} {{#arraymap:{{{socialnetworks|}}}|,|x|x|<br />}}  
{{!}}{{#arraymap:{{{socialnetworks|}}}|,|x|x|<br />}}  
}}
}}
|-
|-

Revision as of 09:42, 13 November 2016

An awesome crew
City 9000 Atlantis
Province North Sea
Region Atlantica
Members Jack
Pieter
Mary
Captain Edward Teach
Navigator Mr. Smee
Treasure Keeper Coco the parrot
Social Networks Link Diaspora
Facebook
Twitter
...
Status Active
Parameters
parameter description
lang en, fr or nl
crewname
postalcode
city
province
region
captain
treasurekeeper
socialnetworks Links to social media.
active true or false

Usage

{{CrewSidebar
|lang = en
|crewname = An awesome crew
|postalcode = 9000
|city = Atlantis
|province = North Sea
|region = Atlantica
|members = Jack, Pieter, Mary
|captain = Edward Teach
|navigator = Mr. Smee
|treasurekeeper = Coco the parrot
|socialnetworks= Link Diaspora, Facebook, Twitter, ...
|active = true
}}