Template:Equipment: Difference between revisions

From Leeds Hackspace Wiki
Jump to navigation Jump to search
mNo edit summary
m (More test)
 
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| style="float: right; margin: 0 0 10px 10px; width: 269px; border-radius: 8px; background-color: #F9F9F9;border: 1px solid #AAAAAA;font-size: 95%;padding: 5px;"
<includeonly>
|- style="text-align:center; background-color:#5f9fbc; color: white; font-size: 120%"
{{Infobox
! colspan=2| '''{{#if:{{{title|}}}|{{{title}}}|{{{name}}} }}'''
| name = Equipment
{{#if:{{{image|}}}|
| title = {{{title| {{{name}}} }}}
{{!}}-
| bodystyle  = width:20em
! colspan=2{{!}} [[File:{{{image}}}{{!}}200px]]
<!-- | 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|}}}
| colspan=2| [[User_talk:{{PAGENAME}}|Talk]] ~ [[User:{{PAGENAME}}/Sandbox|Sandbox]] ~ [[Special:Contributions/{{PAGENAME}}|Contributions]]-->
| header2 = Equipment Information
 
| label3 = Status | data3 = {{{status|Unknown}}}
{{#if:{{{email|}}}|
| label4 = Manufacturer | data4 = {{{manufacturer|Unknown}}}
{{TableRow | Email | [mailto:{{{email}}} {{{email}}}] }}
| label5 = Model | data5 = {{{model|Unknown}}}
|}}
| label6 = Firmware | data6 = {{{firmware|}}}
{{#if:{{{owner|}}}|
| label7 = Head | data7 = {{{head|}}}
{{TableRow | Owner | {{{owner}}} }}
| label8 = Materials | data8 = {{{materials|}}}
|}}
| label9 = Usable Area | data9 = {{{area|}}}
{{#if:{{{induction|}}}|
| header10 = Hackspace Information
{{TableRow | Induction Required? | {{{induction}}} [{{PAGENAME}}/Induction|More Info}}
| label11 = Induction Required | data11 = {{#if: {{{induction|}}}{{{inductionlink |}}} | Yes | No }}
|}}
| label12 = Induction Information | data12 = {{#if: {{{induction|}}} | [[{{{inductionlink|#Induction}}}|Here]]}}
 
| label13 = Card RFID Enabled | data13 = {{{rfid|}}}
|}
| label14 = Owner | data14 = {{{owner|}}}
| label15 = Maintainer(s) | data15 = {{{maintainer|}}}
| below = {{#if: {{{more_link|}}} | [[{{{more_link|}}} More Info]] }}
}}
</includeonly>
</includeonly>
 
<noinclude>
{{Equipment
{{Equipment
| title = Equipment Name
| title = Equipment Name
| description = This is a piece of equipment. Make sure you don't hurt yourself using it!
| status = Working
| image = leeds_hackspace_logo.svg
| image = leeds_hackspace_logo.svg
| owner = Leeds Hackspace
| owner = Leeds Hackspace
| induction = Yes
| induction = Yes  
| inductionlink = Induction
| rfid = No
}}
}}
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 [[Template:Equipment/sandbox|the sandbox]] first, to avoid large scale page malformation.
<templatedata>
{
"params": {
"title": {
"label": "Title",
"description": "The title for the equipment box",
"type": "string"
},
"image": {
"label": "Image",
"description": "Info image for equipment",
"type": "wiki-file-name"
},
"image_upright": {},
"alt": {
"label": "Alt",
"description": "Alt text for image info",
"type": "string"
},
"description": {
"label": "Description",
"description": "Breif description of equipment",
"example": "Thing that does stuff",
"type": "string"
},
"status": {
"label": "Status",
"description": "Status of the machine",
"example": "Broken",
"type": "string"
},
"manufacturer": {
"label": "Manufacturer",
"description": "The manufacturer of the equipment",
"example": "Acme Co."
},
"model": {
"label": "Model",
"description": "The model of the equipment",
"type": "string"
},
"firmware": {
"label": "Firmware",
"description": "Firmware information about the equipment",
"example": "Marlin 2.0"
},
"head": {},
"materials": {},
"area": {
"label": "Area",
"description": "Usable area of the tool/largest piece of stuff it could use",
"example": "200x200x200mm",
"type": "string"
},
"induction": {
"label": "Induction",
"description": "Is an induction required",
"type": "boolean"
},
"inductionlink": {
"label": "Induction Link",
"description": "Link to external page with induction on",
"type": "wiki-page-name"
},
"rfid": {
"label": "RFID",
"description": "Is the tool RFID control locked",
"type": "boolean"
},
"owner": {
"label": "Owner",
"description": "Who owns the tool",
"example": "Leeds Hackspace",
"type": "string"
},
"maintainer": {
"label": "Maintainers",
"description": "Who maintains the tools",
"example": "Ben"
},
"more_link": {
"label": "More info link",
"description": "Link to more info about tool",
"example": "https://toolmanufacturer.com/tools/toolpage.html",
"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",
"paramOrder": [
"title",
"image",
"image_upright",
"alt",
"description",
"status",
"manufacturer",
"model",
"firmware",
"head",
"materials",
"area",
"induction",
"inductionlink",
"rfid",
"owner",
"maintainer",
"more_link",
"image_size",
"image_alt"
],
"format": "block"
}
</templatedata>
</noinclude>

Latest revision as of 12:25, 25 September 2019


Equipment Name
Leeds hackspace logo.svg
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

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

The title for the equipment box

Stringoptional
Imageimage

Info image for equipment

Fileoptional
image_uprightimage_upright

no description

Unknownoptional
Altalt

Alt text for image info

Stringoptional
Descriptiondescription

Breif description of equipment

Example
Thing that does stuff
Stringoptional
Statusstatus

Status of the machine

Example
Broken
Stringoptional
Manufacturermanufacturer

The manufacturer of the equipment

Example
Acme Co.
Unknownoptional
Modelmodel

The model of the equipment

Stringoptional
Firmwarefirmware

Firmware information about the equipment

Example
Marlin 2.0
Unknownoptional
headhead

no description

Unknownoptional
materialsmaterials

no description

Unknownoptional
Areaarea

Usable area of the tool/largest piece of stuff it could use

Example
200x200x200mm
Stringoptional
Inductioninduction

Is an induction required

Booleanoptional
Induction Linkinductionlink

Link to external page with induction on

Page nameoptional
RFIDrfid

Is the tool RFID control locked

Booleanoptional
Ownerowner

Who owns the tool

Example
Leeds Hackspace
Stringoptional
Maintainersmaintainer

Who maintains the tools

Example
Ben
Unknownoptional
More info linkmore_link

Link to more info about tool

Example
https://toolmanufacturer.com/tools/toolpage.html
URLoptional
Image Sizeimage_size

The size of the image

Default
290
Example
200
Auto value
290
Numberoptional
image_altimage_alt

no description

Unknownoptional