No edit summary |
(Make this template able to pull recipe only) |
||
Line 1: | Line 1: | ||
<includeonly>|- | <includeonly>{{#ifeq:{{{2|}}}|rcp|{{#invoke:Transcluder|main|Template:ChemRecipe/List#{{{1}}}|only=paragraphs|paragraphs=1}}| | ||
{{!}}- | |||
! {{anchor|{{{1|Need name}}}}}[[#{{{1|Need Name}}}|{{{1|Need Name}}}]] | ! {{anchor|{{{1|Need name}}}}}[[#{{{1|Need Name}}}|{{{1|Need Name}}}]] | ||
{{!}} {{#invoke:Transcluder|main|Template:ChemRecipe/List#{{{1}}}|only=paragraphs|paragraphs=1}} | |||
{{!}} {{#invoke:Transcluder|main|Template:ChemRecipe/List#{{{1}}}|only=paragraphs|paragraphs=2}} | |||
{{!}} {{#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 == | ||
Line 10: | Line 11: | ||
<pre> | <pre> | ||
<nowiki>{{ChemRecipe|name}}</nowiki> | <nowiki>{{ChemRecipe|name|rcp}}</nowiki> | ||
</pre> | </pre> | ||
== Meaning == | == Meaning == | ||
Self explanatory, with | Self explanatory, with a special arguments. | ||
* '''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. | |||
== Exemple == | == Exemple == | ||
With the rcp parameter | |||
<pre> | |||
<nowiki>{{ChemRecipe|Welding Fuel|rcp}}</nowiki> | |||
</pre> | |||
{{ChemRecipe|Welding Fuel|rcp}} | |||
Without the rcp parameter, meant to be used in a table: | |||
<pre> | |||
<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;" | {| class="wikitable sortable" style="width:100%; text-align:left; border: 2px solid black; cellspacing=0; cellpadding=2;" |
Revision as of 18:56, 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|rcp}}
Meaning
Self explanatory, with a special arguments.
- 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.
Exemple
With the rcp parameter
{{ChemRecipe|Welding Fuel|rcp}}
Lua 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}}
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 |