Template:Project

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m
m (same as for event)
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><!--
{| align="right" cellpadding="4" cellspacing="0" style="width: 300px; margin: 0 0 1em 1em; border: 1px solid #999; border-right-width: 2px; border-bottom-width: 2px; background-color: #FF0000"
+
--> {| class="" cellpadding="2" cellspacing="0" <!--
| align="center" colspan="2" style="background-color: white; text-align: center;" |
+
--> style="float: right; width: 300px; margin: 0 0 1em 1em; border: 2px solid #AAAAAA; background-color: #FFFFFF"
{| width="100%"
+
|+ '''[[Form:Project|Add your Project]]'''
|- class="ext-header"
+
! style="padding: 7px; font-size: 1.5em; color: white; background: #000066" align="center" | [[Image:Crystal Project package graphics.png|left|40px]] {{PAGENAME}}
+
 
|-
 
|-
| style="padding: 10px 0px;" | {{#if: {{{logo|}}} | [[Image:{{{logo}}}|200px]] | [[Image:G8033.png|200px]] }}
+
! colspan="2" <!-- This is the header
 +
--> style="padding-top: 0.5em; color: white; background-color: #AAAAAA" <!--
 +
--> | [[Image:Crystal Project package graphics.png|link=|left|40px]] <span style="font-size: 150%;">{{#if:{{{what|}}}|{{{what}}}|{{PAGENAME}} }}</span>
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | What:
+
| colspan="2" style="padding: 7px;" | [[Has description::{{{intro|}}}]]
 
|-
 
|-
| [[ProjectName::{{{what|}}}]]
+
| colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[Image:{{#if: {{{logo|}}} |<!--then-->{{{logo}}}|<!--else-->G8033.png}}|200px|link=]]
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Intro:
+
| style="padding: 0 7px;"  | '''[[Template:Project#Meetings|Meetings]]''': || {{#ifeq: {{{status|}}} | running | [[Has Meetings::{{{meetings|}}}]] | none }}
 +
<!--
 +
How can we automate recurring meetings from the Has meetings property?
 
|-
 
|-
| [[intro::{{{intro|}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:Project#Recurring|Recurring]]''': || [[Is Recurring::{{{recurring|}}}]]
 +
-->
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Meetings:
+
| 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 -->
 
|-
 
|-
| {{#ifeq: {{{status|}}} | running | [[Weekday::{{{meetings|}}}]] | none }}
+
| style="padding: 0 7px;"  | '''[[Template:Project#Status|Status]]''': || [[Has Status::{{{status|}}}]]
 
|-
 
|-
! style="padding: 0 7px; background: #CCCCFF" | Who:
+
| 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>
 
|-
 
|-
| [[Attendees::{{{who|}}}]]
+
| 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; background: #CCCCFF" | Type of Project:
+
| colspan="2" style="padding: 0.5em; color: white; background-color: #AAAAAA" | <span style="font-size: 120%;">Tools</span>
 
|-
 
|-
| [[TypeOfProject::{{{type|}}}]]
+
| style="padding: 0 7px;" | '''[[Template:Project#QrCode|QrCode]]''': || {{#qrcode: scheme=http}}
|-
+
! style="padding: 0 7px; background: #CCCCFF" | Status:
+
|-
+
| [[ProjectStatus::{{{status|}}}]]
+
|-
+
! style="padding: 0 7px; background: #CCCCFF" | Contact:
+
|-
+
| {{#arraymap:{{{contact|}}}|,|x|[[Person::User:x|x]]}}
+
|-
+
! style="padding: 0 7px; background: #CCCCFF" | Members:
+
|-
+
| {{#show: {{PAGENAME}} | ?ProjectMember | format=list}}
+
 
|}
 
|}
|}
 
<!--More semantic info that doesn't fit above-->
 
<!--[[Person::{{{contact}}}| ]]-->
 
 
[[Category:Project]]
 
[[Category:Project]]
<!-- Semantic end-->
+
<!-- *** 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>
+
| what= <project name>
+
| type= <type of project, select from (security, hardware, software, charity, misc, art)>
+
| intro=A short introduction
+
| meetings=Fridays, 9pm
+
| status=running
+
| who=Everyone interested in learning how to solder
+
| contact = <comma-separated list of users>
+
}}
+
</pre>
+
 
+
You can add project members that will be displayed in the template box like so:
+
<pre>
+
[[ProjectMember::Someone]]
+
[[ProjectMember::SomeOneElse]]
+
</pre>
+
If you don't want them to appear elsewhere in the page, you need to add a pipe like this:
+
<pre>
+
[[ProjectMember::ThirdPerson| ]]
+
</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