Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ChemRecipe: Difference between revisions

Template page
mNo edit summary
(Remove transcluder and tooltips until it isn't a mess.)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{2|}}}|rcp|{{#invoke:Transcluder|main|Template:ChemRecipe/List#{{{1}}}|only=paragraphs|paragraphs=1}}|
<includeonly>|-
{{!}}-
! {{anchor|{{{1|Need name}}}}}<span style="background-color:#ACEAEF; color:{{{2|}}}">▮</span> [[#{{{1|Need Name}}}|{{{1|Need Name}}}]]
! {{anchor|{{{1|Need name}}}}}[[#{{{1|Need Name}}}|{{{1|Need Name}}}]]
| {{{3|None}}}
{{!}} {{#invoke:Transcluder|main|Template:ChemRecipe/List#{{{1}}}|only=paragraphs|paragraphs=1}}
| {{{4|None}}}
{{!}} {{#invoke:Transcluder|main|Template:ChemRecipe/List#{{{1}}}|only=paragraphs|paragraphs=2}}
| {{{5|0.5 u/s}}}</includeonly><noinclude>
{{!}} {{#invoke:Transcluder|main|Template:ChemRecipe/List#{{{1}}}|only=paragraphs|paragraphs=3}}
{{!}} {{#invoke:Transcluder|main|Template:ChemRecipe/List#{{{1}}}|only=paragraphs|paragraphs=4}}}}</includeonly><noinclude>


== How to use ==
== How to use ==
This template is meant to be entirely only used in the chemical and cooking pages. It is purely to help editors add new lines to the table without being a mess.
This template is meant to be entirely only used in the Chemistry and Drink page. It is purely to help editors add new lines to the table without being too much of a mess, if needed.


<pre>
<pre>
<nowiki>{{ChemRecipe|name|rcp}}</nowiki>
<nowiki>{{ChemRecipe|name|effect|rate}}</nowiki>
</pre>
</pre>


== Meaning ==
== Meaning ==
Self explanatory, with a special arguments.
Self explanatory, with some special arguments.


* '''name''': The name of the recipe. Automatically creates an anchor and pulls data from [[Template:ChemRecipe/List]].
* '''name''': The name of the reagent. Automatically creates an anchor for this recipe.
* '''rcp''': Write this to specifically pulls the recipe of the named Chemical.
* '''color''': The color of the reagent.
* '''recipe''': The chemical's recipe. Default is None.
* '''effect''': What the chemical does per units for damage and seconds for the rest. Default is None.
* '''rate''': How much unit is metabolised per seconds. Default is 0.5 u/s.


If you want to write custom effect, you need to also write the recipe for it.


== Exemple ==
== Exemple ==


With the rcp parameter
{| class="wikitable" style="width:100%; text-align:left; border: 2px solid black; cellspacing=0; cellpadding=2;"
<pre>
|+ Hover over the names of the reagents in the recipe column to see their chemical formulas!
<nowiki>{{ChemRecipe|Welding Fuel|rcp}}</nowiki>
! scope='col' class='sortable'  style='width:20%; background-color:#CEA10540; border: 1px solid black;'| Name
</pre>
! scope='col' class='unsortable' style='width:15%; background-color:#CEA10540; border: 1px solid black;'| Formula
! scope='col' class='unsortable' style='width:50%; background-color:#CEA10540; border: 1px solid black;'| Effects
! scope="col" class='unsortable' style="width:15%; background-color:#CEA10540; border: 1px solid black;"| Metabolism Rate


{{ChemRecipe|Welding Fuel|rcp}}
{{ChemRecipe|Space glue|#434B4DFF}}


Without the rcp parameter, meant to be used in a table:
{{ChemRecipe|Copper}}


<pre>
{{ChemRecipe|Ash}}
<nowiki>{{ChemRecipe|Welding Fuel}}
{{ChemRecipe|Oil}}</nowiki>
</pre>
 
{| class="wikitable sortable" style="width:100%; text-align:left; border: 2px solid black; cellspacing=0; cellpadding=2;"
|+ Hover over the names of the reagents in the recipe column to see their chemical formulas!
! scope="col" class="sortable"  style="width:15%; background-color:#CEA10540; border: 1px solid black;"| Name
! scope="col" class="unsortable" style="width:25%; background-color:#CEA10540; border: 1px solid black;"| Formula
! scope="col" class="unsortable" style="width:37.5%; background-color:#CEA10540; border: 1px solid black;"| Effects
! scope="col" class="unsortable" style="width:15%; background-color:#CEA10540; border: 1px solid black;"| Metabolizing Rate
! scope="col" class="unsortable" style="width:7.5%; background-color:#CEA10540; border: 1px solid black;"| Overdose


{{ChemRecipe|Welding Fuel}}
{{ChemRecipe|Arithrazine|#434B4DFF|Find it somewhere}}


{{ChemRecipe|Oil}}
{{ChemRecipe|Bicaridine|#C6C8CCFF||Deals 1 {{DMG|Poison}} per second<br>Increases flammability}}


|}
|}

Latest revision as of 07:26, 24 December 2023


How to use

This template is meant to be entirely only used in the Chemistry and Drink page. It is purely to help editors add new lines to the table without being too much of a mess, if needed.

{{ChemRecipe|name|effect|rate}}

Meaning

Self explanatory, with some special arguments.

  • name: The name of the reagent. Automatically creates an anchor for this recipe.
  • color: The color of the reagent.
  • recipe: The chemical's recipe. Default is None.
  • effect: What the chemical does per units for damage and seconds for the rest. Default is None.
  • rate: How much unit is metabolised per seconds. Default is 0.5 u/s.

If you want to write custom effect, you need to also write the recipe for it.

Exemple

Hover over the names of the reagents in the recipe column to see their chemical formulas!
Name Formula Effects Metabolism Rate
Space glue None None 0.5 u/s
Copper None None 0.5 u/s
Ash None None 0.5 u/s
Arithrazine Find it somewhere None 0.5 u/s
Bicaridine Deals 1 Poison per second
Increases flammability
0.5 u/s