Template:Surgery: Difference between revisions
GreytideSkye (talk | contribs) (GreytideSkye moved page Template:Surgery to Template:SurgerySteps: I'm so awful I'm double-nesting templates) Tag: New redirect |
GreytideSkye (talk | contribs) (There is no god here but me. Behold, a nested Surgery template.) Tag: Removed redirect |
||
| Line 1: | Line 1: | ||
<onlyinclude> | |||
{{{surrounder|==}}}{{{1|ERROR: No surgery name.}}}{{{surrounder|==}}} | |||
{{SurgeryTarget|{{{2}}}}} | |||
{{{3|No description given.}}} | |||
{{SurgerySteps|{{{4|}}} | |||
|{{{5|}}} | |||
|{{{6|}}} | |||
|{{{7|}}} | |||
|{{{8|}}} | |||
|{{{9|}}} | |||
|{{{10|}}} | |||
|{{{11|}}} | |||
|{{{12|}}} | |||
|{{{13|}}} | |||
|{{{14|}}} | |||
|{{{15|}}} | |||
|{{{16|}}} | |||
|{{{17|}}} | |||
|{{{18|}}} | |||
|{{{19|}}} | |||
|{{{20|}}} | |||
|{{{21|}}} | |||
|{{{22|}}} | |||
|{{{23|}}} | |||
|{{{24|}}}}}</onlyinclude> | |||
---- | |||
=Usage= | |||
The Surgery template takes these parameters, in order: | |||
* Name of the surgery | |||
* The limb to target (head, eyes, etc.) in lowercase. See [[Template:SurgeryTarget]]. | |||
* Description of the surgery | |||
Then, alternating pairs of: | |||
* A surgery_step, must be a subtemplate of [[Template:SurgeryStep]] (e.g. [[Template:SurgeryStep/mechanic_wrench]]). | |||
* 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 <nowiki>==</nowiki>. If '''surrounder''' is defined, that won't happen and instead the surgery name will be surrounded by this variable, on each side. I recommend <nowiki>'''</nowiki> 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. | |||
{{Surgery|Chest Deflation|chest|This chest surgery means you have big honking chest and you honk it.|mechanic_wrench|honk it.|pry_off_plating}} | |||
{{Surgery|ii|eyes|eyy|mechanic_wrench}} | |||
{{Surgery|Spiderize Me, Cap'n!|leg|This one should look pretty broken, since it just demonstrates the surrounder can be put halfway in arguments without soiling the order|mechanic_wrench|leg them off at the pass.|pry_off_plating||pry_off_plating|cram that leg off|surrounder=!!|pry_off_plating|}} | |||
{{Surgery|Arm Surgery|arm|eyy|mechanic_wrench}} | |||
Revision as of 06:48, 14 July 2025
ERROR: No surgery name.
Invalid Surgery Location: {{{2}}}
No description given.
ERROR: NO SURGERY STEP 1.| Procedure |
Usage
The Surgery template takes these parameters, in order:
- Name of the surgery
- The limb to target (head, eyes, etc.) in lowercase. See Template:SurgeryTarget.
- Description of the surgery
Then, alternating pairs of:
- A surgery_step, must be a subtemplate of Template:SurgeryStep (e.g. Template:SurgeryStep/mechanic_wrench).
- 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
This chest surgery means you have big honking chest and you honk it.
| Procedure | |
Step 1: Wrench: honk it.
|
|
Step 2: Crowbar: pry off plating. |
ii
eyy
| Procedure | |
Step 1: Wrench: wrench bolts. |
!!Spiderize Me, Cap'n!!! Invalid Surgery Location: leg
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: leg them off at the pass.
|
|
Step 2: Crowbar: pry off plating. |
|
Step 3: Crowbar: cram that leg off
|
|
Step 4: Crowbar: pry off plating. |
Arm Surgery
Invalid Surgery Location: arm
eyy
| Procedure | |
Step 1: Wrench: wrench bolts. |



