Template:Team: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
option for name including no 'team' suffix
Shane (talk | contribs)
Remove unused attributes; I believe I've removed them from all templates.
 
(37 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="wikitable" 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; font-size:110%; border: 1px solid #244724;"|style="background-color:indigo; color:#ffffff; text-align: center; font-size:110%; border: 1px solid indigo;" }} | '''{{#if:{{{name|}}}|{{{name}}}|{{SUBPAGENAME}} team}}''' {{#ifeq: {{{dissolved}}}|yes|&nbsp;(dissolved) }}  
! colspan="2" style="text-align: center;" | {{{name|{{SUBPAGENAME}} Team}}}  
   |- {{#if:{{{started|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   |- {{#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 --> }}
   |- {{#if:{{{email|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   ! Team email
   ! Email
   | [mailto:{{{email}}} {{{email}}}]
   | [mailto:{{{email}}} {{{email}}}]
   |- {{#if:{{{trustee|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   |- {{#if:{{{discord|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   ! Trustee contact
   ! Discord
   | {{{trustee}}}
   | [{{{discord}}} {{SUBPAGENAME}} channel]
  |- {{#if:{{{lead|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   |-  
  ! Team Lead
  | {{{lead}}}
   |- {{#if:{{{members|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   ! Members
   ! Members
   | {{{members}}}
   | Team members listed on [https://hms.nottinghack.org.uk/teams HMS].
   |- {{#if:{{{budget|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   |- {{#if:{{{hms|}}}| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   ! Budget
   ! HMS page
   | {{{budget}}} {{#if: {{{budgetyear|}}}|<small>'' ({{{budgetyear|}}})''</small> }}
   | [{{{hms}}} {{SUBPAGENAME}} Team on HMS]
|}<noinclude>
  |-{{#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]] • [[:Category:Teams|all pages]]&nbsp; &nbsp; &nbsp; &nbsp; [[Template:Team |{{}}]]<br /><hr />{{Active teams}}</small>
|}<noinclude>{{clear}}


== Documentation ==
== 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.
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:


<pre>
<pre>
{{Team
{{Team
|trustee=
|started=
|members=
|email=
|email=
|started=
|discord=
|budget=
|hms=
|budgetyear=
}}
}}
</pre>
</pre>


=== Arguments ===
=== Arguments ===
;email
;name
:Will display email as Team Contact. If set, "contact" will not be shown
:Team name override (default: the page name without the 'Team:' prefix and with 'team' suffix)
;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
;email
:Trustee contact for the team
:Will display email as Team email.
;members
;discord
:List of members involved. Ideally, use <nowiki>[[User:username|username]]</nowiki> format.
:Use URL link to team's Discord channel (find on Discord by right-clicking and "Copy link")
;budget
;hms
:Annual budget that the team has access to, format £X
:hms=url url should be link to specific Team page on HMS <nowiki>hms=https://hms.nottinghack.org.uk/teams/67</nowiki>
;budgetyear
;dissolved
:Year for budget, format is YYYY. For example, 'budgetyear=2019'
:If team is dissolved use dissolved=yes
;name
;dissolveddate
:Team name override (default: the page name without the '''Team:''' prefix)
:Date dissolved use format DD/MM/YYYY. If day or month is unknown use 01.
 
===Sub templates used===
* [[Template:Active teams]]
 
[[Category:Templates infoboxes]]
[[Category:Templates infoboxes]]
</noinclude>
</noinclude>

Latest revision as of 18:47, 16 July 2025

Team team
Started {{{started}}}
Email {{{email}}}
Discord [{{{discord}}} Team channel]
Members Team members listed on HMS.
HMS page [{{{hms}}} Team Team on HMS]
Status Dissolved
Teams:   Aboutall pages        {{}}

3D PrintingBikeCommsCraftElectronicsInfrastructureLaserMembershipMetalworkingNetworkSafetySnackspaceSoftwareToolsWoodworking

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.

{{Team
|started=
|email=
|discord=
|hms=
}}

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.
discord
Use URL link to team's Discord channel (find on Discord by right-clicking and "Copy link")
hms
hms=url url should be link to specific Team page on HMS hms=https://hms.nottinghack.org.uk/teams/67
dissolved
If team is dissolved use dissolved=yes
dissolveddate
Date dissolved use format DD/MM/YYYY. If day or month is unknown use 01.

Sub templates used