Template:Equipment: Difference between revisions
m (Removed broken size control) |
m (More test) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
| name = Equipment | | name = Equipment | ||
| title = {{{title| {{{name}}} }}} | | title = {{{title| {{{name}}} }}} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{ | | bodystyle = width:20em | ||
<!-- | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size=290px|sizedefault=290px|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=no}} --> | |||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|maxsize=300px|size={{{image_size|290px}}}|sizedefault=290px|upright={{{image_upright|1.35}}}|alt={{{image_alt|{{{alt|}}}}}} }} | |||
| data1 = {{{description|}}} | | data1 = {{{description|}}} | ||
| header2 = Equipment Information | | header2 = Equipment Information | ||
Line 51: | Line 53: | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
"image_upright": {}, | "image_upright": {}, | ||
"alt": { | "alt": { | ||
Line 125: | Line 125: | ||
"example": "https://toolmanufacturer.com/tools/toolpage.html", | "example": "https://toolmanufacturer.com/tools/toolpage.html", | ||
"type": "url" | "type": "url" | ||
} | }, | ||
"image_size": { | |||
"label": "Image Size", | |||
"description": "The size of the image", | |||
"example": "200", | |||
"type": "number", | |||
"default": "290", | |||
"autovalue": "290" | |||
}, | |||
"image_alt": {} | |||
}, | }, | ||
"description": "This is used for adding info to a piece of equipment", | "description": "This is used for adding info to a piece of equipment", | ||
Line 131: | Line 140: | ||
"title", | "title", | ||
"image", | "image", | ||
"image_upright", | "image_upright", | ||
"alt", | "alt", | ||
Line 148: | Line 155: | ||
"owner", | "owner", | ||
"maintainer", | "maintainer", | ||
"more_link" | "more_link", | ||
"image_size", | |||
"image_alt" | |||
], | ], | ||
"format": "block" | "format": "block" |
Latest revision as of 12:25, 25 September 2019
This is a piece of equipment. Make sure you don't hurt yourself using it! | |
Equipment Information | |
---|---|
Status | Working |
Manufacturer | Unknown |
Model | Unknown |
Hackspace Information | |
Induction Required | Yes |
Induction Information | Here |
Card RFID Enabled | No |
Owner | Leeds Hackspace |
This is the master copy of the Equipment template used by pretty much every peice of equipment on the wiki.
To develop this template, Please test on the sandbox first, to avoid large scale page malformation.
This is used for adding info to a piece of equipment
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | The title for the equipment box | String | optional |
Image | image | Info image for equipment | File | optional |
image_upright | image_upright | no description | Unknown | optional |
Alt | alt | Alt text for image info | String | optional |
Description | description | Breif description of equipment
| String | optional |
Status | status | Status of the machine
| String | optional |
Manufacturer | manufacturer | The manufacturer of the equipment
| Unknown | optional |
Model | model | The model of the equipment | String | optional |
Firmware | firmware | Firmware information about the equipment
| Unknown | optional |
head | head | no description | Unknown | optional |
materials | materials | no description | Unknown | optional |
Area | area | Usable area of the tool/largest piece of stuff it could use
| String | optional |
Induction | induction | Is an induction required | Boolean | optional |
Induction Link | inductionlink | Link to external page with induction on | Page name | optional |
RFID | rfid | Is the tool RFID control locked | Boolean | optional |
Owner | owner | Who owns the tool
| String | optional |
Maintainers | maintainer | Who maintains the tools
| Unknown | optional |
More info link | more_link | Link to more info about tool
| URL | optional |
Image Size | image_size | The size of the image
| Number | optional |
image_alt | image_alt | no description | Unknown | optional |