Template:Tool: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
Alexmann (talk | contribs)
No edit summary
Alexmann (talk | contribs)
reverted to mostly working template
Line 1: Line 1:
{| class="wikitable" style="float:right;width:300px;margin-left:10px;margin-bottom:10px;" <!--Create Table-->
{| class="wikitable" style="float:right;width:300px;margin-left:10px;margin-bottom:10px;"
|- <!--Create first row-->
|-
! colspan="2" style="text-align: center;" | {{{name|{{SUBPAGENAME}}}}} <!--Across both columns, centred, display the page name-->
! colspan="2" style="text-align: center;" | {{{name|{{SUBPAGENAME}}}}}
{{#if: {{{image|}}}| <!--If the image variable is set-->
{{#if: {{{image|}}}|
{{!}}- <!--On a new row-->
{{!}}-
| colspan="2" style="text-align:center;" | {{#if: {{{image|}}}|
{{!}} colspan="2" style="text-align:center;" {{!}} {{#if: {{{image|}}}|
[[{{{image}}} |{{#ifexpr: {{{imagewidth|220}}}>220 |220|{{{imagewidth|220}}}}}px|link={{{image}}}|thumb|center]]{{#if: {{{caption|}}}|''{{{caption}}}''}}}}
[[{{{image}}} |{{#ifexpr: {{{imagewidth|220}}}>220 |220|{{{imagewidth|220}}}}}px|link={{{image}}}|thumb|center]]{{#if: {{{caption|}}}|''{{{caption}}}''}}}}
|
|-
}}
}}
{{#if:{{{manufacturer|}}}|
{{#if:{{{manufacturer|}}}|
|-
{{!}}-
! Manufacturer
! Manufacturer
| {{{manufacturer}}}
{{!}} {{{manufacturer}}}
}}
}}
{{#if:{{{trustee|}}}|
{{#if:{{{trustee|}}}|
|-
{{!}}-
! Trustee Contact
! Trustee Contact
| {{{trustee}}}
{{!}} {{{trustee}}}
}}
}}
{{#if:{{{lead|}}}|
{{#if:{{{lead|}}}|
|-
{{!}}-
! Team Lead
! Team Lead
| {{{lead}}}
{{!}} {{{lead}}}
}}
}}
{{#if:{{{members|}}}|
{{#if:{{{members|}}}|
|-
{{!}}-
! Members
! Members
| {{{members}}}
{{!}} {{{members}}}
}}
}}
|}
|}

Revision as of 03:52, 8 March 2018

Tool

-




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.

Arguments

image
An image, in the format File:<image name>.<ext>. DO NOT include the [[]] brackets otherwise the image will display full size.
name
Team name override (default: the page name without the Team: prefix)
email
Will display an email. If set, "contact" will not be shown
started
Date team started up
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