Template:ProjectSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(properties in language and has member)
 
(17 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#set: In language={{{lang|en}}} }}{{#vardefine:NA|?}}{| style="width: 275px; 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 project"
! style="text-align: center; background-color: #692D89; color:white;padding:0.3em; font-size:medium;" colspan="2" |[[Has title::{{{projectname|Pirate Project}}}]]
| colspan=2 style="padding:0;" |
|-
{| style="width:100%;" cellspacing=0
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Lancé par | Initiated by }}
! class="title" | {{#if: {{{title|}}} | [[Has title::{{{title}}}]] }}
| {{{initiator|{{#var:NA}}}}}
| class="icon" | [[File:Toicon-icon-avocado-build.svg|x24px|link=Category:Project]]
|}
|-  
|-  
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Collaborateur(s) | Collaborator(s) }}
{{#if: {{{image|}}} |
| {{#arraymap: {{{collaborators|{{#var:NA}}}}}|,|x|{{#set: Has member=x }}x|<br />}}
{{!}} colspan=2 {{!}} [[File:{{{image}}}|frameless|150px|center]]
|-  
{{!}}- }}
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Résumé | Summary }}
{{#if: {{{workgroup|}}} |  
| {{{summary|{{#var:NA}}}}}
! {{int:sidebar-workgroup}}
|-
{{!}} {{#arraymap:{{{workgroup}}}|,|x|[[Organized by::x|{{ShowTitle|x}}]]|<br />}}
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Objectifs | Goals }}  
{{!}}- }}
| {{{goals|{{#var:NA}}}}}
{{#if: {{{topics|}}} |  
! {{int:sidebar-topics}}
{{!}} {{#arraymap:{{{topics}}}|,|x|[[In topic::x|{{ShowTitle|x}}]]|<br />}}
{{!}}- }}
! {{int:sidebar-start-date}}
| {{#if: {{{start|}}}  
  | [[Has start date::{{#time:Y/m/d|{{{start}}} }}|{{#time: D j F Y|{{{start}}}|{{int:language-code}} }}]]
  | ?
  }}
|-  
|-  
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | Contact }}  
{{#if: {{{end|}}} |  
| {{#arraymap: {{{contact|{{#var:NA}}}}}|,|x|x|<br />}}
! {{int:sidebar-end-date}}
|-
{{!}} [[Has end date::{{#time:Y/m/d|{{{end}}} }}|{{#time: D j F Y|{{{end}}}|{{int:language-code}} }}]]
! style="vertical-align: top;" | {{#switch: {{{lang|}}} | fr = Statut | nl = Staat | Status }}
{{!}}- }}
| {{#ifeq: {{{active|}}} | true |
{{#if: {{{contact|}}} |
  {{#switch: {{{lang|}}} | fr = Actif | nl = Actief | Active }} {{#set: Has status=Active }} |  
! {{int:sidebar-contact}}
  {{#ifeq: {{{archived|}}} | true |
{{!}} {{#arraymap:{{{contact}}}|,|x|x|<br />}}
    {{#switch: {{{lang|}}} | fr = Archivé | nl = Gearchiveerd | Archived }} {{#set: Has status=Archived }} |
{{!}}- }}
    {{#switch: {{{lang|}}} | fr = Inactif | nl = Inactief | Inactive }} {{#set: Has status=Inactive }}  
! {{int:sidebar-status}}  
| {{#if: {{{status|}}}  
  | [[Has status::{{lc:{{{status}}}}}|{{int:sidebar-status-{{lc:{{{status}}}}}}}]]
  | ?
   }}
   }}
{{#if: {{{discussion|}}} |
{{!}}-
{{!}} colspan=2 style="text-align: center;" {{!}} [[File:Toicon-icon-avocado-discuss.svg|x24px|link={{{discussion}}}|Discussion]]
}}
}}
|}
|}{{#if: {{{nocat|}}}  
{{#if: {{{nocat|}}} | |  
|
   {{#ifeq: {{{active|}}} | true | [[Category:Active_Projects]] |
| {{#switch: {{SUBPAGENAME}}
     {{#ifeq: {{{archived|}}} | true | [[Category:Archived Project]] |  
  | fr= | nl= | en=
      [[Category:Inactive Project]]  
   | {{#switch: {{{status|}}}  
     }}
    | doing = [[Category:Active_Projects]]
    | active = [[Category:Active_Projects]]
     | done = [[Category:Archived Project]]  
    | [[Category:Inactive Project]]  
     }} [[Category:Project]] {{#default_form:Project}}
   }}
   }}
  [[Category:Project]]
}}</includeonly><noinclude>{{ProjectSidebar
}}</includeonly><noinclude>
| title = Sidebar Project
{{ProjectSidebar
| image = Logo-heart 135px.png
|lang = en
| workgroup = WikiSquad
|projectname = Our awesome project
| topics = Pirate Party
|initiator = An awesome Pirate
| start = 2017/03/01
|collaborators = An awesome team
| end = tomorrow
|summary = This is an awesome project to do great things in order to live in a better world
| contact = wiki +at+ pirateparty [point] be
|goals = To take on the world !
| discussion = https://loomio.org
|contact = Some tentacles
| status = doing
|active = true
| nocat = true
|nocat = true
}}
}}
 
== Usage ==
=== Usage ===
  <nowiki>{{ProjectSidebar
  <nowiki>
| title = Sidebar Project
{{ProjectSidebar
| image = Logo-heart 135px.png
|lang = en
| workgroup = WikiSquad <!-- optional, should be an existing wiki-page -->
|projectname = Our awesome project
| topics = Pirate Party <!-- optional, should be an existing wiki-page -->
|initiator = An awesome Pirate
| start = 2017/03/01
|collaborators = An awesome team
| end = tomorrow <!-- optional -->
|summary = This is an awesome project to do great things in order to live in a better world
| contact = wiki +at+ pirateparty [point] be
|goals = To take on the world !
| discussion = https://loomio.org
|contact = Some tentacles
| status = doing <!-- doing / done / abandoned -->
|active = true
|archived = false
}}</nowiki></noinclude>
}}</nowiki></noinclude>

Latest revision as of 13:28, 29 March 2020

Sidebar Project Toicon-icon-avocado-build.svg
Logo-heart 135px.png
Workgroup WikiSquad
Topics Pirate Party
Start date Wed 1 March 2017
End date Fri 22 November 2024
Contact wiki +at+ pirateparty [point] be
Status In progress
Discussion

Usage

{{ProjectSidebar
| title = Sidebar Project
| image = Logo-heart 135px.png
| workgroup = WikiSquad <!-- optional, should be an existing wiki-page -->
| topics = Pirate Party <!-- optional, should be an existing wiki-page -->
| start = 2017/03/01
| end = tomorrow <!-- optional -->
| contact = wiki +at+ pirateparty [point] be
| discussion = https://loomio.org
| status = doing <!-- doing / done / abandoned -->
}}