Template:ToolInfo: Difference between revisions

From Claremont MakerSpace
No edit summary
No edit summary
 
(35 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="float:right"
<includeonly>{| class="wikitable" style="float:right;clear:both;"
! colspan="2" scope="col" | [[Name::{{{name}}}]]
! colspan="2" scope="col" | [[Name::{{{name}}}]]
|-
|-
Line 6: Line 6:
| colspan="2" style="text-align: center; border: none;" | {{{image|}}}
| colspan="2" style="text-align: center; border: none;" | {{{image|}}}
|-
|-
! Make
{{#if: {{{species|}}} |
! scope="row" {{!}} Tool Species
{{!}} [[In Tool Species::{{{species|}}}]]
{{!}}-
{{!}} colspan="2" {{!}} (Includes training and testing information.)
{{!}}-
}}
! scope="row" | Make
| [[Make::{{{make|}}}]]
| [[Make::{{{make|}}}]]
|-
|-
! Model
! scope="row" | Model
| [[Model::{{{model|}}}]]
| [[Model::{{{model|}}}]]
|-
|-
! Serial
! scope="row" | Specs
| [[Make::{{{serial|}}}]]
| {{#set:Specs={{{specs|}}}|+sep=;|template=SetTemplateOutputMultipleLines}}
|-
|-
! Manual
! scope="row" | Manual
| [[Make::{{{manual|}}}]]
| {{#set:Manual={{{manual|}}}|+sep=;|template=SetTemplateOutputMultipleLines}}
|-
|-
! Working
! scope="row" | Requires<br/>Certification
| [[Working::{{{working|Unknown}}}]]
|-
! Requires<br/>Certification
| [[Requires Certification::{{{certification|Unknown}}}]]
| [[Requires Certification::{{{certification|Unknown}}}]]
|-
|-
! In Shop
{{#if: {{{optional certification|}}} |
! scope="row" {{!}} Optional Certification(s)
{{!}} [[Has Optional Certification::{{{optional certification|}}}]]
{{!}}-
}}
{{#if: {{{reservation|}}} |
! scope="row" {{!}} Allows<br/>Reservation
{{!}} {{#set:Has Reservation URL={{{reservation|}}}}} [{{{reservation|}}} Go To Scheduler]
{{!}}-
}}
! scope="row" | In Shop
| [[In Shop::{{{shop}}}]]
| [[In Shop::{{{shop}}}]]
{{#if: {{{asset tag|}}} |
{{#set:Asset Tag={{{asset tag|}}}|+sep=;}}
{{!}}-
! colspan="2" scope="col" {{!}} Instances
{{!}}-
{{!}} colspan="2" style="padding: 0;" {{!}} {{#invoke:ToolInventoryData|ToolInstanceTable|{{{asset tag|}}}}}
| }}
|}[[Category:Tools]]</includeonly><noinclude>
|}[[Category:Tools]]</includeonly><noinclude>
{{Flag-TODO}}
{{ToolInfo
{{ToolInfo
  |name=<name>
  |name=<name>
  |common name=<common name>
  |common name=<common name>
  |image=<image>
  |image=<image>
|species=<species>
  |make=<make>
  |make=<make>
  |model=<model>
  |model=<model>
  |serial=<serial>
  |serial=<serial>
|asset tag=<asset tag>
  |specs=<specs>
  |specs=<specs>
  |manual=<manual>
  |manual=<manual>
|reservation=<reservation>
  |shop=<shop>
  |shop=<shop>
  |certification=<certification>
  |certification=<certification>
|working=<working>
}}
}}
When adding properties, please also add them to to [[:Category:Tools]] when appropriate.<templatedata>
When adding properties, please also add them to to [[:Category:Tools]] when appropriate.<templatedata>
Line 73: Line 95:
"type": "line",
"type": "line",
"suggested": true
"suggested": true
},
"serial": {
"label": "Serial",
"description": "The serial number(s) of the tool",
"type": "line"
},
},
"specs": {
"specs": {
"label": "Specs",
"label": "Specs",
"description": "A list of links to specs pages or PDFs",
"description": "A list of links to specs pages or PDFs of manuals. Separate multiple entries by semicolons (;).",
"type": "content"
"type": "content"
},
},
Line 88: Line 105:
"description": "A list of links to manual pages or PDFs",
"description": "A list of links to manual pages or PDFs",
"type": "content"
"type": "content"
},
"working": {
"label": "Working",
"description": "Is the tool currently working? (Yes or No)",
"type": "line",
"default": "Unknown",
"suggested": true
},
},
"certification": {
"certification": {
"label": "Requires Certification",
"label": "Requires Certification",
"description": "Does the tool require certification? (Yes or No)",
"description": "Does the tool require certification? Either a certification page, or the \"No Certification Required\" page",
"type": "line",
"type": "wiki-page-name",
"default": "Unknown",
"default": "Unknown",
"suggested": true
"required": true
},
},
"shop": {
"shop": {
Line 108: Line 118:
"type": "wiki-page-name",
"type": "wiki-page-name",
"required": true
"required": true
},
"asset tag": {
"label": "Asset Tag",
"description": "The asset number in the CMS inventory system. Separate multiple entries by semicolons (;).",
"example": "CMS00001",
"type": "line",
"suggested": true
},
"reservation": {
"label": "Allows Reservation",
"description": "A link to the scheduler if the tool is reservable",
"example": "https://claremontmakerspace.org/membersonly/scheduler/?cat_id=2&staff_id=15",
"type": "url"
},
"species": {
"label": "Tool Species",
"description": "What class of tools does this tool belong to?",
"type": "wiki-page-name"
},
"optional certification": {
"label": "Optional Certification",
"description": "What other certifications does the tool have for more advanced usage?",
"type": "wiki-page-name"
}
}
}
},
"paramOrder": [
"name",
"common name",
"image",
"species",
"make",
"model",
"specs",
"manual",
"certification",
"optional certification",
"shop",
"asset tag",
"reservation"
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 15:12, 28 October 2022

<name>
<common name>
<image>
Tool Species <species>
(Includes training and testing information.)
Make <make>
Model <model>
Specs
<specs>
Manual
<manual>
Requires
Certification
<certification>
Allows
Reservation
[<reservation> Go To Scheduler]
In Shop <shop>
Instances
Asset Tag Status
<asset tag> <asset tag> Error retrieving status

When adding properties, please also add them to to Category:Tools when appropriate.

A template for a tool info box.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The tool's name

Linerequired
Common Namecommon name

An alternate, often more friendly name

Lineoptional
Imageimage

A picture of the tool

Fileoptional
Tool Speciesspecies

What class of tools does this tool belong to?

Page nameoptional
Makemake

The name of the tool's manufacturer

Linesuggested
Modelmodel

The model/model number of the tool

Linesuggested
Specsspecs

A list of links to specs pages or PDFs of manuals. Separate multiple entries by semicolons (;).

Contentoptional
Manualmanual

A list of links to manual pages or PDFs

Contentoptional
Requires Certificationcertification

Does the tool require certification? Either a certification page, or the "No Certification Required" page

Default
Unknown
Page namerequired
Optional Certificationoptional certification

What other certifications does the tool have for more advanced usage?

Page nameoptional
In Shopshop

What shop does the tool belong to?

Page namerequired
Asset Tagasset tag

The asset number in the CMS inventory system. Separate multiple entries by semicolons (;).

Example
CMS00001
Linesuggested
Allows Reservationreservation

A link to the scheduler if the tool is reservable

Example
https://claremontmakerspace.org/membersonly/scheduler/?cat_id=2&staff_id=15
URLoptional