Template:CrewSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
mNo edit summary
(remove place, street, number + add province, region + change styles of the table)
Line 1: Line 1:
<includeonly>{{#vardefine:NA| {{#ifeq: {{{lang|}}} | fr | Non assigné | {{#ifeq: {{{lang|}}} | nl | Niet toegewezen | Not assigned }} }} }}{{#vardefine:TBD| {{#ifeq: {{{lang|}}} | fr | À définir | {{#ifeq: {{{lang|}}} | nl | | To be defined }} }} }}{| class="toccolours vatop" cellpadding="1" cellspacing="1" style="float:right; clear:right; width:150px; padding:0px; margin:0px 0px 1em 1em; font-size:85%; text-align:center;"
<includeonly>{{#vardefine:NA|?}}{| style="width: 20em; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; position:relative; text-align:left;"
! colspan=2 bgcolor=#692E89 |<center><font color="white">'''{{{crewname|Pirate Party}}}'''</font></center>
! style="text-align: center; background-color: #692D89; color:white;padding:0.3em; font-size:medium;" colspan="2" | {{{crewname|{{PAGENAME}}}}}
{{{flag|}}}
|-
|-
! colspan=2 bgcolor=gainsboro |'''{{#ifeq: {{{lang|}}} | fr | Lieu | {{#ifeq: {{{lang|}}} | nl | Locatie | Location }} }}'''
! {{#switch: {{{lang|}}} | fr = Ville | nl = Staad | City }}
| [[In postal code::{{{postalcode|}}}]] [[In city::{{{city|{{#var:NA}}}}}]]
|-
|-
|{{{place| {{#var:NA}} }}}
! {{#switch: {{{lang|}}} | fr = Province | nl = Provincie | Province }}
| [[In province::{{{province|{{#var:NA}}}}}]]
|-
|-
|{{{street|}}} {{{number|}}}
! {{#switch: {{{lang|}}} | fr = Région | nl = Gewest | Region }}
|-
| [[In region::{{{region|{{#var:NA}}}}}]]
|{{{postalcode|}}} {{{city|}}}
|-
| colspan=2 bgcolor=gainsboro |'''{{#ifeq: {{{lang|}}} | fr | Membres | {{#ifeq: {{{lang|}}} | nl | Leden | Members }} }}'''
|-  
|-  
|  
! {{#switch: {{{lang|}}} | fr = Membres | nl = Leden | Members }}
{{#arraymap:{{{members|{{#var:NA}}}}}|,|x|x|<br />}}
| {{#arraymap:{{{members|{{#var:NA}}}}}|,|x|x|<br />}}
|-  
|-  
| colspan=2 bgcolor=gainsboro |'''{{#ifeq: {{{lang|}}} | fr | Capitaine | {{#ifeq: {{{lang|}}} | nl | Kapitein | Captain }} }}'''
! {{#switch: {{{lang|}}} | fr = Capitaine | nl = Kapitein | Captain }}
| {{{captain|{{#var:NA}}}}}
|-  
|-  
| {{{captain| {{#var:NA}} }}}
! {{#switch: {{{lang|}}} | fr = Navigateur | nl = Navigator | Navigator }}
|-
| {{{navigator|{{#var:NA}}}}}
! colspan=2 bgcolor=gainsboro |'''{{#ifeq: {{{lang|}}} | fr | Navigateur | {{#ifeq: {{{lang|}}} | nl | Navigator | Navigator }} }}'''
{{#if: {{{treasurekeeper|}}} |
|-
{{!}}-
| {{{navigator| {{#var:NA}} }}}
! {{#switch: {{{lang|}}} | fr = Trésorier | nl = Penningmeester | Treasure Keeper }}
|-
{{!}} {{{treasurekeeper|{{#var:NA}}}}}  
!  colspan=2 bgcolor=gainsboro |'''{{#ifeq: {{{lang|}}} | fr | Trésorier | {{#ifeq: {{{lang|}}} | nl | Penningmeester | Treasure Keeper }} }}'''
}}{{#if: {{{socialnetworks|}}} |  
|-
| {{{treasurekeeper| {{#var:NA}} }}}
{{#if: {{{socialnetworks|}}} |  
{{!}}-
{{!}}-
! colspan=2 bgcolor=gainsboro {{!}}'''{{#ifeq: {{{lang|}}} | fr | Réseaux sociaux | {{#ifeq: {{{lang|}}} | 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 />}}
}}
}}
|-
|-
|  colspan=2 bgcolor=gainsboro |'''{{#ifeq: {{{lang|}}} | fr | Statut | {{#ifeq: {{{lang|}}} | nl | Staat | Status }} }}'''
! {{#switch: {{{lang|}}} | fr = Statut | nl = Staat | Status }}
|-
| {{#ifeq: {{{active|}}} | true |  
| {{#ifeq: {{{active|false}}} | true |  
  {{#switch: {{{lang|}}} | fr = Actif | nl = Actief | Active }} |  
    {{#ifeq: {{{lang|}}} | fr | Actif | {{#ifeq: {{{lang|}}} | nl | Actief | Active }} }} |  
  {{#switch: {{{lang|}}} | fr = Inactif | nl = Inactief | Inactive }}  
    {{#ifeq: {{{lang|}}} | fr | Inactif | {{#ifeq: {{{lang|}}} | nl | Inactief | Inactive }} }}
}}
  }}
|}{{#ifeq: {{{nocat|}}} | true |  | {{#ifeq: {{{active|}}} | true | [[Category:Active_Crews]] | [[Category:Inactive_Crew]] }} [[Category:Crew]] }}</includeonly><noinclude>
|}{{#if: {{{nocat|}}} | |  
  {{#ifeq: {{{active|false}}} | true | [[Category:Active_Crews]] | [[Category:Inactive_Crew]] }}  
  [[Category:Crew]]  
}}</includeonly><noinclude>
{{CrewSidebar
{{CrewSidebar
|lang = en
|lang = en
|crewname = An awesome crew
|crewname = An awesome crew
|place = Flying Dutchman
|street = Treasure Island
|number = 666
|postalcode = 9000
|postalcode = 9000
|city = Atlantica
|city = Atlantis
|provincie = North Sea
|region = Atlantica
|members = Jack, Pieter, Mary
|members = Jack, Pieter, Mary
|captain = Edward Teach
|captain = Edward Teach
Line 73: Line 62:
| crewname
| crewname
|  
|  
|--
| place
| Meeting place.
|--
| street
|
|--
| number
| Street number.
|--
|--
| postalcode
| postalcode
Line 88: Line 68:
| city
| city
|  
|  
|--
| province
|
|--
| region
|
|--
|--
| captain
| captain

Revision as of 09:25, 13 November 2016

An awesome crew
City 9000 Atlantis
Province ?
Region Atlantica
Members Jack
Pieter
Mary
Captain Edward Teach
Navigator Mr. Smee
Treasure Keeper - 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
|place = Flying Dutchman 
|street = Treasure Island
|number = 666
|postalcode = 9000
|city = Atlantica
|members = Jack, Pieter, Mary
|captain = Edward Teach
|navigator = Mr. Smee
|treasurekeeper = Coco the parrot
|socialnetworks= Link Diaspora, Facebook, Twitter, ...
|active = true
}}