Template:Team: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
ficxo
para
Line 8: Line 8:
   ! Team email
   ! Team email
   | [mailto:{{{email}}} {{{email}}}]
   | [mailto:{{{email}}} {{{email}}}]
   |- {{#if:{{{trustee|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   |- {{#if:{{{slack|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   ! Trustee contact
   ! Slack
   | {{{trustee}}}
   | [{{{slack}}} {{{SUBPAGENAME}}} channel]
   |- {{#if:{{{lead|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   |- {{#if:{{{lead|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   ! Team Lead
   ! Team Lead
Line 20: Line 20:
   ! Budget
   ! Budget
   | {{{budget}}} {{#if: {{{budgetyear|}}}|<small>'' ({{{budgetyear|}}})''</small> }}
   | {{{budget}}} {{#if: {{{budgetyear|}}}|<small>'' ({{{budgetyear|}}})''</small> }}
  |- {{#if:{{{trustee|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
  ! Trustee contact
  | {{{trustee}}}
  |-{{#ifeq: {{{dissolved|}}}|yes| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
  ! Status
  | Dissolved {{#if: {{{dissolveddate|}}}|<small>'' ({{{dissolveddate|}}})''</small> }}
|-
|-
| colspan="2" style="text-align: center; border: 1px solid indigo; "|<small> '''Teams:''' &nbsp; [[Teams|About]] • [[Team responsibilities and contacts|Responsibilities]] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [[Template:Team |{{}}]]</small>
| colspan="2" style="text-align: center; border: 1px solid indigo; "|<small> '''Teams:''' &nbsp; [[Teams|About]] • [[Team responsibilities and contacts|Responsibilities]] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [[Template:Team |{{}}]]</small>
Line 32: Line 38:
<pre>
<pre>
{{Team
{{Team
|trustee=
|started=
|email=
|slack=
|lead=
|members=
|members=
|email=
|started=
|budget=
|budget=
|budgetyear=
|budgetyear=
|trustee=
}}
}}
</pre>
</pre>


=== Arguments ===
=== Arguments ===
;name
:Team name override (default: the page name without the '''Team:''' prefix and 'team' suffix)
;email
;email
:Will display email as Team Contact. If set, "contact" will not be shown
:Will display email as Team email.
;started
;started
:Date team started up, format Month YYYY. For example, 'started=February 2019'.
:Date team started up, format Month YYYY. For example, 'started=February 2019'.
;trusteeContact
;lead
:Trustee contact for the team
:Name of team lead. Ideally, use <nowiki>[[User:username|username]]</nowiki> format, or if no wiki userpage use lead name without wikilink.
;members
;members
:List of members involved. Ideally, use <nowiki>[[User:username|username]]</nowiki> format.
:List of members involved. Ideally, use <nowiki>[[User:username|username]]</nowiki> format, or if no wiki userpage use lead name without wikilink.
;budget
;budget
:Annual budget that the team has access to, format £X
:Annual budget that the team has access to, format £X
;budgetyear
;budgetyear
:Year for budget, format is YYYY. For example, 'budgetyear=2019'
:Year for budget, format is YYYY. For example, 'budgetyear=2019'
;name
;trusteeContact
:Team name override (default: the page name without the '''Team:''' prefix)
:Trustee contact for the team
;dissolved
:If team is dissolved use dissolved=yes
;dissolveddate
:Date dissolved use format DD/MM/YYYY. If day or month is unknown use 01.
 
 
[[Category:Templates infoboxes]]
[[Category:Templates infoboxes]]
</noinclude>
</noinclude>

Revision as of 13:46, 22 February 2019

Team Team
Started {{{started}}}
Team email {{{email}}}
Slack [{{{slack}}} {{{SUBPAGENAME}}} channel]
Team Lead {{{lead}}}
Members {{{members}}}
Budget {{{budget}}}
Trustee contact {{{trustee}}}
Status Dissolved
Teams:   AboutResponsibilities             {{}}

Documentation

All arguments are optional, but you should have at least 1 (ideally more). Don't worry about the way it looks on this page: that's purely because no arguments are specified.

Abbreviated parameter list:

{{Team
|started=
|email=
|slack=
|lead=
|members=
|budget=
|budgetyear=
|trustee=
}}

Arguments

name
Team name override (default: the page name without the Team: prefix and 'team' suffix)
email
Will display email as Team email.
started
Date team started up, format Month YYYY. For example, 'started=February 2019'.
lead
Name of team lead. Ideally, use [[User:username|username]] format, or if no wiki userpage use lead name without wikilink.
members
List of members involved. Ideally, use [[User:username|username]] format, or if no wiki userpage use lead name without wikilink.
budget
Annual budget that the team has access to, format £X
budgetyear
Year for budget, format is YYYY. For example, 'budgetyear=2019'
trusteeContact
Trustee contact for the team
dissolved
If team is dissolved use dissolved=yes
dissolveddate
Date dissolved use format DD/MM/YYYY. If day or month is unknown use 01.