Template:Surgery: Difference between revisions

From Nova Sector 13
Jump to navigation Jump to search
(There is no god here but me. Behold, a nested Surgery template.)
Tag: Removed redirect
(flipped 2 arguments around because the existing page looks like that.)
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
{{{surrounder|==}}}{{{1|ERROR: No surgery name.}}}{{{surrounder|==}}}
{{{surrounder|==}}}{{{1|ERROR: No surgery name.}}}{{{surrounder|==}}}
{{SurgeryTarget|{{{2}}}}}
{{{2|No description given.}}}
 
{{SurgeryTarget|{{{3}}}}}
{{{3|No description given.}}}
{{SurgerySteps|{{{4|}}}
{{SurgerySteps|{{{4|}}}
|{{{5|}}}
|{{{5|}}}
Line 32: Line 31:


* Name of the surgery
* Name of the surgery
* Description of the surgery


* The limb to target (head, eyes, etc.) in lowercase. See [[Template:SurgeryTarget]].
* The limb to target (head, eyes, etc.) in lowercase. See [[Template:SurgeryTarget]].
* Description of the surgery


Then, alternating pairs of:
Then, alternating pairs of:

Revision as of 06:52, 14 July 2025

ERROR: No surgery name.

No description given. Invalid Surgery Location: {{{3}}}

ERROR: NO SURGERY STEP 1.
Procedure

Usage

The Surgery template takes these parameters, in order:

  • Name of the surgery
  • Description of the surgery

Then, alternating pairs of:

  • A custom description for that surgery step which replaces the default text. Leave it blank to use the default description (you want to do this most of the time).

See Template:SurgerySteps for more specifics.

Optionally, named parameters: surrounder: By default, the template makes the surgery name be a Level 2 Heading, by surrounding it with ==. If surrounder is defined, that won't happen and instead the surgery name will be surrounded by this variable, on each side. I recommend ''' to bold the text. I can't promise that you can make the name be surrounded by nothing without MediaWiki thinking there's no parameter so it should use the default behavior.

and yes surrounder is a dumb name, it's 3am c'mon.


Test cases

Below are several tests of various surgery locations.


Chest Deflation

chest Invalid Surgery Location: This chest surgery means you have big honking chest and you honk it.

Procedure
Step 1: Wrench Wrench: honk it. Retractor (10%)
Step 2: Crowbar Crowbar: pry off plating. Hemostat (10%)


ii

eyes Invalid Surgery Location: eyy

Procedure
Step 1: Wrench Wrench: wrench bolts. Retractor (10%)

!!Spiderize Me, Cap'n!!! leg Invalid Surgery Location: This one should look pretty broken, since it just demonstrates the surrounder can be put halfway in arguments without soiling the order

Procedure
Step 1: Wrench Wrench: leg them off at the pass. Retractor (10%)
Step 2: Crowbar Crowbar: pry off plating. Hemostat (10%)
Step 3: Crowbar Crowbar: cram that leg off Hemostat (10%)
Step 4: Crowbar Crowbar: pry off plating. Hemostat (10%)

Arm Surgery

arm Invalid Surgery Location: eyy

Procedure
Step 1: Wrench Wrench: wrench bolts. Retractor (10%)