Cookies help us deliver our services. By using our services, you agree to our use of cookies.OK
(conditional row hack)
(Use better method for hiding rows)
Line 1: Line 1:
 
{| class="wikitable" style="float:right;width:300px;margin-left:10px;margin-bottom:10px;"
 
{| class="wikitable" style="float:right;width:300px;margin-left:10px;margin-bottom:10px;"
 
|-
 
|-
! colspan="2" style="text-align: center;" | {{{name|{{SUBPAGENAME}}}}} Team<!--
+
! colspan="2" style="text-align: center;" | {{{name|{{SUBPAGENAME}}}}} Team
-->{{#if:{{{started|}}}|<br /><!-- conditional row -->
+
  |- {{#if:{{{started|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
{{!}}-
+
  ! Started
! Started
+
  | {{{started}}}
{{!}} {{{started}}}
+
  |- {{#if:{{{email|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
}}<!--
+
  ! Team email
-->{{#if:{{{email|}}}|<br /><!-- conditional row -->
+
  | [mailto:{{{email}}} {{{email}}}]
{{!}}-
+
  |- {{#if:{{{trustee|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
! Team Contact
+
  ! Trustee contact
{{!}} [mailto:{{{email}}} {{{email}}}]
+
  | {{{trustee}}}
}}<!--
+
  |- {{#if:{{{lead|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
-->{{#if:{{{trustee|}}}|<br /><!-- conditional row -->
+
  ! Team Lead
{{!}}-
+
  | {{{lead}}}
! Trustee Contact
+
  |- {{#if:{{{members|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
{{!}} {{{trustee}}}
+
  ! Members
}}<!--
+
  | {{{members}}}
-->{{#if:{{{lead|}}}|<br /><!-- conditional row -->
+
  |- {{#if:{{{budget|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
{{!}}-
+
  ! Budget
! Team Lead
+
  | {{{budget}}} {{#if: {{{budgetyear|}}}|<small>'' ({{{budgetyear|}}})''</small> }}
{{!}} {{{lead}}}
+
|}<noinclude>
}}<!--
+
 
-->{{#if:{{{members|}}}|<br /><!-- conditional row -->
 
{{!}}-
 
! Members
 
{{!}} {{{members}}}
 
}}<!--
 
-->{{#if:{{{budget|}}}|<br /><!-- conditional row -->
 
{{!}}-
 
! Budget
 
{{!}} {{{budget}}} {{#if: {{{budgetyear|}}}|<small>'' ({{{budgetyear|}}})''</small> }}
 
}}
 
|}
 
<noinclude>
 
 
== Documentation ==
 
== Documentation ==
  

Revision as of 13:02, 22 February 2019

Team Team
Started {{{started}}}
Team email {{{email}}}
Trustee contact {{{trustee}}}
Team Lead {{{lead}}}
Members {{{members}}}
Budget {{{budget}}}

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
|trustee=
|members=
|email=
|started=
|budget=
|budgetyear=
}}

Arguments

email
Will display email as Team Contact. If set, "contact" will not be shown
started
Date team started up, format Month YYYY. For example, 'started=February 2019'.
trusteeContact
Trustee contact for the team
members
List of members involved. Ideally, use [[User:username|username]] format.
budget
Annual budget that the team has access to, format £X
budgetyear
Year for budget, format is YYYY. For example, 'budgetyear=2019'
name
Team name override (default: the page name without the Team: prefix)