Template:ToolInfo: Difference between revisions

From Claremont MakerSpace
No edit summary
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 6: Line 6:
| colspan="2" style="text-align: center; border: none;" | {{{image|}}}
| colspan="2" style="text-align: center; border: none;" | {{{image|}}}
|-
|-
! scope="row | 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|}}}]]
|-
|-
! scope="row | Model
! scope="row" | Model
| [[Model::{{{model|}}}]]
| [[Model::{{{model|}}}]]
|-
|-
! scope="row | Serial
! scope="row" | Specs
| {{#set:Serial={{{serial|}}}|+sep=;|template=SetTemplateOutputMultipleLines}}
| {{#set:Specs={{{specs|}}}|+sep=;|template=SetTemplateOutputMultipleLines}}
|-
! scope="row | Asset Tag
| {{#set:Asset Tag={{{asset tag|}}}|+sep=;}}{{#show: {{FULLPAGENAME}} |?Asset Tag|valuesep=<br>}}
|-
|-
! scope="row | Manual
! scope="row" | Manual
| {{#set:Manual={{{manual|}}}|+sep=;|template=SetTemplateOutputMultipleLines}}
| {{#set:Manual={{{manual|}}}|+sep=;|template=SetTemplateOutputMultipleLines}}
|-
|-
! scope="row | Working
! scope="row" | Requires<br/>Certification
| [[Working::{{{working|Unknown}}}]]
|-
! scope="row | Requires<br/>Certification
| [[Requires Certification::{{{certification|Unknown}}}]]
| [[Requires Certification::{{{certification|Unknown}}}]]
|-
|-
! scope="row | 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>
{{ToolInfo
{{ToolInfo
Line 34: Line 52:
  |common name=<common name>
  |common name=<common name>
  |image=<image>
  |image=<image>
|species=<species>
  |make=<make>
  |make=<make>
  |model=<model>
  |model=<model>
Line 40: Line 59:
  |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 76: Line 95:
"type": "line",
"type": "line",
"suggested": true
"suggested": true
},
"serial": {
"label": "Serial",
"description": "The serial number(s) of the tool. Separate multiple entries by semicolons (;).",
"type": "line"
},
},
"specs": {
"specs": {
Line 91: 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": {
Line 118: Line 125:
"type": "line",
"type": "line",
"suggested": true
"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