Difference between revisions of "Template:Team"

From SHA2017
Jump to: navigation, search
Line 36: Line 36:
  
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
+
</noinclude><includeonly>{| style="width: 40em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
! style="text-align: center; background-color:#ccccff;" colspan="2" |[[Has TeamName::{{{Name|{{PAGENAME}}}}}]]
 
! style="text-align: center; background-color:#ccccff;" colspan="2" |[[Has TeamName::{{{Name|{{PAGENAME}}}}}]]
 
|-
 
|-
 
! Team Lead:
 
! Team Lead:
| [[Is TeamLead::{{{Lead|}}}]]
+
| [[Is TeamLead::User:{{{Lead|}}}|{{{Lead|}}}]]
 
|-
 
|-
 
! Does:
 
! Does:
Line 50: Line 50:
 
! Contact:
 
! Contact:
 
| [[E-Mail::{{{Contact|}}}]]
 
| [[E-Mail::{{{Contact|}}}]]
|-
+
{{#if: {{{IRC|}}}
! IRC:
+
|<tr>
| {{#set:IRC Channel={{{IRC|}}}}} [irc://irc.freenode.net/{{{IRC|}}} #{{{IRC|}}}]  
+
  <th>IRC:</th>
|-
+
  <td>{{#set:IRC Channel={{{IRC|}}}}} [irc://irc.freenode.net/{{{IRC|}}} #{{{IRC|}}}]</td>
! Deadlines:
+
</tr>
| <br>{{#arraymap:{{{Deadlines|}}}|;|x|* [[Team deadline::x]]|\n}}
+
}}
|-
+
{{#if: {{{Deadlines|}}}
! Needed resources:
+
|<tr>
| <br>{{#arraymap:{{{Resources|}}}|;|x|* [[Team needs resource::x]]|\n}}
+
  <th>Deadlines:</th>
|-
+
  <td><ul>{{#arraymap:{{{Deadlines|}}}|;|x|<li>[[Team deadline::x]]</li>|}}</ul></td>
! Comment:
+
</tr>
| [[Team comment::{{{Comment|}}}]]
+
}}
 +
{{#if: {{{Resources|}}}
 +
|<tr>
 +
  <th>Needed resources:</th>
 +
  <td><ul>{{#arraymap:{{{Resources|}}}|;|x|<li>[[Team needs resource::x]]</li>|}}</ul></td>
 +
</tr>
 +
}}
 +
{{#if: {{{Comment|}}}
 +
|<tr>
 +
  <th>Comment:</th>
 +
  <td>[[Team comment::{{{Comment|}}}]]</td>
 +
</tr>
 +
}}
 
|}
 
|}
 
</includeonly>
 
</includeonly>

Revision as of 14:07, 24 November 2015

This is the "TeamInfo" template. It should be called in the following format:

{{TeamInfo
|Name=
|Lead=
|Does=
|Does not=
|Contact=
|IRC=
|Deadlines=
|Resources=
|Comment=
}}

Parameters:

  • Name
    • The name of the team(defaults to the name of the page)
  • Lead
    • The team lead (must be in form of a user name, like "User:Dave_o")
  • Does
    • A short description of what the team does
  • Does not
    • A short description of what the team doesn't do
  • Contact
    • The mailing list of the team (like "orga-av@lists.sha2017.org")
  • IRC
    • The IRC channel the team uses ("sha2017" becomes #sha2017)
  • Deadlines
    • The deadlines for the team (separated by ;)
  • Recources
    • The resources needed by the team (seperated by ;)
  • Comment
    • Comments about the team

Edit the page to see the template text.