Template:Project

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m
m (same as for event)
 
(23 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
--> | [[Image:Crystal Project package graphics.png|link=|left|40px]] <span style="font-size: 150%;">{{#if:{{{what|}}}|{{{what}}}|{{PAGENAME}} }}</span>
 
--> | [[Image:Crystal Project package graphics.png|link=|left|40px]] <span style="font-size: 150%;">{{#if:{{{what|}}}|{{{what}}}|{{PAGENAME}} }}</span>
 
|-
 
|-
| colspan="2" style="padding: 7px;" | [[Description::{{{intro|}}}]]
+
| colspan="2" style="padding: 7px;" | [[Has description::{{{intro|}}}]]
 
|-
 
|-
 
| colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[Image:{{#if: {{{logo|}}} |<!--then-->{{{logo}}}|<!--else-->G8033.png}}|200px|link=]]
 
| colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[Image:{{#if: {{{logo|}}} |<!--then-->{{{logo}}}|<!--else-->G8033.png}}|200px|link=]]
Line 14: Line 14:
 
| style="padding: 0 7px;"  | '''[[Template:Project#Meetings|Meetings]]''': || {{#ifeq: {{{status|}}} | running | [[Has Meetings::{{{meetings|}}}]] | none }}
 
| style="padding: 0 7px;"  | '''[[Template:Project#Meetings|Meetings]]''': || {{#ifeq: {{{status|}}} | running | [[Has Meetings::{{{meetings|}}}]] | none }}
 
<!--
 
<!--
How can we automate that?
+
How can we automate recurring meetings from the Has meetings property?
 
|-
 
|-
 
| style="padding: 0 7px;"  | '''[[Template:Project#Recurring|Recurring]]''': || [[Is Recurring::{{{recurring|}}}]]
 
| style="padding: 0 7px;"  | '''[[Template:Project#Recurring|Recurring]]''': || [[Is Recurring::{{{recurring|}}}]]
Line 20: Line 20:
 
|-
 
|-
 
| style="padding: 0 7px;"  | '''[[Template:Project#Type|Type]]''': || [[Has Type::{{{type|}}}]]
 
| style="padding: 0 7px;"  | '''[[Template:Project#Type|Type]]''': || [[Has Type::{{{type|}}}]]
 +
<!-- display tracker and repository for all types of projects, if they're set -->
 +
<!-- http://www.mediawiki.org/wiki/Help:Parser_functions_in_templates -->
 +
{{#if: {{{repository|}}} |
 +
  {{!-}}
 +
  {{!}} style="padding: 0 7px;"  {{!}} '''[[Template:Project#Repository|Repository]]''': {{!!}} [[Has repository::{{{repository|}}}]]
 +
}}
 +
{{#if: {{{tracker|}}} |
 +
  {{!-}}
 +
  {{!}} style="padding: 0 7px;"  {{!}} '''[[Template:Project#Tracker|Tracker]]''': {{!!}} [[Has tracker::{{{tracker|}}}]]
 +
}}
 +
<!-- /repository -->
 
|-
 
|-
 
| style="padding: 0 7px;"  | '''[[Template:Project#Status|Status]]''': || [[Has Status::{{{status|}}}]]
 
| style="padding: 0 7px;"  | '''[[Template:Project#Status|Status]]''': || [[Has Status::{{{status|}}}]]
 
|-
 
|-
| style="padding: 0 7px;" | '''[[Template:Project#Members|Members]]''': || | {{#arraymap:{{{members|}}}|,|x|[[Has Members::User:x|x]]|, }}
+
| style="padding: 0 7px;" | '''[[Template:Project#Members|Members]]''': || | {{#arraymap:{{{members|}}}|,|x|[[Has Member::User:x|x]]}}<br/><span style="font-weight:bold;"><!--
 +
-->{{#ifanon: |
 +
{{#autoedit:form=Project
 +
|target={{FULLPAGENAME}}
 +
|link text=Add me!
 +
|query string=Project[members]={{#arraymap:
 +
{{#ask:[[{{FULLPAGENAME}}]]
 +
|?Has Member
 +
|format=list
 +
|headers=hide
 +
|link=none
 +
}}
 +
|,|x|{{#sub:x|5|0}}
 +
}}, {{#username:}} | reload}}
 +
}}</span>
 
|-
 
|-
| style="padding: 0 7px;" | '''[[Template:Project#Contact Person|Contact Person]]''': || {{#arraymap:{{{contact|}}}|,|x|[[Has Contact::User:x|x]] ([[Special:EmailUser/x|mail]]) |, }}
+
| style="padding: 0 7px;" | '''[[Template:Project#Contact Person|Contact Person]]''': || {{#arraymap:{{{contact|}}}|,|x|[[Has Contact::User:x|x]] ([[Special:EmailUser/x|mail]])}}
 +
|-
 +
| colspan="2" style="padding: 0.5em; color: white; background-color: #AAAAAA" | <span style="font-size: 120%;">Tools</span>
 +
|-
 +
| style="padding: 0 7px;"  | '''[[Template:Project#QrCode|QrCode]]''': || {{#qrcode: scheme=http}}
 
|}
 
|}
 
[[Category:Project]]
 
[[Category:Project]]
 +
<!-- *** Type of project *** -->
 +
{{#if: {{{type|}}} |  [[Category:{{{type}}}]] }}
 +
<!-- *** Set variables that are not displayed on the page *** -->
 +
{{#set: Has picture=File:{{{logo|}}} }}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
 
==Template for {{PAGENAME}}==
 
==Template for {{PAGENAME}}==
Please consider using the [[Form:Project]] page to add your project.<br/>
+
Please use the [[Form:Project]] page to add your project.<br/>
 
+
If you don't want to, copy and paste this code to your project page, then edit it to suit your needs<br/>
+
<pre>
+
{{Project
+
| logo = <filename>
+
| type= <type of project, select from (security, hardware, software, charity, misc, art)>
+
| intro=A short introduction
+
| meetings=Fridays, 9pm
+
| status= <running, planning, concluded>
+
| contact = <comma-separated list of users>
+
| members = <comma-separated list of users>
+
}}
+
</pre>
+
 
</noinclude>
 
</noinclude>

Latest revision as of 20:13, 24 December 2011


[edit] Template for Project

Please use the Form:Project page to add your project.

Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools