Template:CrewSidebar: Difference between revisions
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| | <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;" | ||
! | ! style="text-align: center; background-color: #692D89; color:white;padding:0.3em; font-size:medium;" colspan="2" | {{{crewname|{{PAGENAME}}}}} | ||
|- | |- | ||
! | ! {{#switch: {{{lang|}}} | fr = Ville | nl = Staad | City }} | ||
| [[In postal code::{{{postalcode|}}}]] [[In city::{{{city|{{#var:NA}}}}}]] | |||
|- | |- | ||
|{{{ | ! {{#switch: {{{lang|}}} | fr = Province | nl = Provincie | Province }} | ||
| [[In province::{{{province|{{#var:NA}}}}}]] | |||
|- | |- | ||
! {{#switch: {{{lang|}}} | fr = Région | nl = Gewest | Region }} | |||
| | | [[In region::{{{region|{{#var:NA}}}}}]] | ||
| | |||
| | |||
|- | |- | ||
| | ! {{#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 }} | |||
| {{{captain|{{#var:NA}}}}} | |||
|- | |- | ||
! {{#switch: {{{lang|}}} | fr = Navigateur | nl = Navigator | Navigator }} | |||
| {{{navigator|{{#var:NA}}}}} | |||
! | {{#if: {{{treasurekeeper|}}} | | ||
{{!}}- | |||
| {{{navigator| {{#var:NA}} }}} | ! {{#switch: {{{lang|}}} | fr = Trésorier | nl = Penningmeester | Treasure Keeper }} | ||
{{!}} {{{treasurekeeper|{{#var:NA}}}}} | |||
}}{{#if: {{{socialnetworks|}}} | | |||
{{#if: {{{socialnetworks|}}} | | |||
{{!}}- | {{!}}- | ||
! | ! {{#switch: {{{lang|}}} | fr = Réseaux sociaux | nl = Sociale Netwerken | Social Networks }} | ||
{{!}} {{#arraymap:{{{socialnetworks|}}}|,|x|x|<br />}} | |||
{{!}} | |||
{{#arraymap:{{{socialnetworks|}}}|,|x|x|<br />}} | |||
}} | }} | ||
|- | |- | ||
! {{#switch: {{{lang|}}} | fr = Statut | nl = Staat | Status }} | |||
| {{#ifeq: {{{active|}}} | true | | |||
| {{#ifeq: {{{active| | {{#switch: {{{lang|}}} | fr = Actif | nl = Actief | Active }} | | ||
{{#switch: {{{lang|}}} | fr = Inactif | nl = Inactief | Inactive }} | |||
}} | |||
|}{{#ifeq: {{{nocat|}}} | true | | {{#ifeq: {{{active|}}} | true | [[Category:Active_Crews]] | [[Category:Inactive_Crew]] }} [[Category:Crew]] }}</includeonly><noinclude> | |||
|}{{# | |||
}}</includeonly><noinclude> | |||
{{CrewSidebar | {{CrewSidebar | ||
|lang = en | |lang = en | ||
|crewname = An awesome crew | |crewname = An awesome crew | ||
|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 | ||
| | | | ||
|-- | |-- | ||
| 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 ... |
Status | Active |
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 }}