Template:Infobox/sandbox: Difference between revisions
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:{{ | |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 |
|
+ + + + → | |
Total raw |
|
+ + + |
Recipe |
|
+ + + + → | |
Total raw |
|
+ + + |
Health |
40 |
Required technologies |
|
Produced by |
|
Consumed by |
|