Template:ProjectSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
m (use #vardefine)
 
(23 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:notassigned| {{#ifeq: {{{lang|}}} | fr | Non assigné | {{#ifeq: {{{lang|}}} | nl | | Not assigned }} }} }}
<includeonly>{| class="pirate-sidebar project"
{| class="toccolours vatop" cellpadding="1" cellspacing="1" style="float:right; clear:right; width:150px; padding:0px; margin:0px 0px 1em 1em; font-size:85%; text-align:center;"
| colspan=2 style="padding:0;" |
! colspan=2 bgcolor=#692D89 |<center><font color="white">'''{{{projectname|Pirate Project}}}'''</font></center>
{| style="width:100%;" cellspacing=0
|-
! class="title" | {{#if: {{{title|}}} | [[Has title::{{{title}}}]] }}
!  colspan=2 bgcolor=gainsboro |<center>'''{{#ifeq: {{{lang|}}} | fr | Initié par | {{#ifeq: {{{lang|}}} | nl | | Initiated by }} }}'''</center>
| class="icon" | [[File:Toicon-icon-avocado-build.svg|x24px|link=Category:Project]]
|-
|}
|{{{initiator| {{#var:notassigned}} }}}
|-  
|-  
| colspan=2 bgcolor=gainsboro |<div style="text-align: center;">'''{{#ifeq: {{{lang|}}} | fr | Collaborateur(s) | {{#ifeq: {{{lang|}}} | nl | | Collaborator(s) }} }}'''</div>
{{#if: {{{image|}}} |
|-
{{!}} colspan=2 {{!}} [[File:{{{image}}}|frameless|150px|center]]
| {{#arraymap: {{{collaborators| {{#ifeq: {{{lang|}}} | fr | Non assigné | {{#ifeq: {{{lang|}}} | nl | | Not assigned }} }} }}}|,|x|x|<br />}}
{{!}}- }}
|-  
{{#if: {{{workgroup|}}} |  
!  colspan=2 bgcolor=gainsboro |<center>'''{{#ifeq: {{{lang|}}} | fr | Résumé | {{#ifeq: {{{lang|}}} | nl | | Summary }} }}'''</center>
! {{int:sidebar-workgroup}}
|-  
{{!}} {{#arraymap:{{{workgroup}}}|,|x|[[Organized by::x|{{ShowTitle|x}}]]|<br />}}
| {{{summary|To be defined}}}
{{!}}- }}
|-
{{#if: {{{topics|}}} |  
!  colspan=2 bgcolor=gainsboro |<center>'''{{#ifeq: {{{lang|}}} | fr | Objectifs | {{#ifeq: {{{lang|}}} | nl | | Goals }} }}'''</center>
! {{int:sidebar-topics}}
|-
{{!}} {{#arraymap:{{{topics}}}|,|x|[[In topic::x|{{ShowTitle|x}}]]|<br />}}
| {{{goals|To be defined}}}
{{!}}- }}
! {{int:sidebar-start-date}}
| {{#if: {{{start|}}}  
  | [[Has start date::{{#time:Y/m/d|{{{start}}} }}|{{#time: D j F Y|{{{start}}}|{{int:language-code}} }}]]
  | ?
  }}
|-  
|-  
!  colspan=2 bgcolor=gainsboro |<center>'''Contact'''</center>
{{#if: {{{end|}}} |  
|-
! {{int:sidebar-end-date}}
| {{#arraymap: {{{contact|Not assigned}}}|,|x|x|<br />}}
{{!}} [[Has end date::{{#time:Y/m/d|{{{end}}} }}|{{#time: D j F Y|{{{end}}}|{{int:language-code}} }}]]
|-
{{!}}- }}
|  colspan=2 bgcolor=gainsboro |<center>'''{{#ifeq: {{{lang|}}} | fr | Statut | {{#ifeq: {{{lang|}}} | nl | | Status }} }}'''</center>
{{#if: {{{contact|}}} |
|-  
! {{int:sidebar-contact}}
| {{#ifeq: {{{active|}}} | true |  
{{!}} {{#arraymap:{{{contact}}}|,|x|x|<br />}}
    {{#ifeq: {{{lang|}}} | fr | Actif | {{#ifeq: {{{lang|}}} | nl | | Active }} }} |
{{!}}- }}
    {{#ifeq: {{{archived|}}} | true |
! {{int:sidebar-status}}  
      {{#ifeq: {{{lang|}}} | fr | Archivé | {{#ifeq: {{{lang|}}} | nl | | Archived }} }} |  
| {{#if: {{{status|}}}  
      {{#ifeq: {{{lang|}}} | fr | Inactif | {{#ifeq: {{{lang|}}} | nl | | Inactive }} }}
  | [[Has status::{{lc:{{{status}}}}}|{{int:sidebar-status-{{lc:{{{status}}}}}}}]]
    }}
  | ?
   }}
   }}
|}
{{#if: {{{discussion|}}} |  
{{#if: {{{nocat|}}} | |  
{{!}}-
  {{#ifeq: {{{active|}}} | true | [[Category:Active_Projects]] |  
{{!}} colspan=2 style="text-align: center;" {{!}} [[File:Toicon-icon-avocado-discuss.svg|x24px|link={{{discussion}}}|Discussion]]
    {{#ifeq: {{{archived|}}} | true | [[Category:Archived Project]] |  
}}
      [[Category:Inactive Project]]  
|}{{#if: {{{nocat|}}}  
     }}
|  
| {{#switch: {{SUBPAGENAME}}
  | fr= | nl= | en=
  | {{#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 awesom 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 awesom 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 Mon 25 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 -->
}}