Template:ToolActions: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
ProcessControlURL converted to relative/local URL |
try to catch TrainingURL==None |
||
| Line 32: | Line 32: | ||
<th style="background: AliceBlue;"> |
<th style="background: AliceBlue;"> |
||
{{#if:{{{TrainingURL|}}} |
{{#if:{{{TrainingURL|}}} |
||
|{{#ifeq:{{{TrainingULR}}}|None |
|||
| ⚫ | |||
|No Training Required |
|||
| ⚫ | |||
}}<!-- END IFEQ TriningULR==None-->> |
|||
| [https://signupmonkey.ece.ucsb.edu/cgi-bin/users/request-training.cgi?tool_ID={{{toolid}}} Get Trained] |
| [https://signupmonkey.ece.ucsb.edu/cgi-bin/users/request-training.cgi?tool_ID={{{toolid}}} Get Trained] |
||
}} |
}} |
||
| Line 90: | Line 93: | ||
* '''ProcessControlURL''': (if applicable) URL to the Process Control wiki page. |
* '''ProcessControlURL''': (if applicable) URL to the Process Control wiki page. |
||
* '''ProceduresURL''': (if applicable) URL to the SOP's/Instructions wiki page. If omitted, it will assume the existence of and link to the section '''Operating Procedures''' on the tools' wiki page. |
* '''ProceduresURL''': (if applicable) URL to the SOP's/Instructions wiki page. If omitted, it will assume the existence of and link to the section '''Operating Procedures''' on the tools' wiki page. |
||
* '''TrainingURL''': (if applicable) URL to a Training Video or Training procedure wiki page. |
* '''TrainingURL''': (if applicable) URL to a Training Video or Training procedure wiki page. |
||
* * If omitted, it will go directly to the SUM "request training" page according to the specified toolid. |
|||
* * If you enter the value '''None''' this will display "No Training Required" |
|||
Revision as of 09:03, 6 December 2025

This template inserts a "Tool Actions" panel into a page, with various Buttons for SignUpMonkey actions such as (Report Tool Issue), (Maintenance Records) and links to (Process Control Data) wiki pages.
Copy/paste the following code to include this template in a page. Preferably inserted at the top of the page, right after {{tool2}}.
{{ToolActions
|toolid = 51 (from SignupMonkey)
|ProcessControlURL = (blank will omit this section)
|ProceduresURL = (blank will link to #Operating_Procedures
|TrainingURL = (blank will link to SignupMonkey Training Request)
}}
Replace the toolid with the number of the tool on SignupMonkey (last number in the URL for the tool), and replace/deleted the Training/Instructions/ProcessControl URL's or leave blank if they don't exist as wiki pages.
Options
You can add the following "arguments" in the template.
- Tool ID on SignupMonkey: The |toolid = argument will create a link to the Signup Monkey page for this tool. This is the number at the end of the url for a tool on SignupMonkey.
- ProcessControlURL: (if applicable) URL to the Process Control wiki page.
- ProceduresURL: (if applicable) URL to the SOP's/Instructions wiki page. If omitted, it will assume the existence of and link to the section Operating Procedures on the tools' wiki page.
- TrainingURL: (if applicable) URL to a Training Video or Training procedure wiki page.
- * If omitted, it will go directly to the SUM "request training" page according to the specified toolid.
- * If you enter the value None this will display "No Training Required"
Version
2025-12-05 (Demis): first version, HTML tables, conditionals for toolid etc.