Template:SurgerySteps: Difference between revisions

From Nova Sector 13
Jump to navigation Jump to search
m (GreytideSkye moved page Template:Surgery to Template:SurgerySteps: I'm so awful I'm double-nesting templates)
(if you're going to copy something in two places you should change it in both places)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Heatsink Maintenance (Lung Surgery) ==
There is presently no surgery to implant something into the chest cavity of a synthetic patient. Implanters still work as normal.
[[File:Hud target torso.png]] '''Target: Chest'''
above it
<onlyinclude>{|
<onlyinclude>{|
| style="width: 450px;" |'''Procedure'''
| style="width: 450px;" |'''Procedure'''
|-
|-
{{#if:{{{1|}}}|{{!}}Step 1: {{SurgeryStep/{{{1}}}}}
{{#if:{{{1|}}}| {{#if:{{{2|}}} | {{!}}Step 1: {{SurgeryStep/{{{1}}}|{{{2|i lied there is no 2}}}}}
{{!}}-|}}
{{!}}-|
{{#if:{{{2|}}}|{{!}}Step 2: {{SurgeryStep/{{{2}}}}}
  {{!}}Step 1: {{SurgeryStep/{{{1}}}}}
{{!}}-|}}
}}
{{#if:{{{3|}}}|{{!}}Step 3: {{SurgeryStep/{{{3}}}}}
{{!}}-|
{{!}}-|}}
<font size=+2 color=red>ERROR: NO SURGERY STEP 1. {{{2|}}}</font>
{{#if:{{{4|}}}|{{!}}Step 4: {{SurgeryStep/{{{4}}}}}
{{!}}-}}
{{!}}-|}}
{{#if:{{{3|}}}| {{#if:{{{4|}}} | {{!}}Step 2: {{SurgeryStep/{{{3}}}|{{{4|i lied there is no 4}}}}}
{{#if:{{{5|}}}|{{!}}Step 5: {{SurgeryStep/{{{5}}}}}
{{!}}-|
{{!}}-|}}
{{!}}Step 2: {{SurgeryStep/{{{3}}}}}
{{#if:{{{6|}}}|{{!}}Step 6: {{SurgeryStep/{{{6}}}}}
}}
{{!}}-|}}
{{!}}-}}
{{#if:{{{7|}}}|{{!}}Step 7: {{SurgeryStep/{{{7}}}}}
{{#if:{{{5|}}}| {{#if:{{{6|}}} | {{!}}Step 3: {{SurgeryStep/{{{5}}}|{{{6|i lied there is no 6}}}}}
{{!}}-|}}
{{!}}- |
{{#if:{{{8|}}}|{{!}}Step 8: {{SurgeryStep/{{{8}}}}}
{{!}}Step 3: {{SurgeryStep/{{{5}}}}}
{{!}}-|}}
}}
{{!}}-}}
{{#if:{{{7|}}}| {{#if:{{{8|}}} | {{!}}Step 4: {{SurgeryStep/{{{7}}}|{{{8|}}}}}
{{!}}- |
  {{!}}Step 4: {{SurgeryStep/{{{7}}}}}  
}}
{{!}}- }}
{{#if:{{{9|}}}| {{#if:{{{10|}}} | {{!}}Step 5: {{SurgeryStep/{{{9}}}|{{{10|}}}}}
{{!}}- |
  {{!}}Step 5: {{SurgeryStep/{{{9}}}}}  
}}
{{!}}- }}
{{#if:{{{11|}}}| {{#if:{{{12|}}} | {{!}}Step 6: {{SurgeryStep/{{{11}}}|{{{12|}}}}}
{{!}}- |
  {{!}}Step 6: {{SurgeryStep/{{{11}}}}}  
}}
{{!}}- }}
{{#if:{{{13|}}}| {{#if:{{{14|}}} | {{!}}Step 7: {{SurgeryStep/{{{13}}}|{{{14|}}}}}
{{!}}- |
  {{!}}Step 7: {{SurgeryStep/{{{13}}}}}  
}}
{{!}}- }}
{{#if:{{{15|}}}| {{#if:{{{16|}}} | {{!}}Step 8: {{SurgeryStep/{{{15}}}|{{{16|}}}}}
{{!}}- |
  {{!}}Step 8: {{SurgeryStep/{{{15}}}}}
}}
{{!}}- }}
{{#if:{{{17|}}}| {{#if:{{{18|}}} | {{!}}Step 9: {{SurgeryStep/{{{17}}}|{{{18|}}}}}
{{!}}- |
  {{!}}Step 9: {{SurgeryStep/{{{17}}}}}
}}
{{!}}- }}
{{#if:{{{19|}}}| {{#if:{{{20|}}} | {{!}}Step 10: {{SurgeryStep/{{{19}}}|{{{20|}}}}}
{{!}}- |
  {{!}}Step 10: {{SurgeryStep/{{{19}}}}}
}}
{{!}}- }}
|}</onlyinclude>
|}</onlyinclude>
eyy lmao
----


The Surgery template takes a target, a
=Usage=
(Above should show ERROR: No surgery step 1, don't worry!)
 
The SurgerySteps template takes a carefully curated list of up to surgery_steps, which should each be a subpage of [[Template:SurgeryStep]], e.g. [[Template:SurgeryStep/mechanic_wrench]].
 
The arguments alternate between a SurgeryStep, and a string replacing the default text for the surgery step. Leave the description argument blank if you want to use the default text.
 
(Note that a few SurgerySteps do not support custom names, though I don't see a reason why they shouldn't.)
 
Thus, a simple two-step surgery consisting of a default mechanic_open and a custom-named pry_off_plating called "yank them open." would look like
 
<code><nowiki>{{SurgerySteps|mechanic_open||pry_off_plating|yank them open.}}</nowiki></code>
 
which would render as:
 
{{SurgerySteps|mechanic_open||pry_off_plating|yank them open.}}
 
If you're going to stretch this across multiple lines, break the line '''before''' the pipe (the | symbol) instead of immediately after.
 
<code><nowiki>{{</nowiki>SurgerySteps|mechanic_open|custom open text|
 
pry_off_plating|yank them open.<nowiki>}}</nowiki></code> will fail.
 
<code><nowiki>{{</nowiki>SurgerySteps|mechanic_open|custom open text
 
|pry_off_plating|yank them open.<nowiki>}}</nowiki></code> will succeed.
 
 
= Tests =
 
<!-- https://github.com/NovaSector/NovaSector/tree/master/modular_nova/modules/synths/code/surgery -->
{{Surgery|Organ Manipulation|This surgery covers operations to remove/insert organs (brain, heart, appendix), '''lizard/cat tails''', and cyber implants.<br>The body part to target depends on which procedure you want to do.<br>See below for details about each procedure.|various|mechanic_open||open_hatch||mechanic_unwrench|unwrench bolts. '''(Head/Chest only)'''|prepare_electronics||manipulate_organs/internal/mechanic|remove something.|hands|insert something.|mechanic_wrench|wrench bolts. '''(Head/Chest only)'''|mechanic_close}}
 
Test of using all parameters. Step 3 should be the default text:


get wrenched get wrenched get wrenched
{{SurgerySteps|mechanic_wrench|a|pry_off_plating|b|mechanic_wrench||mechanic_wrench|d|pry_off_plating|e|mechanic_wrench|f|mechanic_wrench|g|pry_off_plating|h|mechanic_wrench|i|mechanic_wrench|j|pry_off_plating|k}}
{{Surgery|mechanic_wrench|mechanic_wrench|mechanic_wrench|extract_implant|intentionally red link|mechanic_wrench|mechanic_wrench|mechanic_wrench|mechanic_wrench|mechanic_wrench|mechanic_wrench}}

Latest revision as of 07:12, 14 July 2025

ERROR: NO SURGERY STEP 1.
Procedure

Usage

(Above should show ERROR: No surgery step 1, don't worry!)

The SurgerySteps template takes a carefully curated list of up to surgery_steps, which should each be a subpage of Template:SurgeryStep, e.g. Template:SurgeryStep/mechanic_wrench.

The arguments alternate between a SurgeryStep, and a string replacing the default text for the surgery step. Leave the description argument blank if you want to use the default text.

(Note that a few SurgerySteps do not support custom names, though I don't see a reason why they shouldn't.)

Thus, a simple two-step surgery consisting of a default mechanic_open and a custom-named pry_off_plating called "yank them open." would look like

{{SurgerySteps|mechanic_open||pry_off_plating|yank them open.}}

which would render as:

Procedure
Step 1: Screwdriver Screwdriver: unscrew the shell. Scalpel(75%) Kitchen Knife (50%) Any other sharp item (10%)
Step 2: Crowbar Crowbar: yank them open. Hemostat (10%)

If you're going to stretch this across multiple lines, break the line before the pipe (the | symbol) instead of immediately after.

{{SurgerySteps|mechanic_open|custom open text|

pry_off_plating|yank them open.}} will fail.

{{SurgerySteps|mechanic_open|custom open text

|pry_off_plating|yank them open.}} will succeed.


Tests

Organ Manipulation

This surgery covers operations to remove/insert organs (brain, heart, appendix), lizard/cat tails, and cyber implants.
The body part to target depends on which procedure you want to do.
See below for details about each procedure.

Multiple locations

Procedure
Step 1: Screwdriver Screwdriver: unscrew the shell. Scalpel(75%) Kitchen Knife (50%) Any other sharp item (10%)
Step 2: Hands Hands: open the hatch.
Step 3: Wrench Wrench: unwrench bolts. (Head/Chest only) Retractor (10%)
Step 4: Multitool Multitool: prepare electronics. Hemostat (10%)
Step 5: Crowbar Crowbar: remove something. Hemostat (100%) Fork (35%)
Step 6: Hands Hands: insert something.
Step 7: Wrench Wrench: wrench bolts. (Head/Chest only) Retractor (10%)
Step 8: Screwdriver Screwdriver: close the shell. Scalpel(75%) Kitchen Knife (50%) Any other sharp item (10%)

Test of using all parameters. Step 3 should be the default text:

Procedure
Step 1: Wrench Wrench: a Retractor (10%)
Step 2: Crowbar Crowbar: b Hemostat (10%)
Step 3: Wrench Wrench: wrench bolts. Retractor (10%)
Step 4: Wrench Wrench: d Retractor (10%)
Step 5: Crowbar Crowbar: e Hemostat (10%)
Step 6: Wrench Wrench: f Retractor (10%)
Step 7: Wrench Wrench: g Retractor (10%)
Step 8: Crowbar Crowbar: h Hemostat (10%)
Step 9: Wrench Wrench: i Retractor (10%)
Step 10: Wrench Wrench: j Retractor (10%)