Template:SurgeryStep: Difference between revisions

From Skyrat
Jump to navigation Jump to search
New Template format, because the code for surgeries uses references to steps and the wiki is just copy-pasting the same snippets
 
m 3 revisions imported
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Woah! You shouldn't be seeing this. Notify [[User:GreytideSkye|GreytideSkye]] ([[User talk:GreytideSkye|talk]]) 23:49, 16 November 2023 (UTC) where this is being shown, unless it's at Template:SurgeryStep.
Woah! You shouldn't be seeing this. Notify [[User:GreytideSkye|GreytideSkye]] ([[User talk:GreytideSkye|talk]]) 23:49, 16 November 2023 (UTC) where this is being shown, unless it's at Template:SurgeryStep.
<noinclude>


For reference, steps come from places like [https://github.com/Skyrat-SS13/Skyrat-tg/blob/master/modular_skyrat/modules/synths/code/surgery/mechanic_steps.dm].
For reference, steps come from places like [https://github.com/Skyrat-SS13/Skyrat-tg/blob/master/modular_skyrat/modules/synths/code/surgery/mechanic_steps.dm].


<noinclude>{{SurgeryStep/doc}}[[Category:Recursive template]]</noinclude>
For code parity, I'm naming these templates as they are named in the code, e.g. Unscrew Shell is /datum/surgery_step/mechanic_open in [https://github.com/Skyrat-SS13/Skyrat-tg/blob/92746e61f44a8ebd821c76d35e5a4e89d827af0f/code/modules/surgery/mechanic_steps.dm#L3] so it will be here, [[Template:SurgeryStep/mechanic_open]].
 
So the Surgery pages use an unformatted table, where the first 2 columns are the "normal" procedure steps ("Procedure") and the last column is a free-for-all "Ghetto Analogues" wherein you post <pre>Image (chance%) Image (chance%)</pre> with no commas or anything. Actually, the second column is always unused and is there just for formatting.
 
The first column is in the format <pre>Step 1: Image '''Toolname''': step description.</pre>
 
The width of the table is inconsistent, [[Guide_to_synthetic_surgery]] uses 450px, [[Surgery]] uses 400px. I like 450px better.
 
I'm going to experiment to see if I can make the template have the columns without the formatting, but, honestly, I think it's going to be necessary to do a two-step.
 
[https://wiki.skyrat13.space/index.php?search=Template%3ASurgeryStep%2F&title=Special%3ASearch&profile=default&fulltext=1 Search for SurgerySteps]
 
{{SurgeryStep/mechanic_open|skeleton}}
 
{{SurgeryStep/doc}}[[Category:Recursive template]]</noinclude>

Latest revision as of 22:42, 9 April 2024

Woah! You shouldn't be seeing this. Notify GreytideSkye (talk) 23:49, 16 November 2023 (UTC) where this is being shown, unless it's at Template:SurgeryStep.


For reference, steps come from places like [1].

For code parity, I'm naming these templates as they are named in the code, e.g. Unscrew Shell is /datum/surgery_step/mechanic_open in [2] so it will be here, Template:SurgeryStep/mechanic_open.

So the Surgery pages use an unformatted table, where the first 2 columns are the "normal" procedure steps ("Procedure") and the last column is a free-for-all "Ghetto Analogues" wherein you post

Image (chance%) Image (chance%)

with no commas or anything. Actually, the second column is always unused and is there just for formatting. The first column is in the format

Step 1: Image '''Toolname''': step description.

The width of the table is inconsistent, Guide_to_synthetic_surgery uses 450px, Surgery uses 400px. I like 450px better.

I'm going to experiment to see if I can make the template have the columns without the formatting, but, honestly, I think it's going to be necessary to do a two-step.

Search for SurgerySteps

Screwdriver Screwdriver: skeleton.||Scalpel(75%) Kitchen Knife (50%) Any other sharp item (10%)

Template:SurgeryStep/doc