Template:ToolInfo: Difference between revisions

From Claremont MakerSpace
No edit summary
No edit summary
 
(46 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{InfoBox
<includeonly>{| class="wikitable" style="float:right;clear:both;"
|name={{{name}}}
! colspan="2" scope="col" | [[Name::{{{name}}}]]
|subname=[[Common Name::{{{common name|}}}]]
|-
|image={{{image|}}}
| colspan="2" style="text-align: center; border: none; font-size: smaller;" | [[Common Name::{{{common name|}}}]]
|contents=
|-
  {{#set:
| colspan="2" style="text-align: center; border: none;" | {{{image|}}}
  |Make={{{make|}}} | template=SetPropTableRow
|-
  |Model={{{model|}}}
{{#if: {{{species|}}} |
  |Serial={{{serial|}}}
! scope="row" {{!}} Tool Species
  |Specs={{{specs|}}}
{{!}} [[In Tool Species::{{{species|}}}]]
  |Manual={{{manual|}}}
{{!}}-
  }}
{{!}} colspan="2" {{!}} (Includes training and testing information.)
  {{SetPropTableRow|property=In Shop|value=[[In Shop::{{{shop}}}]]}}
{{!}}-
}}[[Category:Tools]]</includeonly><noinclude>
}}
{{Flag-TODO}}
! scope="row" | Make
| [[Make::{{{make|}}}]]
|-
! scope="row" | Model
| [[Model::{{{model|}}}]]
|-
! scope="row" | Specs
| {{#set:Specs={{{specs|}}}|+sep=;|template=SetTemplateOutputMultipleLines}}
|-
! scope="row" | Manual
| {{#set:Manual={{{manual|}}}|+sep=;|template=SetTemplateOutputMultipleLines}}
|-
! scope="row" | Requires<br/>Certification
| [[Requires Certification::{{{certification|Unknown}}}]]
|-
{{#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}}}]]
{{#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>
{{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>
}}
}}
A template for tool info box. Add added properties to [[:Category:Tools]] when appropriate.
When adding properties, please also add them to to [[:Category:Tools]] when appropriate.<templatedata>
</noinclude>
{
"description": "A template for a tool info box.",
"format": "block",
"params": {
"name": {
"label": "Name",
"description": "The tool's name",
"type": "line",
"required": true
},
"common name": {
"label": "Common Name",
"description": "An alternate, often more friendly name",
"type": "line"
},
"image": {
"label": "Image",
"description": "A picture of the tool",
"type": "wiki-file-name"
},
"make": {
"label": "Make",
"description": "The name of the tool's manufacturer",
"type": "line",
"suggested": true
},
"model": {
"label": "Model",
"description": "The model/model number of the tool",
"type": "line",
"suggested": true
},
"specs": {
"label": "Specs",
"description": "A list of links to specs pages or PDFs of manuals. Separate multiple entries by semicolons (;).",
"type": "content"
},
"manual": {
"label": "Manual",
"description": "A list of links to manual pages or PDFs",
"type": "content"
},
"certification": {
"label": "Requires Certification",
"description": "Does the tool require certification? Either a certification page, or the \"No Certification Required\" page",
"type": "wiki-page-name",
"default": "Unknown",
"required": true
},
"shop": {
"label": "In Shop",
"description": "What shop does the tool belong to?",
"type": "wiki-page-name",
"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>

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