Difference between revisions of "Template:Infobox/Part/test subject"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Fix duplicate caption)
m (Fix doc)
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
{{Infobox/Line|{{Infobox/Part/Dict|on the launchpad}}|{{#ifexpr: {{{environments<noinclude>|9</noinclude>}}} div 4 mod 2|{{Yes}}|{{No}}}}}}
 
{{Infobox/Line|{{Infobox/Part/Dict|on the launchpad}}|{{#ifexpr: {{{environments<noinclude>|9</noinclude>}}} div 4 mod 2|{{Yes}}|{{No}}}}}}
 
{{Infobox/Line|{{Infobox/Part/Dict|in the atmosphere}}|{{#ifexpr: {{{environments<noinclude>|9</noinclude>}}} div 8 mod 2|{{Yes}}|{{No}}}}}}
 
{{Infobox/Line|{{Infobox/Part/Dict|in the atmosphere}}|{{#ifexpr: {{{environments<noinclude>|9</noinclude>}}} div 8 mod 2|{{Yes}}|{{No}}}}}}
{{Infobox/Line|{{Infobox/Part/Dict|sub orbital}}|{{#ifexpr: {{{environments<noinclude>|9</noinclude>}}} div 16 mod 2|{{Yes}}|{{No}}}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|sub-orbital}}|{{#ifexpr: {{{environments<noinclude>|9</noinclude>}}} div 16 mod 2|{{Yes}}|{{No}}}}}}
 
{{Infobox/Line|{{Infobox/Part/Dict|in an orbit}}|{{#ifexpr: {{{environments<noinclude>|9</noinclude>}}} div 32 mod 2|{{Yes}}|{{No}}}}}}
 
{{Infobox/Line|{{Infobox/Part/Dict|in an orbit}}|{{#ifexpr: {{{environments<noinclude>|9</noinclude>}}} div 32 mod 2|{{Yes}}|{{No}}}}}}
 
{{Infobox/Line|{{Infobox/Part/Dict|on an escape}}|{{#ifexpr: {{{environments<noinclude>|9</noinclude>}}} div 64 mod 2|{{Yes}}|{{No}}}}}}
 
{{Infobox/Line|{{Infobox/Part/Dict|on an escape}}|{{#ifexpr: {{{environments<noinclude>|9</noinclude>}}} div 64 mod 2|{{Yes}}|{{No}}}}}}
 
{{Infobox/Line|{{Infobox/Part/Dict|docked}}|{{#ifexpr: {{{environments<noinclude>|9</noinclude>}}} div 128 mod 2|{{Yes}}|{{No}}}}}}
 
{{Infobox/Line|{{Infobox/Part/Dict|docked}}|{{#ifexpr: {{{environments<noinclude>|9</noinclude>}}} div 128 mod 2|{{Yes}}|{{No}}}}}}
{{Infobox/Line|{{Infobox/Part/Dict|test by staging}}|{{#switch: {{lc:{{{staging<noinclude>|True</noinclude>}}}}}|y|yes|t|true={{Yes}}|n|no|f|false={{No}}}}}}
+
{{Infobox/Line|{{Infobox/Part/Dict|test by staging}}|{{Boolean|{{{staging<noinclude>|True</noinclude>}}}|{{No}}}}}}
{{Infobox/Line|{{Infobox/Part/Dict|manually testable}}|{{#switch: {{lc:{{{event<noinclude>|False</noinclude>}}}}}|y|yes|t|true={{Yes}}|n|no|f|false={{No}}}}}}<noinclude>
+
{{Infobox/Line|{{Infobox/Part/Dict|manually testable}}|{{Boolean|{{{event<noinclude>|False</noinclude>}}}|{{No}}}}}}<noinclude>
 
}}
 
}}
  
Line 16: Line 16:
  
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
{{Parameter row|environments|The environments variable from “ModuleTestSubject” module}}
+
{{Parameter row|environments|In which situations the part can be tested at (<tt>situationMask</tt> in the config).}}
{{Parameter row|staging|Whether the part can be tested through staging (see <tt>useStaging</tt>; <tt>y</tt>, <tt>yes</tt>, <tt>t</tt>, <tt>true</tt>, <tt>n</tt>, <tt>no</tt>, <tt>f</tt>, <tt>false</tt>)}}
+
{{Parameter row|staging|Whether the part can be tested through staging (<tt>useStaging</tt> in the config).|{{No}}}}
{{Parameter row|event|Whether the part can be tested manually by right-clicking (see <tt>useEvent</tt>; <tt>y</tt>, <tt>yes</tt>, <tt>t</tt>, <tt>true</tt>, <tt>n</tt>, <tt>no</tt>, <tt>f</tt>, <tt>false</tt>)}}
+
{{Parameter row|event|Whether the part can be tested manually by right-clicking (<tt>useEvent</tt> in the config).|{{No}}}}
 
}}
 
}}
 
{{Subcategory|modules}}</noinclude>
 
{{Subcategory|modules}}</noinclude>

Latest revision as of 09:00, 17 September 2024

Testing Environments
On the surface Yes
In the ocean No
On the launchpad No
In the atmosphere Yes
Sub-orbital No
In an orbit No
On an escape No
Docked No
Test by staging Yes
Manually testable No

{{Infobox/Part}} module for contract test subjects.

Name Optional Description Default
environments No In which situations the part can be tested at (situationMask in the config).
staging Yes Whether the part can be tested through staging (useStaging in the config). No
event Yes Whether the part can be tested manually by right-clicking (useEvent in the config). No