Template:Tool: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(40 intermediate revisions by 4 users not shown)
Line 9: Line 9:
   ! Model
   ! Model
   | {{{model}}}
   | {{{model}}}
  |- {{#if:{{{serial|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
  ! Serial Number
  | {{{serial}}}
  |- {{#if:{{{aka|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
  ! AKA
  | {{{aka}}}
   |- {{#if:{{{obtained|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   |- {{#if:{{{obtained|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   ! Obtained
   ! Obtained
Line 14: Line 20:
   |- {{#if:{{{location|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   |- {{#if:{{{location|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   ! Location
   ! Location
   | {{#if: {{{location|}}}|[[{{{location}}}]] }}
   | {{#ifeq: {{{team}}}|noteam|{{{location}}}| [[{{{location}}}]] }}
   |-
   |-
   ! Team
   ! Team
Line 20: Line 26:
   |- {{#if:{{{induction|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   |- {{#if:{{{induction|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   ! Induction Required
   ! Induction Required
   | {{{induction}}}
   | {{#switch:{{lc:{{{induction|}}} }} |yes=Yes <small>(use [https://forms.gle/eRBAJZEY9C4KW1Tj7 request form])</small>|no=No|#default={{{induction}}} }}
   |-{{#ifeq: {{{defunct|}}}|yes| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
  |- {{#if:{{{booking|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
  ! Booking
  | {{#switch:{{lc:{{{booking}}} }}|yes=Yes <small>(use [https://hms.nottinghack.org.uk/tools HMS])</small>|no=No|#default={{{booking}}} }}
   |- {{#ifeq: {{{defunct|}}}|yes| | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   ! Status
   ! Status
   | Defunct {{#if: {{{defunctdate|}}}|<small>'' ({{{defunctdate|}}})''</small> }}
   | Defunct {{#if: {{{defunctdate|}}}|<small>'' ({{{defunctdate|}}})''</small> }}
  |- {{#if:{{{riskassessment|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
  ! Risk Assessment
  | Yes, see [[{{{riskassessment}}}|the assessment]]
|-
|-
| colspan="2" style="text-align: center; border: 1px solid #244724; "|<small> '''Tools:''' &nbsp; [[:Category:Tools and Equipment|all pages]] • [[Tools/We Have|list]] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [[Template:Tool |{{}}]]</small>
| colspan="2" style="text-align: center; border: 1px solid #244724; "|<small> '''Tools:''' &nbsp; [[:Category:Tools and Equipment|all pages]] • [[Tools/We Have|list]] • [[Tools/We Have/Power Tools|Power Tools]] • [[Broken tools]] &nbsp; &nbsp; [[Template:Tool|{{}}]]</small>
|}
|}
{{#switch:{{lc:{{{defunct|}}}}}|yes=[[Category:Tools and Equipment (Defunct)]]|#default=[[Category:Tools and Equipment]]}}
<includeonly>{{#switch:{{lc:{{{defunct|}}}}}|yes=[[Category:Tools and Equipment (Defunct)]]|#default=[[Category:Tools and Equipment|^{{{location}}}^]]
{{#if:{{{location|}}}|[[Category:Tools and Equipment in {{{location}}}]]}}
{{#if:{{{team|}}}|{{#ifeq:{{{team}}}|noteam||[[Category:Responsibility of Team:{{{team|}}}]]}}|[[Category:Responsibility of Team:Tools]]}}}}
<noinclude>
{{#if:{{{location|}}}|{{#ifeq: {{{team}}}|noteam||[[Category:Tools and Equipment in {{{location}}}{{#if:{{{category|}}}|{{!}}^{{{category}}}^}}]]}} }}
{{#if:{{{induction|}}}|{{#ifeq:{{lc:{{{induction|}}} }} |yes|[[Category:Tools and Equipment requiring Induction]]}}}}{{#if:{{{riskassessment|}}}| |[[Category:Tools missing Risk Assessment|^{{{team}}}^]]|}}</includeonly><noinclude>
{{clear}}
{{clear}}


Line 48: Line 61:
|manufacturer=
|manufacturer=
|model=
|model=
|obtained=
|serial=
|aka=
|obtained=<!-- pledge drive/donated/purchased etc. -->
|obtaineddate=
|obtaineddate=
|location=
|location=
Line 55: Line 70:
|defunct=
|defunct=
|defunctdate=
|defunctdate=
|category=
}}
}}
</pre>
</pre>
Line 66: Line 82:
;model
;model
:The model number of the tool. Please be as exact as possible.
:The model number of the tool. Please be as exact as possible.
;serial
:Serial number of the tool, if applicable.
;aka
:"Also Known As" - friendly name
;obtained
;obtained
:How the tool was obtained (i.e. pledge drive, donation, etc)
:How the tool was obtained (i.e. pledge drive, donation, etc)
Line 72: Line 92:
;location
;location
:Where the tool is located in the space. A list of locations is available here: [[:category:Location]]
:Where the tool is located in the space. A list of locations is available here: [[:category:Location]]
:If set, page is auto added to <nowiki>'Category:Tools and Equipment in <location>'</nowiki>.
{{note|If the tool has been removed from the space or is located elsewhere, leave the location blank.}}
{{note|If the tool has been removed from the space or is located elsewhere, leave the location blank.}}
;team
;team
:Team responsible for looking after tool or equipment. Defaults to 'Tools'. Use name of team only without the 'Team:' prefix or double square brackets. For example, for [[Team:Laser]] use use 'team=Laser'. See [[:category:Teams]] for Team names. For tools not maintained by the space use team=noteam (for example, [[Risograph GR3750]]).
:Team responsible for looking after tool or equipment. Defaults to 'Tools'. Use name of team only without the 'Team:' prefix or double square brackets. For example, for [[Team:Laser]] use use 'team=Laser'. See [[:category:Teams]] for Team names. For tools not maintained by the space use team=noteam (for example, [[Risograph GR3750]]). Noteam also stops location automatically being a wikilink and automatic categorisation by location.
;induction
;induction
:Whether or not an induction is required to use the tool. If required use 'induction=yes'.
:Whether or not an induction is required to use the tool. If required use 'induction=yes' - adds link to induction request form
;booking
:Whether or not booking is required to use the tool. If required use 'booking=yes' - adds link to booking in HMS
;defunct
;defunct
:If the tool no longer works and/or no longer at the space use 'defunct=yes'
:If the tool no longer works and/or no longer at the space use 'defunct=yes'
:If set, page is auto added to <nowiki>'Category:Tools and Equipment (Defunct)'</nowiki>.
;defunctdate
;defunctdate
:Date defunct use format DD/MM/YYYY. If day or month is unknown use 01.
:Date defunct use format DD/MM/YYYY. If day or month is unknown use 01.
;category
:Optional, but is used as a heading on the category page "Tools and Equipment in {area}" instead of by alphabet
;riskassessment
:Optional, the relevant risk assessment for the tool, e.g. "Team:Electronics/Risk_Assessments/Soldering"
   
   
[[Category:Templates infoboxes]]
[[Category:Templates infoboxes]]
</noinclude>
</noinclude>

Latest revision as of 09:17, 9 September 2025

Tool
[[{{{image}}}|border|frameless|220px|center]]
Manufacturer {{{manufacturer}}}
Model {{{model}}}
Serial Number {{{serial}}}
AKA {{{aka}}}
Obtained {{{obtained}}}
Location [[{{{location}}}]]
Team Tools
Induction Required {{{induction}}}
Booking {{{booking}}}
Status Defunct
Risk Assessment Yes, see [[{{{riskassessment}}}|the assessment]]
Tools:   all pageslistPower ToolsBroken tools     {{}}

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.

Usage

Inserting the following text at the top of the tool page will produce an information box on your page that gives an overview of the tool. Arguments can be written in any order.

Images look great with this template, include one if you can!

Abbreviated parameter list:

{{Tool
|image=
|manufacturer=
|model=
|serial=
|aka=
|obtained=<!-- pledge drive/donated/purchased etc. -->
|obtaineddate=
|location=
|team=
|induction=
|defunct=
|defunctdate=
|category=
}}

Arguments

image
An image, in the format File:<image name>.<ext>. DO NOT include the [[]] brackets otherwise the image will display full size.
manufacturer
The name of the maker of the tool
model
The model number of the tool. Please be as exact as possible.
serial
Serial number of the tool, if applicable.
aka
"Also Known As" - friendly name
obtained
How the tool was obtained (i.e. pledge drive, donation, etc)
obtaineddate
Date obtained, use format DD/MM/YYYY. If day or month is unknown use 01.
location
Where the tool is located in the space. A list of locations is available here: category:Location
If set, page is auto added to 'Category:Tools and Equipment in <location>'.
Note Note: If the tool has been removed from the space or is located elsewhere, leave the location blank.
team
Team responsible for looking after tool or equipment. Defaults to 'Tools'. Use name of team only without the 'Team:' prefix or double square brackets. For example, for Team:Laser use use 'team=Laser'. See category:Teams for Team names. For tools not maintained by the space use team=noteam (for example, Risograph GR3750). Noteam also stops location automatically being a wikilink and automatic categorisation by location.
induction
Whether or not an induction is required to use the tool. If required use 'induction=yes' - adds link to induction request form
booking
Whether or not booking is required to use the tool. If required use 'booking=yes' - adds link to booking in HMS
defunct
If the tool no longer works and/or no longer at the space use 'defunct=yes'
If set, page is auto added to 'Category:Tools and Equipment (Defunct)'.
defunctdate
Date defunct use format DD/MM/YYYY. If day or month is unknown use 01.
category
Optional, but is used as a heading on the category page "Tools and Equipment in {area}" instead of by alphabet
riskassessment
Optional, the relevant risk assessment for the tool, e.g. "Team:Electronics/Risk_Assessments/Soldering"