Difference between revisions of "Template:CrewSidebar"
m |
(Dutch translations + Template:Coordinates) |
||
Line 3: | Line 3: | ||
|- | |- | ||
{{#if: {{{place|}}} | | {{#if: {{{place|}}} | | ||
− | ! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} | fr = Lieu | nl = Locatie | Venue }} | + | ! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} |
+ | | fr = Lieu | ||
+ | | nl = Locatie | ||
+ | | Venue | ||
+ | }} | ||
{{!}} {{#set: In venue={{{place}}} }}{{{place}}} | {{!}} {{#set: In venue={{{place}}} }}{{{place}}} | ||
{{!}}- }} | {{!}}- }} | ||
{{#if: {{{address|}}} | | {{#if: {{{address|}}} | | ||
− | ! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} | fr = | + | ! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} |
+ | | fr = Ancrage | ||
+ | | nl = Ankerpunt | ||
+ | | Anchoring | ||
+ | }} | ||
{{!}} [[Has address::{{{address}}}]] | {{!}} [[Has address::{{{address}}}]] | ||
{{!}}- }} | {{!}}- }} | ||
− | ! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Ville | nl = Stad | City }} | + | ! style="vertical-align: top;" | {{#switch: {{{lang|}}} |
− | | {{#if: {{{postalcode|}}} | [[In postal code::{{{postalcode}}}]] }} {{#if: {{{city|}}} | [[In city::{{{city}}}]] | ? }} | + | | fr = Ville |
+ | | nl = Stad | ||
+ | | City | ||
+ | }} | ||
+ | | {{#if: {{{postalcode|}}} | ||
+ | | [[In postal code::{{{postalcode}}}]] | ||
+ | }} {{#if: {{{city|}}} | [[In city::{{{city}}}]] | ? }} | ||
|- | |- | ||
− | ! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Province | nl = Provincie | Province }} | + | ! style="vertical-align: top;" | {{#switch: {{{lang|}}} |
+ | | fr = Province | ||
+ | | nl = Provincie | ||
+ | | Province | ||
+ | }} | ||
| {{#if: {{{province|}}} | [[In province::{{{province}}}]] | ? }} | | {{#if: {{{province|}}} | [[In province::{{{province}}}]] | ? }} | ||
|- | |- | ||
− | ! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Région | nl = Streek | Region }} | + | ! style="vertical-align: top;" | {{#switch: {{{lang|}}} |
+ | | fr = Région | ||
+ | | nl = Streek | ||
+ | | Region | ||
+ | }} | ||
| {{#if: {{{region|}}} | [[In region::{{{region}}}]] | ? }} | | {{#if: {{{region|}}} | [[In region::{{{region}}}]] | ? }} | ||
|- | |- | ||
− | ! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Membres | nl = Leden | Members }} | + | ! style="vertical-align: top;" | {{#switch: {{{lang|}}} |
+ | | fr = Membres | ||
+ | | nl = Leden | ||
+ | | 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;" {{!}} {{#switch: {{{lang|}}} | fr = Capitaine | nl = Kapitein | Captain }} | + | ! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} |
+ | | fr = Capitaine | ||
+ | | nl = Kapitein | ||
+ | | 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;" {{!}} {{#switch: {{{lang|}}} | fr = Navigateur | nl = Navigator | Navigator }} | + | ! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} |
+ | | fr = Navigateur | ||
+ | | nl = Navigator | ||
+ | | 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;" {{!}} {{#switch: {{{lang|}}} | fr = Trésorier | nl = Penningmeester | Treasurer }} | + | ! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} |
+ | | fr = Trésorier | ||
+ | | nl = Penningmeester | ||
+ | | 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;" {{!}} {{#switch: {{{lang|}}} | fr = Réseaux sociaux | nl = Sociale Netwerken | Social Networks }} | + | ! style="vertical-align: top;" {{!}} {{#switch: {{{lang|}}} |
+ | | fr = Réseaux sociaux | ||
+ | | nl = Sociale Netwerken | ||
+ | | Social Networks | ||
+ | }} | ||
{{!}}{{#arraymap:{{{socialnetworks}}}|,|x|x|<br />}} | {{!}}{{#arraymap:{{{socialnetworks}}}|,|x|x|<br />}} | ||
{{!}}- }} | {{!}}- }} | ||
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Statut | nl = Status | Status }} | ! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Statut | nl = Status | Status }} | ||
| {{#ifeq: {{#var: active|}} | true | | {{#ifeq: {{#var: active|}} | true | ||
− | | {{#switch: {{{lang|}}} | fr = Actif | nl = Actief | Active }} [[Has status::Active| ]] | + | | {{#switch: {{{lang|}}} |
− | | {{#switch: {{{lang|}}} | fr = Inactif | nl = Inactief | Inactive }} [[Has status::Inactive| ]] | + | | fr = Actif |
− | }} | + | | nl = Actief |
+ | | Active | ||
+ | }} [[Has status::Active| ]] | ||
+ | | {{#switch: {{{lang|}}} | ||
+ | | fr = Inactif | ||
+ | | nl = Inactief | ||
+ | | Inactive | ||
+ | }} [[Has status::Inactive| ]] | ||
+ | }} | ||
{{#if: {{{province|}}}{{{city|}}} | {{#if: {{{province|}}}{{{city|}}} | ||
− | | {{#vardefine: coords | {{ | + | | {{#vardefine: coords |
− | + | | {{Coordinates | |
+ | | venue={{{place|}}} | ||
+ | | address={{{address|}}} | ||
+ | | city={{{city|}}} | ||
+ | | province={{{province|}}} | ||
+ | }} | ||
+ | }}{{#if: {{#var: coords}} | ||
+ | | | ||
| {{!}}- | | {{!}}- | ||
! colspan=2 {{!}} {{#display_map: {{#var: coords}} | height=225px | zoom=11}} [[Has coordinates::{{#var:coords}}| ]] | ! colspan=2 {{!}} {{#display_map: {{#var: coords}} | height=225px | zoom=11}} [[Has coordinates::{{#var:coords}}| ]] | ||
− | }} }} | + | }} |
− | |}{{#ifeq: {{{nocat|}}} | true | | {{#ifeq: {{#var: active|}} | true | [[Category:Active_Crews]] | [[Category:Inactive_Crew]] }} [[Category:Crew]] }} [[In language::{{{lang|en}}}| ]] [[Has workgroup type::Crew| ]]</includeonly><noinclude> | + | }} |
+ | |}{{#ifeq: {{{nocat|}}} | true | ||
+ | | | ||
+ | | {{#ifeq: {{#var: active|}} | true | ||
+ | | [[Category:Active_Crews]] | ||
+ | | [[Category:Inactive_Crew]] | ||
+ | }} [[Category:Crew]] | ||
+ | }} [[In language::{{{lang|en}}}| ]] [[Has workgroup type::Crew| ]]</includeonly><noinclude> | ||
{{CrewSidebar | {{CrewSidebar | ||
|lang = en | |lang = en |
Revision as of 19:09, 8 February 2017
Usage
You can copy/paste this code to start using the template:
{{CrewSidebar |lang = en |crewname = An awesome crew |place = 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, ... |active = true }}
Parameters
Les champs marqués d'une astérisque (*) sont optionnels.
- lang
- La langue du modèle.
- Trois valeurs sont possibles : fr, nl et en (valeur par défaut).
- crewname
- Le nom de l'équipage.
- Par défaut, le nom de la page est utilisé.
- place*
- Le nom du lieu où se réunit régulièrement l'équipage (optionnel)
- address*
- L'adresse où se réunit régulièrement l'équipage (optionnel)
- postalcode
- Le code postal de la ville où se trouve l'équipage.
- city
- La ville où se trouve l'équipage.
- province
- La province dans laquelle se trouve l'équipage.
- region
- La région dans laquelle se trouve l'équipage.
- Trois valeurs sont possibles : Brussels, Vlaanderen et Wallonie.
- members
- Liste des membres de l'équipage, séparés par des virgules.
- captain*
- Capitaine de l'équipage (optionnel).
- navigator*
- Navigateur de l'équipage (optionnel).
- treasurekeeper*
- Trésorier de l'équipage (optionnel).
- socialnetworks*
- Réseaux sociaux utilisés par l'équipage, séparés par des virgules (optionnel)
- status
- Statut de l'équipage
- Deux valeurs possibles : active ou inactive (valeur par défaut).
- nocat
- Désactive la génération automatique des catégories.
- Deux valeurs possibles : true ou false (valeur par défaut).
De velden gemarkeerd met een asterix (*) zijn optioneel.
- lang
- De taal van het model.
- Drie waarden zijn mogelijk : fr, nl en en (defaultwaarde).
- crewname
- De naam van de crew.
- Standaard wordt de naam van de pagina gebruikt.
- place*
- te vertalen
- address*
- te vertalen
- postalcode
- De postcode van de plaats waar de crew zich bevindt.
- city
- De stad waar de crew zich bevindt.
- province
- De provincie waar de crew zich bevindt.
- region
- De regio waar de crew zich bevindt .
- Drie waarden zijn mogelijk : Brussels,VlaanderenenWallonie.
- members
- Lijst van crewleden, gescheiden door komma's.
- captain*
- Kapitein van de crew (optioneel).
- navigator*
- Navigator van de crew (optioneel).
- treasurekeeper*
- Schatbewaarder van de crew (optioneel).
- socialnetworks*
- Sociale netwerken gebruikt door de crew, gescheiden met komma's (optioneel).
- status
- Statuut van de crew
- Twee waarden zijn mogelijk : active of inactive (standaardwaarde).
- nocat
- Desactiveert de automatische generatie van de categorieên.
- Twee waarden mogelijk : true of false (standaardwaarde).