Difference between revisions of "Template:Equipment"

From Hive13 Wiki
Jump to navigation Jump to search
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 Loaner of equipment
+
|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:0px; padding:1em; text-align:absmiddle; float:right; clear:right;"
+
<includeonly>
! align="absmiddle" style="border:solid #aaa 1px; background-color:#11BB11" | Hive13 Equipment
+
{| 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 }}
 
|-
 
|-
| align="absmiddle" style="background-color:#77FF77" | [[Equipment|List of All Documented 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]]
 +
}}
 
|-
 
|-
| align="absmiddle" | http://chart.apis.google.com/chart?chs=150x150&cht=qr&chld=H%7C0&chl={{fullurl:{{FULLPAGENAMEE}}}}&.png
+
| '''Owner/Loaner:''' {{{owner}}}
 
|-
 
|-
| '''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.

Template parameters

ParameterDescriptionTypeStatus
Equipment ownerowner

The owner of this piece of equipment

Default
Hive13
Example
Hive13
Stringrequired
Hive13 Asset Tag NumberassetTag

The tag ID on the Hive13 asset tag for this equipment, if any.

Example
HV0001
Stringsuggested
Equipment Donordonor

The person who donated the equipment

Example
John Doe
Stringsuggested
Model Numbermodel

Model number of this equipment in manufacturer/model format

Example
brother/pe-150
Stringsuggested
Date arrivedarrived

The date this tool arrived in mm/dd/yyyy format

Example
12/18/2015
Datesuggested
Date leftleft

Fill this out if an item has left the hive

Example
12/18/2015
Dateoptional
Does tool work?doesitwork

Does this tool currently work?

Default
Yes
Example
Yes/No/Partially
Stringrequired
Certificationcertification

Whether or not this tool requires certification

Default
No
Example
yes/no
Stringrequired
Consumablesconsumables

Does this piece of equipment have stocked consumables

Default
Yes
Example
Yes
Booleanoptional
Contactcontact

Who to contact for information

Example
Commonly area warden or owner of tool
Pagerequired
Location of toolwhere

Location of tool in the hive, see the [[Floorplan]]

Example
1D
Stringrequired
ImageImage

Image of this equipment hosted on this wiki

Example
File:Image.jpg
Filerequired
Flickr ImageFlickrImage

Image of the equipment hosted on flickr rather than on the wiki

Example
<flickr>5590121729|q|center</flickr>
Stringoptional
Categorysubcat

Equipment category

Example
Metalworking, Woodworking, CNC, Electronics, DigitalFabrication or blank for general/uncategorized
Stringsuggested
ManualManual

Manual for this piece of equipment

Example
Media:Manual.pdf
Filesuggested