Difference between revisions of "Template:Calculate integrity"

From Space Engineers Wiki
Jump to: navigation, search
m (Undo revision 23777 by Vox Serico (talk) Broke it.)
(Replaced "alt" option with default for empty parameter.)
Line 1: Line 1:
 
{{#switch: {{{1|}}}
 
{{#switch: {{{1|}}}
| alt =
 
{{calculate mass/calc
 
| {{#if: {{#show:{{{2|}}}|?Component1|link=none}} | {{#show:{{#show:{{{2|}}}|?Component1|link=none}}|?cintegrity# }}|}}
 
| {{#show: {{{2|}}} | ?Component1Amount|link=none}}
 
| {{#if: {{#show:{{{2|}}}|?Component2|link=none}} | {{#show:{{#show:{{{2|}}}|?Component2|link=none}}|?cintegrity# }}|}}
 
| {{#show: {{{2|}}} | ?Component2Amount|link=none}}
 
| {{#if: {{#show:{{{2|}}}|?Component3|link=none}} | {{#show:{{#show:{{{2|}}}|?Component3|link=none}}|?cintegrity# }}|}}
 
| {{#show: {{{2|}}} | ?Component3Amount|link=none}}
 
| {{#if: {{#show:{{{2|}}}|?Component4|link=none}} | {{#show:{{#show:{{{2|}}}|?Component4|link=none}}|?cintegrity# }}|}}
 
| {{#show: {{{2|}}} | ?Component4Amount|link=none}}
 
| {{#if: {{#show:{{{2|}}}|?Component5|link=none}} | {{#show:{{#show:{{{2|}}}|?Component5|link=none}}|?cintegrity# }}|}}
 
| {{#show: {{{2|}}} | ?Component5Amount|link=none}}
 
| {{#if: {{#show:{{{2|}}}|?Component6|link=none}} | {{#show:{{#show:{{{2|}}}|?Component6|link=none}}|?cintegrity# }}|}}
 
| {{#show: {{{2|}}} | ?Component6Amount|link=none}}
 
| {{#if: {{#show:{{{2|}}}|?Component7|link=none}} | {{#show:{{#show:{{{2|}}}|?Component7|link=none}}|?cintegrity# }}|}}
 
| {{#show: {{{2|}}} | ?Component7Amount|link=none}}
 
| {{#if: {{#show:{{{2|}}}|?Component8|link=none}} | {{#show:{{#show:{{{2|}}}|?Component8|link=none}}|?cintegrity# }}|}}
 
| {{#show: {{{2|}}} | ?Component8Amount|link=none}}
 
| {{#if: {{#show:{{{2|}}}|?Component9|link=none}} | {{#show:{{#show:{{{2|}}}|?Component9|link=none}}|?cintegrity# }}|}}
 
| {{#show: {{{2|}}} | ?Component9Amount|link=none}}
 
| {{#if: {{#show:{{{2|}}}|?Component10|link=none}} | {{#show:{{#show:{{{2|}}}|?Component10|link=none}}|?cintegrity# }}|}}
 
| {{#show: {{{2|}}} | ?Component10Amount|link=none}} }}
 
 
| s =  
 
| s =  
 
{{calculate mass/calc
 
{{calculate mass/calc
Line 66: Line 44:
 
| {{#if: {{#show:{{{2|}}} | ?lcomponent10 | limit=1 }} | {{#show: {{#show:{{{2|}}} | ?lcomponent10 | limit=1 }} | ?cintegrity# }} |}}
 
| {{#if: {{#show:{{{2|}}} | ?lcomponent10 | limit=1 }} | {{#show: {{#show:{{{2|}}} | ?lcomponent10 | limit=1 }} | ?cintegrity# }} |}}
 
| {{#show: {{{2|}}} | ?lcomponent10amt}} }}
 
| {{#show: {{{2|}}} | ?lcomponent10amt}} }}
 +
| #default=
 +
{{calculate mass/calc
 +
| {{#if: {{#show:{{FULLPAGENAME}}|?Component1}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component1#-}}|?cintegrity# }}|}}
 +
| {{#show: {{FULLPAGENAME}} | ?Component1Amount#-}}
 +
| {{#if: {{#show:{{FULLPAGENAME}}|?Component2}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component2#-}}|?cintegrity# }}|}}
 +
| {{#show: {{FULLPAGENAME}} | ?Component2Amount#-}}
 +
| {{#if: {{#show:{{FULLPAGENAME}}|?Component3}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component3#-}}|?cintegrity# }}|}}
 +
| {{#show: {{FULLPAGENAME}} | ?Component3Amount#-}}
 +
| {{#if: {{#show:{{FULLPAGENAME}}|?Component4}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component4#-}}|?cintegrity# }}|}}
 +
| {{#show: {{FULLPAGENAME}} | ?Component4Amount#-}}
 +
| {{#if: {{#show:{{FULLPAGENAME}}|?Component5}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component5#-}}|?cintegrity# }}|}}
 +
| {{#show: {{FULLPAGENAME}} | ?Component5Amount#-}}
 +
| {{#if: {{#show:{{FULLPAGENAME}}|?Component6}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component6#-}}|?cintegrity# }}|}}
 +
| {{#show: {{FULLPAGENAME}} | ?Component6Amount#-}}
 +
| {{#if: {{#show:{{FULLPAGENAME}}|?Component7}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component7#-}}|?cintegrity# }}|}}
 +
| {{#show: {{FULLPAGENAME}} | ?Component7Amount#-}}
 +
| {{#if: {{#show:{{FULLPAGENAME}}|?Component8}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component8#-}}|?cintegrity# }}|}}
 +
| {{#show: {{FULLPAGENAME}} | ?Component8Amount#-}}
 +
| {{#if: {{#show:{{FULLPAGENAME}}|?Component9}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component9#-}}|?cintegrity# }}|}}
 +
| {{#show: {{FULLPAGENAME}} | ?Component9Amount#-}}
 +
| {{#if: {{#show:{{FULLPAGENAME}}|?Component10}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component10#-}}|?cintegrity# }}|}}
 +
| {{#show: {{FULLPAGENAME}} | ?Component10Amount#-}} }}
 
}}<noinclude>[[Category:Templates]]</noinclude>
 
}}<noinclude>[[Category:Templates]]</noinclude>

Revision as of 20:43, 1 April 2020

0