Template:Infobox/sandbox: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(this should trim the name of the image before replacing " " with "_")
m (make the trimming clearer)
Line 1: Line 1:
{{#seo:
{{#seo:
|og:image={{#if:{{{image|}}}|https://wiki.factorio.com/images/{{ucfirst:{{#replace:{{#if:{{{image}}}|{{{image}}}{{#ifeq:{{#explode:{{{image}}}|.|1}}||.png}}}}| |_}}}}|https://wiki.factorio.com/images/{{ucfirst:{{#replace:{{ConvertName|{{{icon|{{No_language_suffix/No_namespace}}}}}}}}}| |_}}.png}}
|og:image={{#if:{{{image|}}}|https://wiki.factorio.com/images/{{ucfirst:{{#replace:{{Trim|{{{image}}}{{#ifeq:{{#explode:{{{image}}}|.|1}}||.png}}}}| |_}}}}|https://wiki.factorio.com/images/{{ucfirst:{{#replace:{{ConvertName|{{{icon|{{No_language_suffix/No_namespace}}}}}}}}}| |_}}.png}}
|description={{#if: {{{recipe|}}}|Recipe: {{#replace:{{#replace:{{{recipe}}}|+|and}}|,|:}}|}}{{#if: {{{cost|}}}|{{#if: {{{recipe|}}}|.}} Cost: {{#replace:{{#replace:{{{cost}}}|+|and}}|,|:}}{{#if:{{{cost-multiplier|}}}| x {{{cost-multiplier}}}|}}|}}{{#if: {{{required-technologies|}}}|. Required technologies: {{#replace:{{{required-technologies}}}|+|and}}|}}{{#if: {{{consumers|}}}|. Consumed by: {{#replace:{{{consumers}}}|+|and}}|}}{{#if: {{{effects|}}}|. Effects: {{#replace:{{{effects}}}|+|and}}|}}
|description={{#if: {{{recipe|}}}|Recipe: {{#replace:{{#replace:{{{recipe}}}|+|and}}|,|:}}|}}{{#if: {{{cost|}}}|{{#if: {{{recipe|}}}|.}} Cost: {{#replace:{{#replace:{{{cost}}}|+|and}}|,|:}}{{#if:{{{cost-multiplier|}}}| x {{{cost-multiplier}}}|}}|}}{{#if: {{{required-technologies|}}}|. Required technologies: {{#replace:{{{required-technologies}}}|+|and}}|}}{{#if: {{{consumers|}}}|. Consumed by: {{#replace:{{{consumers}}}|+|and}}|}}{{#if: {{{effects|}}}|. Effects: {{#replace:{{{effects}}}|+|and}}|}}
}}
}}

Revision as of 18:35, 10 August 2017


Infobox/sandbox

Machine

Recipe

Time.png
0.5
+
Iron gear wheel.png
15
+
Electronic circuit.png
15
+
Advanced circuit.png
1
+
Fast inserter.png
1

Total raw

Time.png
43.5
+
Iron plate.png
55
+
Copper plate.png
32
+
Plastic bar.png
2

Recipe

Time.png
5
+
Iron gear wheel.png
15
+
Electronic circuit.png
15
+
Advanced circuit.png
1
+
Fast inserter.png
1

Total raw

Time.png
400
+
Iron plate.png
55
+
Copper plate.png
32
+
Plastic bar.png
2

Health

40

Required technologies

Stack inserter (research).png

Produced by

Player.png
Assembling machine 2.png
Assembling machine 3.png

Consumed by

Stack filter inserter.png