Difference between revisions of "Template:ProjectSidebar"

From Pirate Party Belgium
Jump to: navigation, search
(arraymap function to replace "," with new lines in the "contact" argument)
(Usage)
 
(28 intermediate revisions by one other user not shown)
Line 1: Line 1:
{| 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;"
+
<includeonly>{| class="pirate-sidebar project"
! colspan=2 bgcolor=#692D89 |<center><font color="white">'''{{{projectname|Our awesome project}}}'''</font></center>
+
| colspan=2 style="padding:0;" |
|-
+
{| style="width:100%;" cellspacing=0
!  colspan=2 bgcolor=gainsboro |<center>'''Initiated by'''</center>
+
! class="title" | {{#if: {{{title|}}} | [[Has title::{{{title}}}]] }}
|-
+
| class="icon" | [[File:Toicon-icon-avocado-build.svg|x24px|link=Category:Project]]
|{{{initiator|An awesome Pirate}}}
+
|}
|-
 
| colspan=2 bgcolor=gainsboro |<div style="text-align: center;">'''Collaborator(s)'''</div>
 
|-
 
| {{#arraymap: {{{collaborators|An awesome team of Pirates}}}|,|x|x|<br />}}
 
|-
 
!  colspan=2 bgcolor=gainsboro |<center>'''Summary'''</center>
 
|-  
 
| {{{summary|This is an awesome project to do great things in order to live in a better world}}}
 
|-
 
!  colspan=2 bgcolor=gainsboro |<center>'''Goals'''</center>
 
|-
 
| {{{goals|To take on the world !}}}
 
|-
 
!  colspan=2 bgcolor=gainsboro |<center>'''Contact'''</center>
 
 
|-  
 
|-  
| {{#arraymap: {{{contact|Some tentacles}}}|,|x|x|<br />}}
+
{{#if: {{{image|}}} |
|-
+
{{!}} colspan=2 {{!}} [[File:{{{image}}}|frameless|150px|center]]
| colspan=2 bgcolor=gainsboro |<center>'''Status'''</center>
+
{{!}}- }}
 +
{{#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 />}}
 +
{{!}}- }}
 +
! {{int:sidebar-start-date}}
 +
| {{#if: {{{start|}}}
 +
  | [[Has start date::{{#time:Y/m/d|{{{start}}} }}|{{#time: D j F Y|{{{start}}}|{{int:language-code}} }}]]
 +
  | ?
 +
  }}
 
|-  
 
|-  
| {{#ifeq: {{{active|}}} | true | Active | Inactive }}
+
{{#if: {{{end|}}} |
|}
+
! {{int:sidebar-end-date}}
<includeonly>{{#ifeq: {{{active|}}} | true |
+
{{!}} [[Has end date::{{#time:Y/m/d|{{{end}}} }}|{{#time: D j F Y|{{{end}}}|{{int:language-code}} }}]]
[[Category:Active_Projects]]
+
{{!}}- }}
}} [[Category:Project]]</includeonly><noinclude>
+
{{#if: {{{contact|}}} |
 
+
! {{int:sidebar-contact}}
=== Usage ===
+
{{!}} {{#arraymap:{{{contact}}}|,|x|x|<br />}}
  <nowiki>
+
{{!}}- }}
{{ProjectSidebar
+
! {{int:sidebar-status}}
|projectname = Our awesome project
+
| {{#if: {{{status|}}}
|initiator = An awesome Pirate
+
  | [[Has status::{{lc:{{{status}}}}}|{{int:sidebar-status-{{lc:{{{status}}}}}}}]]
|collaborators = An awesom team
+
  | ?
|summary = This an awesom project to do great things.
+
  }}
|goals = To take on the world !
+
{{#if: {{{discussion|}}} |
|contact = Some tentacles
+
{{!}}-
|active = true
+
{{!}} colspan=2 style="text-align: center;" {{!}} [[File:Toicon-icon-avocado-discuss.svg|x24px|link={{{discussion}}}|Discussion]]
 +
}}
 +
|}{{#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}}
 +
  }}
 +
}}</includeonly><noinclude>{{ProjectSidebar
 +
| title = Sidebar Project
 +
| image = Logo-heart 135px.png
 +
| workgroup = WikiSquad
 +
| topics = Pirate Party
 +
| start = 2017/03/01
 +
| end = tomorrow
 +
| contact = wiki +at+ pirateparty [point] be
 +
| discussion = https://loomio.org
 +
| status = doing
 +
| nocat = true
 +
}}
 +
== Usage ==
 +
  <nowiki>{{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 -->
 
}}</nowiki></noinclude>
 
}}</nowiki></noinclude>

Latest revision as of 14: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 19 April 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 -->
}}