Difference between revisions of "Template:Equipment"
m |
|||
(63 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
+ | Copy and paste this in a new page to create a tool page that shows up in our tool list. fill out the fields the best you can, delete the lines for ones that don't apply | ||
+ | |||
<pre> | <pre> | ||
<nowiki> | <nowiki> | ||
{{Equipment | {{Equipment | ||
− | |owner=Owner of | + | |owner = Owner of equipment |
− | |model=Make/Model of equipment | + | |assetTag = Hive13 Asset Tag ID |
− | |arrived=When this thing first showed up | + | |donor = person who donated the equipment |
− | |doesitwork=Does this work or not | + | |model = Make/Model of equipment |
− | |certification=Do you need to be approved to use it | + | |arrived = When this thing first showed up |
− | |contact=person to contact | + | |left = If the item has left, fill this in and the page will be switched to the OldEquipment category. |
− | |where=where is it | + | |doesitwork = [Yes|No] Does this work or not |
+ | |certification = [Yes|No] Do you need to be approved to use it | ||
+ | |consumables = [Yes|No] Does this tool have consumables | ||
+ | |contact = person to contact | ||
+ | |where = where is it | ||
+ | |FlickrImage = <flickr>5590121729|q|center</flickr> | ||
+ | |Image = File:Image.jpg | ||
+ | |subcat = General equipment type (Metalworking, Woodworking, CNC, etc) | ||
+ | |Manual = Media:Manual.pdf | ||
}} | }} | ||
</nowiki> | </nowiki> | ||
Line 16: | Line 26: | ||
</noinclude> | </noinclude> | ||
− | {| style="border:solid #aaa 1px; margin:2px; font-size:100%; background:#ffffff; width: | + | <includeonly> |
− | ! | + | {| style="border:solid #aaa 1px; margin:2px; font-size:100%; background:#ffffff; width:230px; padding:1em; text-align:center; float:right; clear:right;" |
+ | ! style="border:solid #aaa 1px; text-align:center; background-color:#{{#ifeq: {{{doesitwork}}} | No | CC0000 | {{#if: {{{left|}}} | FF8533 | 11BB11 }} }}" | {{#if: {{{left|}}} | No Longer Hive13 Equipment | Hive13 Equipment }} | ||
|- | |- | ||
− | | | + | | style="background-color: #77FF77; text-align:center;" | [[Equipment|List of All Documented Equipment]] |
+ | {{#if: {{{FlickrImage|}}} | | ||
+ | {{!}}- | ||
+ | {{!}} style="text-align:center;" {{!}} {{{FlickrImage}}} | ||
+ | | }}{{#if: {{{Image|}}} | | ||
+ | {{!}}- | ||
+ | {{!}} style="text-align:center;" {{!}} [[{{{Image}}}|200px]] | ||
+ | | }} | ||
+ | {{#ifeq: {{{consumables|No}}} | Yes | | ||
+ | {{!}}- | ||
+ | {{!}} [[{{FULLPAGENAME}}/Consumables | Consumables]] | ||
+ | }} | ||
|- | |- | ||
− | | | + | | '''Owner/Loaner:''' {{{owner}}} |
|- | |- | ||
− | | ''' | + | | '''Hive13 Asset Tag:''' {{#if: {{{assetTag|}}} | [[{{{assetTag}}}]] | None }} |
|- | |- | ||
| '''Make/Model:''' {{#if: {{{model|}}} | [http://www.google.com/search?q={{urlencode:{{{model}}}}} {{{model}}} (google)] | not specified. }} | | '''Make/Model:''' {{#if: {{{model|}}} | [http://www.google.com/search?q={{urlencode:{{{model}}}}} {{{model}}} (google)] | not specified. }} | ||
Line 29: | Line 51: | ||
| '''Arrival Date:''' {{{arrived}}} | | '''Arrival Date:''' {{{arrived}}} | ||
|- | |- | ||
− | | '''Does it work?:''' {{{doesitwork}}} | + | | style=" background-color:#{{#ifeq: {{{doesitwork}}} | No |CC0000 | }}" | '''Does it work?:''' {{{doesitwork}}} |
|- | |- | ||
| '''Certification Needed?:''' {{{certification}}} | | '''Certification Needed?:''' {{{certification}}} | ||
Line 36: | Line 58: | ||
|- | |- | ||
| '''Floorplan:''' [[{{{where}}}]] | | '''Floorplan:''' [[{{{where}}}]] | ||
+ | {{#if: {{{Manual|}}} | | ||
+ | {{!}}- | ||
+ | {{!}} '''Manual:''' [[{{{Manual|}}}{{!}}Manual]] | ||
+ | | }} | ||
+ | |- | ||
+ | | style="text-align:center;" | https://chart.apis.google.com/chart?chs=150x150&cht=qr&chld=H%7C0&chl={{fullurl:{{FULLPAGENAMEE}}}}.png | ||
|} | |} | ||
{{#set:ToolName={{PAGENAME}}|FloorplanLocation={{{where}}}}} | {{#set:ToolName={{PAGENAME}}|FloorplanLocation={{{where}}}}} | ||
+ | {{#set:AssetNumber={{{assetTag|}}} }} | ||
+ | {{#set:Owner={{{owner|unknown}}} }} | ||
+ | {{#set:arrived={{{arrived|unknown}}} }} | ||
+ | {{#set:status={{{doesitwork|}}}}} | ||
+ | {{#set:certification={{{certification|}}}}} | ||
+ | {{#set:consumables={{{consumables|No}}}}} | ||
+ | {{#set:maintainer={{{contact|}}}}} | ||
+ | {{#set:area={{#if: {{{subcat|}}} | {{{subcat}}} | Uncategorized}} }} | ||
− | [[Category:Equipment]] | + | {{#if: {{{subcat|}}} | [[Category:{{{subcat|}}}]] | }} |
+ | {{#if: {{{left|}}} | [[Category:OldEquipment]] | [[Category:Equipment]] }} | ||
+ | {{#ifeq: {{{doesitwork}}} | No | [[Category:BrokenEquipment]] [[WorkingEquipment::No | ]]| [[WorkingEquipment::Yes | ]]}} | ||
+ | </includeonly> | ||
+ | |||
+ | <noinclude> | ||
+ | <templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "doesitwork": { | ||
+ | "label": "Does tool work?", | ||
+ | "description": "Does this tool currently work?", | ||
+ | "example": "Yes/No/Partially", | ||
+ | "type": "string", | ||
+ | "default": "Yes", | ||
+ | "required": true | ||
+ | }, | ||
+ | "left": { | ||
+ | "label": "Date left", | ||
+ | "description": "Fill this out if an item has left the hive", | ||
+ | "example": "12/18/2015", | ||
+ | "type": "date" | ||
+ | }, | ||
+ | "FlickrImage": { | ||
+ | "label": "Flickr Image", | ||
+ | "description": "Image of the equipment hosted on flickr rather than on the wiki", | ||
+ | "example": "<flickr>5590121729|q|center</flickr>", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "Image": { | ||
+ | "label": "Image", | ||
+ | "description": "Image of this equipment hosted on this wiki", | ||
+ | "example": "File:Image.jpg", | ||
+ | "type": "wiki-file-name", | ||
+ | "required": true | ||
+ | }, | ||
+ | "owner": { | ||
+ | "label": "Equipment owner", | ||
+ | "description": "The owner of this piece of equipment ", | ||
+ | "example": "Hive13", | ||
+ | "type": "string", | ||
+ | "default": "Hive13", | ||
+ | "required": true | ||
+ | }, | ||
+ | "assetTag": { | ||
+ | "label": "Hive13 Asset Tag Number", | ||
+ | "description": "The tag ID on the Hive13 asset tag for this equipment, if any.", | ||
+ | "example": "HV0001", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "donor": { | ||
+ | "label": "Equipment Donor", | ||
+ | "description": "The person who donated the equipment", | ||
+ | "example": "John Doe", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "model": { | ||
+ | "label": "Model Number", | ||
+ | "description": "Model number of this equipment in manufacturer/model format", | ||
+ | "example": "brother/pe-150", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "arrived": { | ||
+ | "label": "Date arrived", | ||
+ | "description": "The date this tool arrived in mm/dd/yyyy format", | ||
+ | "example": "12/18/2015", | ||
+ | "type": "date", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "certification": { | ||
+ | "label": "Certification", | ||
+ | "description": "Whether or not this tool requires certification", | ||
+ | "example": "yes/no", | ||
+ | "type": "string", | ||
+ | "default": "No", | ||
+ | "required": true | ||
+ | }, | ||
+ | "consumables": { | ||
+ | "label": "Consumables", | ||
+ | "description": "Does this piece of equipment have stocked consumables", | ||
+ | "default": "Yes", | ||
+ | "example": "Yes", | ||
+ | "type": "boolean", | ||
+ | "required": false | ||
+ | }, | ||
+ | "contact": { | ||
+ | "label": "Contact", | ||
+ | "description": "Who to contact for information", | ||
+ | "example": "Commonly area warden or owner of tool", | ||
+ | "type": "wiki-page-name", | ||
+ | "required": true | ||
+ | }, | ||
+ | "where": { | ||
+ | "label": "Location of tool", | ||
+ | "description": "Location of tool in the hive, see the [[Floorplan]]", | ||
+ | "example": "1D", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "Manual": { | ||
+ | "label": "Manual", | ||
+ | "description": "Manual for this piece of equipment", | ||
+ | "example": "Media:Manual.pdf", | ||
+ | "type": "wiki-file-name", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "subcat": { | ||
+ | "label": "Category", | ||
+ | "description": "Equipment category", | ||
+ | "example": "Metalworking, Woodworking, CNC, Electronics, DigitalFabrication or blank for general/uncategorized", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | } | ||
+ | }, | ||
+ | "description": "This template generates an equipment infobox.", | ||
+ | "paramOrder": [ | ||
+ | "owner", | ||
+ | "assetTag", | ||
+ | "donor", | ||
+ | "model", | ||
+ | "arrived", | ||
+ | "left", | ||
+ | "doesitwork", | ||
+ | "certification", | ||
+ | "consumables", | ||
+ | "contact", | ||
+ | "where", | ||
+ | "Image", | ||
+ | "FlickrImage", | ||
+ | "subcat", | ||
+ | "Manual" | ||
+ | ] | ||
+ | } | ||
+ | </templatedata> | ||
+ | </noinclude> |
Latest revision as of 14:51, 4 July 2021
Usage
Copy and paste this in a new page to create a tool page that shows up in our tool list. fill out the fields the best you can, delete the lines for ones that don't apply
{{Equipment |owner = Owner of equipment |assetTag = Hive13 Asset Tag ID |donor = person who donated the equipment |model = Make/Model of equipment |arrived = When this thing first showed up |left = If the item has left, fill this in and the page will be switched to the OldEquipment category. |doesitwork = [Yes|No] Does this work or not |certification = [Yes|No] Do you need to be approved to use it |consumables = [Yes|No] Does this tool have consumables |contact = person to contact |where = where is it |FlickrImage = <flickr>5590121729|q|center</flickr> |Image = File:Image.jpg |subcat = General equipment type (Metalworking, Woodworking, CNC, etc) |Manual = Media:Manual.pdf }}
This template generates an equipment infobox.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Equipment owner | owner | The owner of this piece of equipment
| String | required |
Hive13 Asset Tag Number | assetTag | The tag ID on the Hive13 asset tag for this equipment, if any.
| String | suggested |
Equipment Donor | donor | The person who donated the equipment
| String | suggested |
Model Number | model | Model number of this equipment in manufacturer/model format
| String | suggested |
Date arrived | arrived | The date this tool arrived in mm/dd/yyyy format
| Date | suggested |
Date left | left | Fill this out if an item has left the hive
| Date | optional |
Does tool work? | doesitwork | Does this tool currently work?
| String | required |
Certification | certification | Whether or not this tool requires certification
| String | required |
Consumables | consumables | Does this piece of equipment have stocked consumables
| Boolean | optional |
Contact | contact | Who to contact for information
| Page | required |
Location of tool | where | Location of tool in the hive, see the [[Floorplan]]
| String | required |
Image | Image | Image of this equipment hosted on this wiki
| File | required |
Flickr Image | FlickrImage | Image of the equipment hosted on flickr rather than on the wiki
| String | optional |
Category | subcat | Equipment category
| String | suggested |
Manual | Manual | Manual for this piece of equipment
| File | suggested |