Difference between revisions of "Template:CrewSidebar/en"

From Pirate Party Belgium
Jump to: navigation, search
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
<includeonly>{| style="width: 300px; 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;"
+
<includeonly>{| class="pirate-sidebar"
! style="text-align: center; background-color: #692D89; color:white;padding:0.3em; font-size:medium;" colspan="2" | [[Has crew name::{{{crewname|{{PAGENAME}}}}}]]
+
| style="padding:0;" colspan=2 |
 +
{| style="width:100%" cellspacing=0
 +
! class="title" | [[Has crew name::{{{crewname|{{PAGENAME}}}}}]]
 +
| class="icon" | [[File:Sailboat symbol.svg|x25px|link=Category:Crew]]
 +
|}
 
|-
 
|-
 +
{{#if: {{{image|}}} |
 +
{{!}} colspan=2 {{!}} [[File:{{{image}}}|frameless|150px|center]]
 +
{{!}}- }}
 
{{#if: {{{venue|}}} |
 
{{#if: {{{venue|}}} |
! style="vertical-align: top;" {{!}} {{int:sidebar-venue}}
+
! {{int:sidebar-venue}}
 
{{!}} {{#set: In venue={{{venue}}} }}{{{venue}}}
 
{{!}} {{#set: In venue={{{venue}}} }}{{{venue}}}
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{address|}}} |
 
{{#if: {{{address|}}} |
! style="vertical-align: top;" {{!}} {{int:sidebar-anchor}}
+
! {{int:sidebar-anchor}}
 
{{!}} [[Has address::{{{address}}}]]
 
{{!}} [[Has address::{{{address}}}]]
 
{{!}}- }}
 
{{!}}- }}
! style="vertical-align: top;" | {{int:sidebar-city}}
+
! {{int:sidebar-city}}
 
| {{#if: {{{postalcode|}}}  
 
| {{#if: {{{postalcode|}}}  
 
   | [[In postal code::{{{postalcode}}}]]  
 
   | [[In postal code::{{{postalcode}}}]]  
 
   }} {{#if: {{{city|}}} | [[In city::{{{city}}}]] | ? }}
 
   }} {{#if: {{{city|}}} | [[In city::{{{city}}}]] | ? }}
 
|-
 
|-
! style="vertical-align: top;" | {{int:sidebar-province}}
+
! {{int:sidebar-province}}
 
| {{#if: {{{province|}}} | [[In province::{{{province}}}]] | ? }}
 
| {{#if: {{{province|}}} | [[In province::{{{province}}}]] | ? }}
 
|-
 
|-
! style="vertical-align: top;" | {{int:sidebar-region}}
+
! {{int:sidebar-region}}
 
| {{#if: {{{region|}}} | [[In region::{{{region}}}]] | ? }}
 
| {{#if: {{{region|}}} | [[In region::{{{region}}}]] | ? }}
 
|-  
 
|-  
! style="vertical-align: top;" | {{int:sidebar-members}}
+
! {{int:sidebar-members}}
 
| {{#if: {{{members|}}} | {{#arraymap:{{{members}}}|,|x|{{#set:Has member=x}}x}} | ? }}
 
| {{#if: {{{members|}}} | {{#arraymap:{{{members}}}|,|x|{{#set:Has member=x}}x}} | ? }}
 
|-  
 
|-  
 
{{#if: {{{captain|}}} |
 
{{#if: {{{captain|}}} |
! style="vertical-align: top;" {{!}} {{int:sidebar-captain}}
+
! {{int:sidebar-captain}}
 
{{!}} {{#arraymap:{{{captain}}}|,|x|{{#set:Has captain=x}}x|<br />}}
 
{{!}} {{#arraymap:{{{captain}}}|,|x|{{#set:Has captain=x}}x|<br />}}
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{navigator|}}} |  
 
{{#if: {{{navigator|}}} |  
! style="vertical-align: top;" {{!}} {{int:sidebar-navigator}}
+
! {{int:sidebar-navigator}}
 
{{!}} {{#arraymap:{{{navigator}}}|,|x|{{#set:Has navigator=x}}x|<br />}}
 
{{!}} {{#arraymap:{{{navigator}}}|,|x|{{#set:Has navigator=x}}x|<br />}}
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{treasurekeeper|}}} |  
 
{{#if: {{{treasurekeeper|}}} |  
! style="vertical-align: top;" {{!}} {{int:sidebar-treasurer}}
+
! {{int:sidebar-treasurer}}
 
{{!}} {{#arraymap:{{{treasurekeeper}}}|,|x|{{#set:Has treasurer=x}}x|<br />}}
 
{{!}} {{#arraymap:{{{treasurekeeper}}}|,|x|{{#set:Has treasurer=x}}x|<br />}}
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{socialnetworks|}}} |  
 
{{#if: {{{socialnetworks|}}} |  
! style="vertical-align: top;" {{!}} {{int:sidebar-social-networks}}
+
! {{int:sidebar-social-networks}}
 
{{!}}{{#arraymap:{{{socialnetworks}}}|,|x|x|<br />}}  
 
{{!}}{{#arraymap:{{{socialnetworks}}}|,|x|x|<br />}}  
 
{{!}}- }}
 
{{!}}- }}
! style="vertical-align: top;" | {{int:sidebar-status}}
+
! {{int:sidebar-status}}
 
| {{#if: {{{status|}}}
 
| {{#if: {{{status|}}}
 
   | [[Has status::{{lc:{{{status}}}}}|{{int:sidebar-status-{{lc:{{{status}}}}}}}]]
 
   | [[Has status::{{lc:{{{status}}}}}|{{int:sidebar-status-{{lc:{{{status}}}}}}}]]
Line 70: Line 77:
 
{{CrewSidebar
 
{{CrewSidebar
 
|crewname = An awesome crew
 
|crewname = An awesome crew
 +
|image = Logo-heart 135px.png
 
|venue = Flying Dutchman
 
|venue = Flying Dutchman
 
|address = Treasure Island 666
 
|address = Treasure Island 666
Line 91: Line 99:
 
{{CrewSidebar
 
{{CrewSidebar
 
|crewname = An awesome crew
 
|crewname = An awesome crew
 +
|image = Logo-heart 135px.png
 
|venue = Flying Dutchman
 
|venue = Flying Dutchman
 
|address = Treasure Island 666
 
|address = Treasure Island 666
Line 112: Line 121:
 
: Name of the crew.
 
: Name of the crew.
 
: By default, the '''page name''' is used.
 
: By default, the '''page name''' is used.
 +
; image
 +
: Une image qui représente l'équipage (e.g. un logo)
 
; venue*  
 
; venue*  
 
: Name of the venue where the crew is usually meeting (optional)
 
: Name of the venue where the crew is usually meeting (optional)

Revision as of 18:43, 27 September 2017

Other languages:
English • ‎Nederlands • ‎français
An awesome crew Toicon-icon-avocado-fold.svg
Logo-heart 135px.png
Venue Flying Dutchman
Anchoring Treasure Island 666
City 9000 Atlantis
Province North Sea
Region Atlantica
Members Jack, Pieter, Mary
Captain Edward Teach
Navigator Mr. Smee
Treasurer Coco the parrot
Social networks Link Diaspora
Facebook
Twitter
...
Status Active

Usage

You can copy/paste this code to start using the template:

{{CrewSidebar
|crewname = An awesome crew
|image = Logo-heart 135px.png
|venue = Flying Dutchman
|address = Treasure Island 666
|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, ...
|status = active
}}

Parameters

Fields marked with an asterisk (*) are optional.

crewname
Name of the crew.
By default, the page name is used.
image
Une image qui représente l'équipage (e.g. un logo)
venue*
Name of the venue where the crew is usually meeting (optional)
address*
Address where the crew is usually meeting (optional)
postalcode
Postal code of the city where the crew is located.
city
City where the crew is located.
province
Province where the crew is located.
region
Region where the crew is located.
Three values are allowed: Brussels, Vlaanderen and Wallonie.
members
List of the crew's members, separated by comas.
captain*
Captain of the crew (optional)
navigator*
Navigator of the crew (optional).
treasurekeeper*
Treasure keeper of the crew (optional).
socialnetworks*
Social networks used by the crew, separated by comas (optional).
status
Status of the crew
Two possible values: active or inactive (default).
nocat
Disable the automatic creation of categories.
Two possible values: true or false (default).