Template:ToolActions: Difference between revisions

From UCSB Nanofab Wiki
Jump to navigation Jump to search
Content deleted Content added
No edit summary
font-size: larger
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| style="border: 2px solid; border-radius: 5px; padding: 5px; text-align: center; background: #fbfbfb;"
<table style="border: 2px solid; border-radius: 10px; padding: 5px; text-align: center; background: #fbfbfb;">
| style="padding: 5px;" |
<tr><td style="padding: 5px;" >
{| class="wikitable" style="margin: 0 auto; width: 100%;"
<table class="wikitable" style="margin: 0 auto; width: 100%;">
{{#if:{{{ProceduresURL|}}}|
!style="background: Aquamarine;" |[{{{InstructionsURL|{{PAGENAME}}}}} Instructions + Procedures]
<th style="background: Cornsilk; font-size: larger;">[{{{ProceduresURL}}} Instructions + Procedures]</th>
|}{{#if:{{{ProcessControlURL|}}}|
|<!-- ***IF NO ProceduresURL Provided*** -->
{{!}}-
<th style="background: Cornsilk; font-size: larger;">[[{{FULLPAGENAME}}#Operating_Procedures|Instructions + Procedures]]</th>
{{!}} style="padding: 5px;" {{!}}
}}
{{{!}} class="wikitable" style="margin: 0 auto; width: 100%;"
</table>
!style="background: Aquamarine;" {{!}}[{{{ProcessControlURL}}} Process Control Data]
{{#if:{{{ProcessControlURL|}}}|
{{!}}}
</td></tr><tr>
|}}
<td style="padding: 5px;">
<table class="wikitable" style="margin: 0 auto; width: 100%;">
<th style="background: Cornsilk; font-size: larger;"> [[{{{ProcessControlURL}}}|Process Control Data]]</th>
</tr></table>
|<!-- ***IF NO ProcessControlURL -->
}}
<hr style="margin-top: 15px;">
<hr style="margin-top: 15px;">
</td></tr>
|-
{{#if:{{{toolid|}}}|<!-- ***IF toolid is set*** -->
| style="padding: 5px;" |
{| class="wikitable" style="margin: 0 auto; width: 100%;"
<tr><td style="padding: 5px;" >
<table class="wikitable" style="margin: 0 auto; width: 100%;">
!style="background: AliceBlue;" |[https://signupmonkey.ece.ucsb.edu/cgi-bin/users/browse.cgi?tool_ID={{{toolid}}} Sign Up]
<th style="background: AliceBlue; font-size: larger;">[https://signupmonkey.ece.ucsb.edu/cgi-bin/users/browse.cgi?tool_ID={{{toolid}}} Sign Up]
|}
</th></table>
|-
</td></tr>
| style="padding: 5px;" |
|<!-- *** IF NO toolid*** -->
{| class="wikitable" style="margin: 0 auto; width: 100%;"
}}
!style="background: AliceBlue;" |[{{#if:{{{TrainingURL|}}}
<tr>
| {{{TrainingURL}}}
<td style="padding: 5px;" >
| https://signupmonkey.ece.ucsb.edu/cgi-bin/users/request-training.cgi?tool_ID={{{toolid}}}
<table class="wikitable" style="margin: 0 auto; width: 100%;">
}} Get Trained]
<th style="background: AliceBlue; font-size: larger;">
|}
{{#if:{{{TrainingURL|}}}
|-
|{{#ifeq:{{{TrainingURL}}}|None
| style="padding: 5px;" |
|No Training Required
{| class="wikitable" style="margin: 0 auto; width: 100%;"
|[[{{{TrainingURL}}}|Get Trained]]
!style="background: AliceBlue;" |[https://signupmonkey.ece.ucsb.edu/cgi-bin/users/view-tool-reports.cgi?tool_ID={{{toolid}}} Maintenance<br>Messages]
}}<!-- END IFEQ TrainingURL==None -->
|}
| [https://signupmonkey.ece.ucsb.edu/cgi-bin/users/request-training.cgi?tool_ID={{{toolid}}} Get Trained]
|-
}}
| style="padding: 5px;" |
</th></table>
{| class="wikitable" style="margin: 0 auto; width: 100%;"
</td></tr>
!style="background: AliceBlue;" |[https://signupmonkey.ece.ucsb.edu/cgi-bin/users/report-tool-issue.cgi?tool_ID={{{toolid}}} Report Issue]
{{#if:{{{toolid|}}}|<!-- ***IF toolid is set*** -->
|}
<tr>
|}
<td style="padding: 5px;" >
</includeonly><includeonly>[[category:Tools]][[Category:{{{type|NONE}}}]]<br></includeonly><noinclude>
<table class="wikitable" style="margin: 0 auto; width: 100%;">
<th style="background: AliceBlue; font-size: larger;">[https://signupmonkey.ece.ucsb.edu/cgi-bin/users/view-tool-reports.cgi?tool_ID={{{toolid}}} Maintenance<br>Messages]
</th></table>
</td></tr>
<tr>
<td style="padding: 5px;" >
<table class="wikitable" style="margin: 0 auto; width: 100%;">
<th style="background: AliceBlue; font-size: larger;">[https://signupmonkey.ece.ucsb.edu/cgi-bin/users/report-tool-issue.cgi?tool_ID={{{toolid}}} Report Issue]
</th></table>
</td></tr>
|<!-- *** IF NO toolid*** -->
<tr>
<td style="padding: 5px;" >
<table class="wikitable" style="margin: 0 auto; width: 100%;">
<th style="background: AliceBlue; font-size: larger;">No Signups Required
</th></table>
</td></tr>
}}
</table>
</includeonly><noinclude>


[[File:TOOL_actions_-_example_image.png|frameless|right|Example of a Tool's Actions Box generated by this "Tool" template.]]
[[File:TOOL_actions_-_example_image.jpg|thumb|right|Example of a ToolActions box generated by this template.]]


<br/><br/>
<br/><br/>
Line 47: Line 73:




Copy/paste the following code to include this template in a page. Preferably inserted at the top of the page.
Copy/paste the following code to include this template in a page. Preferably inserted at the top of the page, right after {{tl|tool2}}.


<div style="width: 70%;"><pre>
<div style="width: 70%;"><pre>
{{ToolActions
{{ToolActions
|toolid = 51 the Tool ID number from SignupMonkey URL
|toolid = 51 (from SignupMonkey)
|ProcessControlURL = (blank will omit this section)
|ProcessControlURL = https://wiki.nanofab.ucsb.edu/wiki/Stepper_3_(ASML_DUV)#Process_Control_Data
|InstructionsURL = https://wiki.nanofab.ucsb.edu/wiki/Stepper_3_(ASML_DUV)#Operating_Procedures
|ProceduresURL = (blank will link to #Operating_Procedures
|TrainingURL = (blank will link to SignupMonkey Training Request)
|TrainingURL = https://wiki.nanofab.ucsb.edu/wiki/Stepper_3_(ASML_DUV)#Video_Training
}}
}}
</pre></div>
</pre></div>
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.
</noinclude>
</noinclude>


Line 63: Line 91:
You can add the following "arguments" in the template.
You can add the following "arguments" in the template.
* '''Tool ID on SignupMonkey''': The '''<tt>|toolid = </tt>''' 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.
* '''Tool ID on SignupMonkey''': The '''<tt>|toolid = </tt>''' 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.
* '''ProcessControlURL''': (if applicable) URL to the Process Control wiki page.
* '''InstructionsURL''': (if applicable) URL to the SOP's/Instructions 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 the SOP's/Instructions wiki page. The value `selftrain` will display that the tool is self-train only (no training required). If omitted, it will go directly to the SUM "request training" 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 ==
== Version ==
2025-12-05 (Demis): first version.
2025-12-05 (Demis): first version, HTML tables, conditionals for toolid etc.


</noinclude>
</noinclude>

Latest revision as of 09:30, 6 December 2025


Example of a ToolActions box generated by this template.



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.