Difference between revisions of "Template:CrewSidebar"
m |
m |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{| style=" | + | <includeonly>{| class="pirate-sidebar crew" |
− | + | | style="padding:0;" colspan=2 | | |
+ | {| style="width:100%" cellspacing=0 | ||
+ | ! class="title" | [[Has crew name::{{{crewname|{{PAGENAME}}}}}]] | ||
+ | | class="icon" | [[File:Toicon-icon-avocado-fold.svg|x24px|link=Category:Crew]] | ||
+ | |} | ||
|- | |- | ||
+ | {{#if: {{{image|}}} | | ||
+ | {{!}} colspan=2 {{!}} [[File:{{{image}}}|frameless|150px|center]] | ||
+ | {{!}}- }} | ||
{{#if: {{{venue|}}} | | {{#if: {{{venue|}}} | | ||
− | ! | + | ! {{int:sidebar-venue}} |
{{!}} {{#set: In venue={{{venue}}} }}{{{venue}}} | {{!}} {{#set: In venue={{{venue}}} }}{{{venue}}} | ||
{{!}}- }} | {{!}}- }} | ||
{{#if: {{{address|}}} | | {{#if: {{{address|}}} | | ||
− | ! | + | ! {{int:sidebar-anchor}} |
{{!}} [[Has address::{{{address}}}]] | {{!}} [[Has address::{{{address}}}]] | ||
{{!}}- }} | {{!}}- }} | ||
− | ! | + | ! {{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}}}]] | ? }} | ||
|- | |- | ||
− | ! | + | ! {{int:sidebar-province}} |
| {{#if: {{{province|}}} | [[In province::{{{province}}}]] | ? }} | | {{#if: {{{province|}}} | [[In province::{{{province}}}]] | ? }} | ||
|- | |- | ||
− | ! | + | ! {{int:sidebar-region}} |
| {{#if: {{{region|}}} | [[In region::{{{region}}}]] | ? }} | | {{#if: {{{region|}}} | [[In region::{{{region}}}]] | ? }} | ||
|- | |- | ||
− | ! | + | ! {{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|}}} | | ||
− | ! | + | ! {{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|}}} | | ||
− | ! | + | ! {{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|}}} | | ||
− | ! | + | ! {{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|}}} | | ||
− | ! | + | ! {{int:sidebar-social-networks}} |
− | {{!}}{{#arraymap:{{{ | + | {{!}} {{#arraymap:{{{socialnetworks}}}|,|x|x|<br />}} |
+ | {{!}}- }} | ||
+ | {{#if: {{{contact|}}} | | ||
+ | ! {{int:sidebar-contact}} | ||
+ | {{!}} {{#arraymap:{{{contact|}}}|,|x|x|<br />}} | ||
{{!}}- }} | {{!}}- }} | ||
− | ! | + | ! {{int:sidebar-status}} |
− | | {{# | + | | {{#if: {{{status|}}} |
− | | | + | | [[Has status::{{lc:{{{status}}}}}|{{int:sidebar-status-{{lc:{{{status}}}}}}}]] |
− | + | | ? | |
}} | }} | ||
{{#if: {{{province|}}}{{{city|}}} | {{#if: {{{province|}}}{{{city|}}} | ||
Line 56: | Line 67: | ||
| | | | ||
| {{!}}- | | {{!}}- | ||
− | ! colspan=2 {{!}} {{#display_map: {{#var: coords}} | height=225px | zoom=11}} [[Has coordinates::{{#var:coords}}| ]] | + | {{!}} colspan=2 {{!}} {{#display_map: {{#var: coords}} | height=225px | zoom=11 | enablefullscreen = yes | scrollwheelzoom = no }} [[Has coordinates::{{#var:coords}}| ]] |
}} | }} | ||
}} | }} | ||
Line 70: | Line 81: | ||
{{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 81: | Line 93: | ||
|treasurekeeper = Coco the parrot | |treasurekeeper = Coco the parrot | ||
|socialnetworks= Link Diaspora, Facebook, Twitter, ... | |socialnetworks= Link Diaspora, Facebook, Twitter, ... | ||
+ | |contact = coco [at] pirateparty (point) be | ||
|status = active | |status = active | ||
|nocat = true | |nocat = true | ||
Line 94: | Line 107: | ||
{{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 105: | Line 119: | ||
|treasurekeeper = Coco the parrot | |treasurekeeper = Coco the parrot | ||
|socialnetworks= Link Diaspora, Facebook, Twitter, ... | |socialnetworks= Link Diaspora, Facebook, Twitter, ... | ||
+ | |contact = coco [at] pirateparty (point) be | ||
|status = active | |status = active | ||
}}</nowiki> | }}</nowiki> | ||
Line 120: | Line 135: | ||
: Le nom de l'équipage. | : Le nom de l'équipage. | ||
: Par défaut, le '''nom de la page''' est utilisé. | : Par défaut, le '''nom de la page''' est utilisé. | ||
+ | </translate> | ||
+ | ; image | ||
+ | <translate> | ||
+ | <!--T:19--> | ||
+ | : Une image qui représente l'équipage (e.g. un logo) | ||
</translate> | </translate> | ||
; venue* | ; venue* |
Latest revision as of 11:58, 31 January 2018
Utilisation
Vous pouvez copier/coller ce code pour commencer à utiliser ce modèle:
{{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, ... |contact = coco [at] pirateparty (point) be |status = active }}
Paramètres
Les champs marqués d'une astérisque (*) sont optionnels.
- crewname
- Le nom de l'équipage.
- Par défaut, le nom de la page est utilisé.
- image
- Une image qui représente l'équipage (e.g. un logo)
- venue*
- 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).