Difference between revisions of "Template:Recipe item/sandbox"
From Captain of Industry Wiki
(Created page with "<includeonly><!-- -->{{#if: {{{Name|}}}|<!-- ** Set template style and default value of arguments** --><templatestyles src="Template:Recipe draw/styles.css" /><!-- -->{{#vardefine: image_plus | 24x24px }}<!-- -->{{#vardefine: image_size| 48x48px }}<!-- ** Draw plus icon ** -->{{#ifeq: {{lc:{{{Plus|}}} }} | yes |<!-- --><div class="block">{{#var: image_plus}}</div>|<!-- -->{{#ifeq: {{lc:{{{Plus|no}}} }} | no | |<!-- --><div...") |
(Supported "?" as quantity) |
||
Line 2: | Line 2: | ||
-->{{#if: {{{Name|}}}|<!-- | -->{{#if: {{{Name|}}}|<!-- | ||
** Draw plus icon ** | ** Draw plus icon ** | ||
-->{{#ifeq: {{lc:{{{Plus|}}} }} | yes |<!-- | -->{{#ifeq: {{lc:{{{Plus|}}} }} | yes |<!-- | ||
--><div class="block">{{#var: | --><div class="block">{{#var: img_plus}}</div>|<!-- | ||
-->{{#ifeq: {{lc:{{{Plus|no}}} }} | no | |<!-- | -->{{#ifeq: {{lc:{{{Plus|no}}} }} | no | |<!-- | ||
--><div class="block">{{{Plus}}}</div><!-- | --><div class="block">{{{Plus}}}</div><!-- | ||
Line 20: | Line 14: | ||
** Draw item and throughput | ** Draw item and throughput | ||
--><div class="block"><!-- | --><div class="block"><!-- | ||
--><div class="upper">{{#if: {{{Unit|}}} | | {{{ | --><div class="upper">{{#if: {{{Unit|}}} | | {{{Quantity|0}}} }}</div><!-- | ||
-->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: | -->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: imgsz_reg}}}}}{{!}}link={{{Name}}}]]<!-- | ||
-->{{#if: {{{Unit|}}} | <!-- | -->{{#if: {{{Unit|}}} | <!-- | ||
--><div class="lower">{{{ | --><div class="lower">{{{Quantity|}}} {{{Unit|}}}</div>|<!-- | ||
--><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{ | --><div class="lower blue"><!-- | ||
-->{{#ifeq: {{{Quantity|}}} | ? | ? | {{#expr: 60/{{{Time|1}}}*{{{Quantity|0}}} round 2 }} }} <!-- | |||
--></div><!-- | |||
-->}}<!-- | -->}}<!-- | ||
--></div><!-- | --></div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Recipe item/sandbox|Name=Steam hi| | <templatestyles src="Template:Recipe draw/styles.css" /> | ||
{{Recipe item/sandbox|Name=Cement| | {{#vardefine: img_plus | [[File:Plus.png|24x24px]] }} | ||
{{Recipe item/sandbox|Name=Electricity| | {{#vardefine: imgsz_reg | 48x48px }} | ||
<div class="recipe-wrapper> | |||
{{Recipe item/sandbox|Name=Steam hi|Quantity=2|Time=10}} | |||
{{Recipe item/sandbox|Name=Cement|Quantity=2|Time=10|Plus=yes}} | |||
{{Recipe item/sandbox|Name=Electricity|Quantity=20|Unit=KW|Plus=yes}} | |||
{{Recipe item/sandbox|Name=Iron Scrap|Quantity=?|Time=10|Plus=yes}} | |||
</div> | |||
</noinclude> | </noinclude> |
Revision as of 22:10, 2 October 2022