Difference between revisions of "Template:Calculate mass"
From Space Engineers Wiki
Vox Serico (talk | contribs) (Added alternate option "alt") |
Vox Serico (talk | contribs) (Removed 'alt' option. Added default for empty parameters) |
||
Line 1: | Line 1: | ||
{{#switch: {{{1|}}} | {{#switch: {{{1|}}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| s = | | s = | ||
{{calculate mass/calc | {{calculate mass/calc | ||
Line 65: | Line 44: | ||
| {{#if: {{#show:{{{2|}}} | ?lcomponent10 | limit=1 }} | {{get mass|c|{{#explode: {{#show:{{{2|}}} | ?lcomponent10 | limit=1 }} | , | 0 }} }} |}} | | {{#if: {{#show:{{{2|}}} | ?lcomponent10 | limit=1 }} | {{get mass|c|{{#explode: {{#show:{{{2|}}} | ?lcomponent10 | limit=1 }} | , | 0 }} }} |}} | ||
| {{#show: {{{2|}}} | ?lcomponent10amt}} }} | | {{#show: {{{2|}}} | ?lcomponent10amt}} }} | ||
+ | | #default= | ||
+ | {{calculate mass/calc | ||
+ | | {{#if: {{#show:{{FULLPAGENAME}}|?Component1}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component1#-}}}}|}} | ||
+ | | {{#show: {{FULLPAGENAME}}|?Component1Amount#-}} | ||
+ | | {{#if: {{#show:{{FULLPAGENAME}}|?Component2}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component2#-}}}}|}} | ||
+ | | {{#show: {{FULLPAGENAME}}|?Component2Amount#-}} | ||
+ | | {{#if: {{#show:{{FULLPAGENAME}}|?Component3}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component3#-}}}}|}} | ||
+ | | {{#show: {{FULLPAGENAME}}|?Component3Amount#-}} | ||
+ | | {{#if: {{#show:{{FULLPAGENAME}}|?Component4}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component4#-}}}}|}} | ||
+ | | {{#show: {{FULLPAGENAME}}|?Component4Amount#-}} | ||
+ | | {{#if: {{#show:{{FULLPAGENAME}}|?Component5}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component5#-}}}}|}} | ||
+ | | {{#show: {{FULLPAGENAME}}|?Component5Amount#-}} | ||
+ | | {{#if: {{#show:{{FULLPAGENAME}}|?Component6}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component6#-}}}}|}} | ||
+ | | {{#show: {{FULLPAGENAME}}|?Component6Amount#-}} | ||
+ | | {{#if: {{#show:{{FULLPAGENAME}}|?Component7}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component7#-}}}}|}} | ||
+ | | {{#show: {{FULLPAGENAME}}|?Component7Amount#-}} | ||
+ | | {{#if: {{#show:{{FULLPAGENAME}}|?Component8}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component8#-}}}}|}} | ||
+ | | {{#show: {{FULLPAGENAME}}|?Component8Amount#-}} | ||
+ | | {{#if: {{#show:{{FULLPAGENAME}}|?Component9}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component9#-}}}}|}} | ||
+ | | {{#show: {{FULLPAGENAME}}|?Component9Amount#-}} | ||
+ | | {{#if: {{#show:{{FULLPAGENAME}}|?Component10}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component10#-}}}}|}} | ||
+ | | {{#show: {{FULLPAGENAME}}|?Component10Amount#-}}}} | ||
}}<noinclude>[[Category:Templates]]</noinclude> | }}<noinclude>[[Category:Templates]]</noinclude> |
Revision as of 20:33, 1 April 2020
0