Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tool: Difference between revisions

Template page
Created page with " <noinclude> <templatedata> { "params": { "photo": { "description": "photo of the tool, if available", "type": "wiki-file-name", "default": "File:NF no photo.png", "autovalue": "File:NF no photo.png", "required": true, "suggested": true }, "link to manual": { "label": "Link to manual", "type": "url", "suggested": true }, "related tools": {}, "trainers": {}, "model": { "label": "Model", "description": "Manufacturer m..."
 
No edit summary
 
(101 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>== Usage ==
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>
and then "edit with form"


<noinclude>
See [[:Template:{{PAGENAME}}/Details]] for more info.
 
Edit pages with [[Form:Tool]].
 
==Parameters==
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"room": {
"description": "which room at North Forge",
"label": "Room",
"type": "wiki-page-name",
"suggested": true,
"required": true
},
"photo": {
"photo": {
"description": "photo of the tool, if available",
"description": "Photo of the tool, if available",
"type": "wiki-file-name",
"type": "wiki-file-name",
"default": "[[File:NF no photo.png]]",
"autovalue": "[[File:NF no photo.png]]",
"required": true,
"suggested": true
"suggested": true
},
},
"link to manual": {
"link to manual": {
"description": "link to the manual for the tool, ideally on the manufacturer's site",
"label": "Link to manual",
"label": "Link to manual",
"type": "url",
"type": "url",
"suggested": true
"suggested": true
},
},
"related tools": {},
"related tools": {
"trainers": {},
"description": "links to related tool or jig pages (ie. not just similar tools)",
"label": "Related tools",
"type": "content",
"suggested": true
},
"trainers": {
"label": "Trainer(s)",
"description": "Semi-colon separated list of trainers",
"type": "content",
"suggested": true
},
"knowledge keepers": {
"label": "Knowledge keeper(s)",
"description": "Semi-colon separated list of people who know much about the tool but are not trainers",
"type": "content",
"suggested": true
},
"model": {
"model": {
"label": "Model",
"label": "Model",
Line 25: Line 53:
"suggested": true
"suggested": true
},
},
"training docs": {},
"training docs": {
"SDS link": {},
"label": "Training document(s)",
"SWP link": {},
"description": "bullet list of internal or external links to training documents",
"consumables": {},
"type": "content",
"suggested": true
},
"SDS link": {
"label": "SDS document",
"description": "link to portal file for this tool's SDS document",
"type": "url",
"suggested": true
},
"SWP link": {
"label": "Safe Work Procedure",
"description": "link to portal file for this tool's Safe Work Procedure document",
"type": "url",
"suggested": true
},
"work envelope": {
"work envelope": {
"aliases": [
"aliases": [
"max capacity"
"max capacity"
],
],
"description": "max size of work, material restrictions, etc",
"label": "Work envelope/max capacity",
"label": "Work envelope/max capacity",
"type": "string",
"type": "content",
"suggested": true
},
"consumables": {
"description": "consumables specific to this machine and whether North Forge provides and/or bills for them",
"label": "consumables",
"type": "content",
"suggested": true
"suggested": true
},
"other_details": {
"description": "Other things people might want to use about this tool, e.g. where to get supplies in Winnipeg or a link to the manufatcurer's site; free content. ",
"type": "content"
},
"image_map_coordinates": {
"description": "coordinates for placing the tool on image map. ",
"type": "content"
},
"equipment_type": {
"description": "tool or infrastructure ",
"type": "content"
}
}
},
},
"description": "This is the template for tool pages. ",
"description": "This is the template for tool pages.  It is used on tool pages, facilitated by Form:Tool.",
"paramOrder": [
"paramOrder": [
"room",
"photo",
"photo",
"model",
"model",
Line 46: Line 108:
"related tools",
"related tools",
"trainers",
"trainers",
"knowledge keepers",
"training docs",
"training docs",
"SDS link",
"SDS link",
"SWP link",
"SWP link",
"consumables"
        "consumables",
]
"other_details",
        "image_map_coordinates",
        "equipment_type"
],
"format": "block"
}
}
</templatedata>
</templatedata>
</noinclude>
 
==Cargo Declaration==
{{#cargo_declare:
_table=tool
|photo = page
|room = page
|model = wikitext string
|work_envelope = wikitext string
|link_to_manual = URL
|related_tools = List (;) of page
|trainers = wikitext string
|knowledge_keepers = wikitext string
|training_docs = wikitext string
|SDS_link = URL
|SWP_link = URL
|consumables = wikitext string
|image_map_coordinates = coordinates
|equipment_type = wikitext string
}}
</noinclude><!--
-->
<tabber>
|-|General=
<table class="infobox">
<tr class="infobox-header">
<th colspan="2">[[Tools]]</th>
</tr>
<tr>
<td colspan="2" class="infobox-image">
[[File:{{{photo|NF no photo.png}}}|300px|Picture of {{PAGENAME}} in the fablab]]
</td>
</tr>
<th class="infobox-label">Model</th>
<td>{{{model|}}}</td>
</tr>
<tr>
</tr>
<th class="infobox-label">[[Rooms|Room]]</th>
<td>{{#ifexist: {{{room}}} | [[{{{room}}}]] | No room assigned }}</td>
</tr>
<tr>
<th class="infobox-label">Work envelope/max capacity</th>
<td>
{{{work envelope|{{{max capacity|}}}}}}</td>
</tr>
<tr>
<th class="infobox-label">Link to manual</th>
<td>{{{link to manual|}}}</td>
</tr>
<tr>
<th class="infobox-label">Related [[tools]]</th>
<td>{{#invoke:String |  splitAndLink  | source={{{related tools|}}} }}</td>
</tr>
<tr>
<th class="infobox-label">[[Trainers | Trainer(s)]]</th>
<td>{{{trainers|}}}</td>
</tr>
<tr>
<th class="infobox-label">[[Training Sessions]]</th>
<td>{{#cargo_query:
|tables=training_session
|fields=training_session._pageName
|where=tools holds "{{PAGENAME}}"
|order by=training_session._pageName
|default=no training sessions include this tool
|format=ul
}}
</td>
</tr>
<tr>
<th class="infobox-label">Knowledge keeper(s)</th>
<td>{{{knowledge keepers|}}}</td>
</tr>
<tr>
<th class="infobox-label">Training document(s)</th>
<td>{{{training docs|}}}</td>
</tr>
<tr>
<th class="infobox-label">[[Material Safety Data Sheet (MSDS)]]</th>
<td>{{{SDS link|}}}</td>
</tr>
<tr>
<th class="infobox-label">Safe Work Procedure</th>
<td>{{{SWP link|}}}</td>
</tr>
<tr>
<th class="infobox-label">Consumables</th>
<td>{{{consumables|}}}</td>
</tr>
<tr>
<th class="infobox-label">[[Software]]</th>
<td>{{#cargo_query:
|tables=software
|fields=_pageName
|where=associated_tools holds "{{PAGENAME}}"
|order by=_pageName
|default=this machine has no software listed
|format=ul
}}</td>
</tr>
<tr>
<th class="infobox-label">Equipment type</th>
<td>{{{equipment_type|tool}}}</td>
</tr>
</table>
 
{{Collapsable | always = [[{{{room}}}/Precautions | {{{room}}} Precautions]] apply |
full = {{Room Preamble | {{{room}}} }}
{{:{{{room}}}/Precautions}}
}}
 
{{{other details|}}}
<!--
-->
|-|Instructions =
{{#ifexist::Instructions:{{PAGENAME}}
|''edit these instructions at [[Instructions:{{PAGENAME}}]]'' <br><br>
{{:Instructions:{{PAGENAME}}}}
| [[:Instructions:{{PAGENAME}}]] doesn't exist yet }}
<!--
-->
</tabber>
<!--
--><includeonly><!--
-->__NOCACHE__<!--
-->{{#cargo_store:
equipment_type={{{equipment_type|tool}}}
}}<!--
-->[[Category:Tool]]<!--
-->{{#default_form:Tool}}<!--
--></includeonly>

Latest revision as of 10:25, 2024 September 13

Usage

{{Tool}}

and then "edit with form"

See Template:Tool/Details for more info.

Edit pages with Form:Tool.

Parameters

This is the template for tool pages. It is used on tool pages, facilitated by Form:Tool.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Roomroom

which room at North Forge

Page namerequired
photophoto

Photo of the tool, if available

Filesuggested
Modelmodel

Manufacturer model name/number

Stringsuggested
Work envelope/max capacitywork envelope max capacity

max size of work, material restrictions, etc

Contentsuggested
Link to manuallink to manual

link to the manual for the tool, ideally on the manufacturer's site

URLsuggested
Related toolsrelated tools

links to related tool or jig pages (ie. not just similar tools)

Contentsuggested
Trainer(s)trainers

Semi-colon separated list of trainers

Contentsuggested
Knowledge keeper(s)knowledge keepers

Semi-colon separated list of people who know much about the tool but are not trainers

Contentsuggested
Training document(s)training docs

bullet list of internal or external links to training documents

Contentsuggested
SDS documentSDS link

link to portal file for this tool's SDS document

URLsuggested
Safe Work ProcedureSWP link

link to portal file for this tool's Safe Work Procedure document

URLsuggested
consumablesconsumables

consumables specific to this machine and whether North Forge provides and/or bills for them

Contentsuggested
other_detailsother_details

Other things people might want to use about this tool, e.g. where to get supplies in Winnipeg or a link to the manufatcurer's site; free content.

Contentoptional
image_map_coordinatesimage_map_coordinates

coordinates for placing the tool on image map.

Contentoptional
equipment_typeequipment_type

tool or infrastructure

Contentoptional

Cargo Declaration

This template defines the table "tool". View table.

Tools

Picture of Tool in the fablab

Model
Room No room assigned
Work envelope/max capacity
Link to manual
Related tools
Trainer(s)
Training Sessions no training sessions include this tool
Knowledge keeper(s)
Training document(s)
Material Safety Data Sheet (MSDS)
Safe Work Procedure
Consumables
Software this machine has no software listed
Equipment type tool
[[{{{room}}}/Precautions | {{{room}}} Precautions]] apply   

You will be working in the [[ {{{room}}} ]]. In order to keep safe from hazards created by you or other workers using any of the tools in this room, the following precautions apply in addition to any other precautions: {{:{{{room}}}/Precautions}}