Template:Team: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
duff code?
dup code
Line 1: Line 1:
{| class="wikitable"  {{#ifeq: {{{dissolved}}}|yes|style="float:right; width:300px; margin-left:10px; margin-bottom:10px; color:DarkSlateGray;"|style="float:right; width:300px; margin-left:10px; margin-bottom:10px;" }} <!-- make text grey if defunct --> style="float:right;width:300px;margin-left:10px;margin-bottom:10px;"
{| class="wikitable"  {{#ifeq: {{{dissolved}}}|yes|style="float:right; width:300px; margin-left:10px; margin-bottom:10px; color: DarkSlateGray;"|style="float:right; width:300px; margin-left:10px; margin-bottom:10px;" }} <!-- make text grey if defunct -->
! colspan="2"  {{#ifeq: {{{dissolved}}}|yes|style="background-color:DarkSlateGray; color:#ffffff; text-align: center; border: 1px solid #244724;"|style="background-color:indigo; color:#ffffff; text-align: center; border: 1px solid indigo;" }} | {{#if:{{{name|}}}|{{{name}}}|{{SUBPAGENAME}} Team}} {{#ifeq: {{{dissolved}}}|yes|&nbsp;(dissolved) }}   
! colspan="2"  {{#ifeq: {{{dissolved}}}|yes|style="background-color:DarkSlateGray; color:#ffffff; text-align: center; border: 1px solid #244724;"|style="background-color:indigo; color:#ffffff; text-align: center; border: 1px solid indigo;" }} | {{#if:{{{name|}}}|{{{name}}}|{{SUBPAGENAME}} Team}} {{#ifeq: {{{dissolved}}}|yes|&nbsp;(dissolved) }}   
   |- {{#if:{{{started|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   |- {{#if:{{{started|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}

Revision as of 13:59, 22 February 2019

Team Team
Started {{{started}}}
Team email {{{email}}}
Slack [{{{slack}}} Team 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 with 'team' suffix)
started
Date team started up, format Month YYYY. For example, 'started=February 2019'.
email
Will display email as Team email.
slack
Use url link to team's Slack channel (find on Slack by right-clicking and copy link address from the left column over #channel name)
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 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.