Template:Tool: Difference between revisions
Jump to navigation
Jump to search
m Simplify image if statement |
Incorporate formatting fix |
||
Line 2: | Line 2: | ||
|- | |- | ||
! colspan="2" style="background-color:#195905; color:#ffffff; text-align: center;" | {{{name|{{SUBPAGENAME}}}}} | ! colspan="2" style="background-color:#195905; color:#ffffff; text-align: center;" | {{{name|{{SUBPAGENAME}}}}} | ||
{{#if: {{{image|}}}| | <!-- | ||
{{!}}- | -->{{#if: {{{image|}}}|<br /><!-- conditional row --> | ||
{{!}} colspan="2" style="text-align:center;" {{!}} | {{!}}- | ||
[[{{{image}}}|frameless|{{#ifexpr: {{{imagewidth|220}}}>220 |220|{{{imagewidth|220}}}}}px | {{!}} colspan="2" style="text-align:center;" {{!}} [[{{{image}}}|border|frameless|{{#ifexpr: {{{imagewidth|220}}}>220 |220|{{{imagewidth|220}}}}}px|center]] {{#if: {{{caption|}}}|''{{{caption}}}''}} | ||
{{#if: {{{caption|}}}|''{{{caption}}}''}} | |||
| | | | ||
}} | }}<!-- | ||
{{#if:{{{manufacturer|}}}| | -->{{#if:{{{manufacturer|}}}|<br /><!-- conditional row --> | ||
{{!}}- | {{!}}- | ||
! Manufacturer | ! Manufacturer | ||
{{!}} {{{manufacturer}}} | {{!}} {{{manufacturer}}} | ||
}} | }}<!-- | ||
{{#if:{{{model|}}}| | -->{{#if:{{{model|}}}|<br /><!-- conditional row --> | ||
{{!}}- | {{!}}- | ||
! Model | ! Model | ||
{{!}} {{{model}}} | {{!}} {{{model}}} | ||
}} | }}<!-- | ||
{{#if:{{{obtained|}}}| | -->{{#if:{{{obtained|}}}|<br /><!-- conditional row --> | ||
{{!}}- | {{!}}- | ||
! Obtained | ! Obtained | ||
{{!}} {{{obtained}}} | {{!}} {{{obtained}}} | ||
}} | }}<!-- | ||
{{#if:{{{location|}}}| | -->{{#if:{{{location|}}}|<br /><!-- conditional row --> | ||
{{!}}- | {{!}}- | ||
! Location | ! Location | ||
{{!}} {{{location}}} | {{!}} {{{location}}} | ||
}} | }}<!-- | ||
{{#if:{{{induction|}}}| | -->{{#if:{{{induction|}}}|<br /><!-- conditional row --> | ||
{{!}}- | {{!}}- | ||
! Induction Required | ! Induction Required | ||
{{!}} {{{induction}}} | {{!}} {{{induction}}} | ||
}} | }} | ||
|} | |} | ||
{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Tools and Equipment]]|}} | {{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Tools and Equipment]]|}} | ||
<noinclude> | <noinclude> | ||
__NOEDITSECTION__ | __NOEDITSECTION__ |
Revision as of 16:03, 8 February 2019
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.
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!
{{Tool |image= |manufacturer= |model= |obtained= |location= |induction= }}
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.
- obtained
- When and how the tool was obtained (i.e. pledge drive, donation, etc)
- location
- Where the tool is located in the space
- induction
- Whether or not an induction is required to use the tool