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
No edit summary
Line 1: Line 1:
<includeonly>{{#ifeq:{{{2|}}}|rcp|{{#invoke:Transcluder|main|Template:ChemRecipe/List#{{{1}}}|only=paragraphs|paragraphs=1}}|
<includeonly>{{#if:{{{2|}}}|{{Tooltip|[[#{{{1|Need Name}}}|{{{1|Need Name}}}]]|{{#invoke:Transcluder|main|Template:ChemRecipe/List#{{{1|TEMPLATE}}}|only=paragraphs|paragraphs=1}}}}|
{{!}}-
{{!}}-
! {{anchor|{{{1|Need name}}}}}[[#{{{1|Need Name}}}|{{{1|Need Name}}}]]
! {{anchor|{{{1|Need name}}}}}[[#{{{1|Need Name}}}|{{{1|Need Name}}}]]
Line 11: Line 11:


<pre>
<pre>
<nowiki>{{ChemRecipe|name|rcp}}</nowiki>
<nowiki>{{ChemRecipe|name|recursiverecipe}}</nowiki>
</pre>
</pre>


Line 18: Line 18:


* '''name''': The name of the recipe. Automatically creates an anchor and pulls data from [[Template:ChemRecipe/List]].
* '''name''': The name of the recipe. Automatically creates an anchor and pulls data from [[Template:ChemRecipe/List]].
* '''rcp''': Write this to specifically pulls the recipe of the named Chemical.
* '''recursiverecipe''': Writing anything here writes the chemical name, make it a link and gives it a tooltip.




== Exemple ==
== Exemple ==


With the rcp parameter
With the recursive recipe parameter
<pre>
<pre>
<nowiki>{{ChemRecipe|Welding Fuel|rcp}}</nowiki>
<nowiki>{{ChemRecipe|Welding Fuel|recipe}}</nowiki>
</pre>
</pre>


{{ChemRecipe|Welding Fuel|rcp}}
{{ChemRecipe|Welding Fuel|recipe}}
 


Without the rcp parameter, meant to be used in a table:
Without the rcp parameter, meant to be used in a table:

Revision as of 20:07, 4 December 2023


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.

{{ChemRecipe|name|recursiverecipe}}

Meaning

Self explanatory, with a special arguments.

  • name: The name of the recipe. Automatically creates an anchor and pulls data from Template:ChemRecipe/List.
  • recursiverecipe: Writing anything here writes the chemical name, make it a link and gives it a tooltip.


Exemple

With the recursive recipe parameter

{{ChemRecipe|Welding Fuel|recipe}}

Welding FuelLua error in package.lua at line 80: module 'Module:TNT' not found.


Without the rcp parameter, meant to be used in a table:

{{ChemRecipe|Welding Fuel}}
{{ChemRecipe|Oil}}
Hover over the names of the reagents in the recipe column to see their chemical formulas!
Name Formula Effects Metabolizing Rate Overdose
Welding Fuel Lua error in package.lua at line 80: module 'Module:TNT' not found. Lua error in package.lua at line 80: module 'Module:TNT' not found. Lua error in package.lua at line 80: module 'Module:TNT' not found. Lua error in package.lua at line 80: module 'Module:TNT' not found.
Oil #B67823FF None Mix
1 part Welding fuel
1 part Carbon
1 part Hydrogen
0.5 u/s