Template:ToolInfo: Difference between revisions
No edit summary |
No edit summary |
||
(52 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{| class="wikitable" style="float:right;clear:both;" | ||
{ | ! colspan="2" scope="col" | [[Name::{{{name}}}]] | ||
|- | |||
| colspan="2" style="text-align: center; border: none; font-size: smaller;" | [[Common Name::{{{common name|}}}]] | |||
|- | |||
| colspan="2" style="text-align: center; border: none;" | {{{image|}}} | |||
|- | |||
{{#if: {{{species|}}} | | |||
! scope="row" {{!}} Tool Species | |||
{{!}} [[In Tool Species::{{{species|}}}]] | |||
{{!}}- | |||
{{!}} colspan="2" {{!}} (Includes training and testing information.) | |||
{{!}}- | |||
}} | }} | ||
[[ | ! 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> | |||
}} | }} | ||
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 | |||||
|
When adding properties, please also add them to to Category:Tools when appropriate.
A template for a tool info box.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The tool's name | Line | required |
Common Name | common name | An alternate, often more friendly name | Line | optional |
Image | image | A picture of the tool | File | optional |
Tool Species | species | What class of tools does this tool belong to? | Page name | optional |
Make | make | The name of the tool's manufacturer | Line | suggested |
Model | model | The model/model number of the tool | Line | suggested |
Specs | specs | A list of links to specs pages or PDFs of manuals. Separate multiple entries by semicolons (;). | Content | optional |
Manual | manual | A list of links to manual pages or PDFs | Content | optional |
Requires Certification | certification | Does the tool require certification? Either a certification page, or the "No Certification Required" page
| Page name | required |
Optional Certification | optional certification | What other certifications does the tool have for more advanced usage? | Page name | optional |
In Shop | shop | What shop does the tool belong to? | Page name | required |
Asset Tag | asset tag | The asset number in the CMS inventory system. Separate multiple entries by semicolons (;).
| Line | suggested |
Allows Reservation | reservation | A link to the scheduler if the tool is reservable
| URL | optional |