Difference between revisions of "Template:ProjectSidebar"

From Pirate Party Belgium
Jump to: navigation, search
(new project sidebar)
m (discuss icon)
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| style="width: 300px; 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::{{{title|Pirate Project}}}]]
+
| colspan=2 style="padding:0;" |
 +
{| style="width:100%;" cellspacing=0
 +
! class="title" | {{#if: {{{title|}}} | [[Has title::{{{title}}}]] }}
 +
| class="icon" | [[File:Toicon-icon-avocado-build.svg|x24px|link=Category:Project]]
 +
|}
 
|-  
 
|-  
{{#if: {{{workgroup|}}}  
+
{{#if: {{{image|}}} |
|  
+
{{!}} colspan=2 {{!}} [[File:{{{image}}}|frameless|150px|center]]
! style="vertical-align: top;" {{!}} {{int:sidebar-workgroup}}
+
{{!}}- }}
{{!}} {{#arraymap:{{{workgroup}}}|,|x|[[Organized by::x]]|<br />}}
+
{{#if: {{{workgroup|}}} |
 +
! {{int:sidebar-workgroup}}
 +
{{!}} {{#arraymap:{{{workgroup}}}|,|x|[[Organized by::x|{{ShowTitle|x}}]]|<br />}}
 +
{{!}}- }}
 +
{{#if: {{{topics|}}} |
 +
! {{int:sidebar-topics}}
 +
{{!}} {{#arraymap:{{{topics}}}|,|x|[[In topic::x|{{ShowTitle|x}}]]|<br />}}
 
{{!}}- }}
 
{{!}}- }}
! style="vertical-align: top;" | {{int:sidebar-start-date}}
+
! {{int:sidebar-start-date}}
| {{#if: {{{start|}}} | [[Has start date::{{#time:Y/m/d|{{{start}}} }}|{{#time: D j F Y|{{{start}}}|{{int:language-code}} }}]] | ? }}
+
| {{#if: {{{start|}}}  
 +
  | [[Has start date::{{#time:Y/m/d|{{{start}}} }}|{{#time: D j F Y|{{{start}}}|{{int:language-code}} }}]]  
 +
  | ?  
 +
  }}
 
|-  
 
|-  
{{#if: {{{end|}}}
+
{{#if: {{{end|}}} |
| ! style="vertical-align: top;" {{!}} {{int:sidebar-end-date}}
+
! {{int:sidebar-end-date}}
 
{{!}} [[Has end date::{{#time:Y/m/d|{{{end}}} }}|{{#time: D j F Y|{{{end}}}|{{int:language-code}} }}]]  
 
{{!}} [[Has end date::{{#time:Y/m/d|{{{end}}} }}|{{#time: D j F Y|{{{end}}}|{{int:language-code}} }}]]  
 
{{!}}- }}
 
{{!}}- }}
! style="vertical-align: top;" | {{int:sidebar-contact}}  
+
{{#if: {{{contact|}}} |
| {{#if: {{{contact|}}} | {{#arraymap: {{{contact}}}|,|x|x|<br />}} | ? }}
+
! {{int:sidebar-contact}}
|-
+
{{!}} {{#arraymap:{{{contact}}}|,|x|x|<br />}}
! style="vertical-align: top;" | {{int:sidebar-status}}  
+
{{!}}- }}
 +
! {{int:sidebar-status}}  
 
| {{#if: {{{status|}}}  
 
| {{#if: {{{status|}}}  
 
   | [[Has status::{{lc:{{{status}}}}}|{{int:sidebar-status-{{lc:{{{status}}}}}}}]]
 
   | [[Has status::{{lc:{{{status}}}}}|{{int:sidebar-status-{{lc:{{{status}}}}}}}]]
 
   | ?
 
   | ?
 
   }}
 
   }}
|} {{#if: {{{nocat|}}}  
+
{{#if: {{{discussion|}}} |
 +
{{!}}-
 +
{{!}} colspan=2 style="text-align: center;" {{!}} [[File:Toicon-icon-avocado-discuss.svg|x24px|link={{{discussion}}}|Discussion]]
 +
}}
 +
|}{{#if: {{{nocat|}}}  
 
|  
 
|  
| {{#switch: {{{status|}}}  
+
| {{#switch: {{SUBPAGENAME}}
  | doing = [[Category:Active_Projects]]  
+
  | fr= | nl= | en=
  | done = [[Category:Archived Project]]  
+
  | {{#switch: {{{status|}}}  
  | [[Category:Inactive Project]]  
+
    | doing = [[Category:Active_Projects]]  
  }} [[Category:Project]]
+
    | active = [[Category:Active_Projects]]
}}</includeonly><noinclude>{{ProjectSidebar/sandbox
+
    | done = [[Category:Archived Project]]  
| title = New ProjectSidebar
+
    | [[Category:Inactive Project]]  
 +
    }} [[Category:Project]] {{#default_form:Project}}
 +
  }}
 +
}}</includeonly><noinclude>{{ProjectSidebar
 +
| title = Sidebar Project
 +
| image = Logo-heart 135px.png
 
| workgroup = WikiSquad
 
| workgroup = WikiSquad
 +
| topics = Pirate Party
 
| start = 2017/03/01
 
| start = 2017/03/01
 
| end = tomorrow
 
| end = tomorrow
 
| contact = wiki +at+ pirateparty [point] be
 
| contact = wiki +at+ pirateparty [point] be
 +
| discussion = https://loomio.org
 
| status = doing
 
| status = doing
 
| nocat = true
 
| nocat = true
 
}}
 
}}
 
== Usage ==
 
== Usage ==
  <nowiki>{{ProjectSidebar/sandbox
+
  <nowiki>{{ProjectSidebar
| title = New ProjectSidebar
+
| title = Sidebar Project
 +
| image = Logo-heart 135px.png
 
| workgroup = WikiSquad <!-- optional -->
 
| workgroup = WikiSquad <!-- optional -->
 +
| topics = Pirate Party <!-- optional -->
 
| start = 2017/03/01
 
| start = 2017/03/01
 
| end = tomorrow <!-- optional -->
 
| end = tomorrow <!-- optional -->
 
| contact = wiki +at+ pirateparty [point] be
 
| contact = wiki +at+ pirateparty [point] be
 +
| discussion = https://loomio.org
 
| status = doing <!-- doing / done / abandoned -->
 
| status = doing <!-- doing / done / abandoned -->
 
}}</nowiki></noinclude>
 
}}</nowiki></noinclude>

Revision as of 19:11, 29 October 2017

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 29 March 2024
Contact wiki +at+ pirateparty [point] be
Status In progress
Discussion

Usage

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