Difference between revisions of "Template:Calculate integrity"

From Space Engineers Wiki
Jump to: navigation, search
(Removed "alt" option. Added default for empty parameter.)
m (Changed default to accept any page with matching parameters)
 
(5 intermediate revisions by the same user not shown)
Line 43: Line 43:
 
| {{#show: {{{2|}}} | ?lcomponent9amt}}
 
| {{#show: {{{2|}}} | ?lcomponent9amt}}
 
| {{#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=
 
| #default=
 
{{calculate mass/calc
 
{{calculate mass/calc
| {{#if: {{#show:{{FULLPAGENAME}}|?Component1}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component1#-}}}}|}}
+
| {{#if: {{#show:{{FULLPAGENAME}}|?Component1#-}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component1#-}}|?MaxIntegrity#-}}}}
| {{#show: {{FULLPAGENAME}}|?Component1Amount#-}}
+
| {{#show: {{FULLPAGENAME}} | ?Component1Amount#-}}  
| {{#if: {{#show:{{FULLPAGENAME}}|?Component2}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component2#-}}}}|}}
+
| {{#if: {{#show:{{FULLPAGENAME}}|?Component2#-}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component2#-}}|?MaxIntegrity#-}}}}
| {{#show: {{FULLPAGENAME}}|?Component2Amount#-}}
+
| {{#show: {{FULLPAGENAME}} | ?Component2Amount#-}}  
| {{#if: {{#show:{{FULLPAGENAME}}|?Component3}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component3#-}}}}|}}
+
| {{#if: {{#show:{{FULLPAGENAME}}|?Component3#-}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component3#-}}|?MaxIntegrity#-}}}}
| {{#show: {{FULLPAGENAME}}|?Component3Amount#-}}
+
| {{#show: {{FULLPAGENAME}} | ?Component3Amount#-}}  
| {{#if: {{#show:{{FULLPAGENAME}}|?Component4}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component4#-}}}}|}}
+
| {{#if: {{#show:{{FULLPAGENAME}}|?Component4#-}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component4#-}}|?MaxIntegrity#-}}}}
| {{#show: {{FULLPAGENAME}}|?Component4Amount#-}}
+
| {{#show: {{FULLPAGENAME}} | ?Component4Amount#-}}  
| {{#if: {{#show:{{FULLPAGENAME}}|?Component5}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component5#-}}}}|}}
+
| {{#if: {{#show:{{FULLPAGENAME}}|?Component5#-}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component5#-}}|?MaxIntegrity#-}}}}
| {{#show: {{FULLPAGENAME}}|?Component5Amount#-}}
+
| {{#show: {{FULLPAGENAME}} | ?Component5Amount#-}}  
| {{#if: {{#show:{{FULLPAGENAME}}|?Component6}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component6#-}}}}|}}
+
| {{#if: {{#show:{{FULLPAGENAME}}|?Component6#-}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component6#-}}|?MaxIntegrity#-}}}}
| {{#show: {{FULLPAGENAME}}|?Component6Amount#-}}
+
| {{#show: {{FULLPAGENAME}} | ?Component6Amount#-}}  
| {{#if: {{#show:{{FULLPAGENAME}}|?Component7}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component7#-}}}}|}}
+
| {{#if: {{#show:{{FULLPAGENAME}}|?Component7#-}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component7#-}}|?MaxIntegrity#-}}}}
| {{#show: {{FULLPAGENAME}}|?Component7Amount#-}}
+
| {{#show: {{FULLPAGENAME}} | ?Component7Amount#-}}  
| {{#if: {{#show:{{FULLPAGENAME}}|?Component8}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component8#-}}}}|}}
+
| {{#if: {{#show:{{FULLPAGENAME}}|?Component8#-}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component8#-}}|?MaxIntegrity#-}}}}
| {{#show: {{FULLPAGENAME}}|?Component8Amount#-}}
+
| {{#show: {{FULLPAGENAME}} | ?Component8Amount#-}}  
| {{#if: {{#show:{{FULLPAGENAME}}|?Component9}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component9#-}}}}|}}
+
| {{#if: {{#show:{{FULLPAGENAME}}|?Component9#-}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component9#-}}|?MaxIntegrity#-}}}}
| {{#show: {{FULLPAGENAME}}|?Component9Amount#-}}
+
| {{#show: {{FULLPAGENAME}} | ?Component9Amount#-}}  
| {{#if: {{#show:{{FULLPAGENAME}}|?Component10}} | {{get mass|c|{{#show:{{FULLPAGENAME}}|?Component10#-}}}}|}}
+
| {{#if: {{#show:{{FULLPAGENAME}}|?Component10#-}} | {{#show:{{#show:{{FULLPAGENAME}}|?Component10#-}}|?MaxIntegrity#-}}}}
| {{#show: {{FULLPAGENAME}}|?Component10Amount#-}}}}
+
| {{#show: {{FULLPAGENAME}} | ?Component10Amount#-}} }}
 
}}<noinclude>[[Category:Templates]]</noinclude>
 
}}<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 18:23, 3 April 2020

0