Difference between revisions of "Template:Projects"

From Pirate Party Belgium
Jump to: navigation, search
(Created page with "{{#ask: Category:Project {{#if: {{{1|}}} | [[Organized by::{{#arraymap: {{{1}}}|,|x|x|{{!}}{{!}}}}]] }} {{#ifeq: {{{status|+}}} | + | Has status::+ | Has s...")
 
m (fixes for SMW 3.0)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ask: [[Category:Project]] {{#if: {{{1|}}}  
+
<includeonly>{{#ask: [[Category:Project]] {{#if: {{{1|}}}  
 
   | [[Organized by::{{#arraymap: {{{1}}}|,|x|x|{{!}}{{!}}}}]]  
 
   | [[Organized by::{{#arraymap: {{{1}}}|,|x|x|{{!}}{{!}}}}]]  
 
   }} {{#ifeq: {{{status|+}}} | +
 
   }} {{#ifeq: {{{status|+}}} | +
 
   | [[Has status::+]]
 
   | [[Has status::+]]
   | [[Has status::{{{status}}}]]
+
   | [[Has status::{{#arraymap: {{{status}}}|,|x|x|{{!}}{{!}}}}]]
 +
  }} OR [[Category:Project]] {{#if: {{{1|}}}
 +
  | [[In topic::{{#arraymap: {{{1}}}|,|x|x|{{!}}{{!}}}}{{#ask: [[Category:Topic]] [[Has parent::{{{1}}}]]
 +
    | link = none
 +
    | intro = {{!}}{{!}}
 +
    | sep = {{!}}{{!}}
 +
    }}]]
 +
  }} {{#ifeq: {{{status|+}}} | +
 +
  | [[Has status::+]]
 +
  | [[Has status::{{#arraymap: {{{status}}}|,|x|x|{{!}}{{!}}}}]]
 
   }}
 
   }}
| ?Has title
+
| ?=
| ?Has start date
+
| ?Has title=title
| ?Has end date
+
| {{#ifeq: {{{showstatus|true}}} | true | ?Has status=status }}
| ?Has status
+
| ?Has start date=start
| ?Organized by
+
| ?Has end date=end
| format = template
+
| ?Organized by=workgroup
 +
| format = tree
 +
| mainlabel = -
 +
| parent = Organized by
 
| link = none
 
| link = none
| introtemplate = {{#ifeq: {{{status|+}}} | +
+
| template = Project item
  | Table project status intro
 
  | Table project intro
 
  }}
 
| template = {{#ifeq: {{{status|+}}} | +
 
  | Table project status
 
  | Table project
 
  }}
 
| outrotemplate = Table outro
 
 
| sort = Has status, Has title
 
| sort = Has status, Has title
}}
+
| order = asc, asc
 +
}}</includeonly><noinclude>
 +
== Usage ==
 +
 
 +
<nowiki>{{Projects|An awesome workgroup|status=doing,done|showstatus=true}}</nowiki>
 +
 
 +
== Example ==
 +
 
 +
<nowiki>{{Projects|status=doing,active}}</nowiki>
 +
 
 +
{{Projects|status=doing,active}}</noinclude>

Latest revision as of 13:23, 5 March 2019

Usage

{{Projects|An awesome workgroup|status=doing,done|showstatus=true}}

Example

{{Projects|status=doing,active}}