Difference between revisions of "Template:Infobox/Part/antenna"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Use dict, add more params)
m (Update info)
 
Line 1: Line 1:
<noinclude>{{Infobox/Part/preview|</noinclude>
+
<noinclude>{{Infobox/Part/preview|
{{Infobox/Line|{{Infobox/Part/Dict|antenna}}|{{#switch: {{uc:{{{type<noinclude>|direct</noinclude>}}}}}
+
</noinclude>{{Infobox/Line|{{Infobox/Part/Dict|antenna}}|{{#switch: {{uc:{{{type<noinclude>|direct</noinclude>}}}}}
 
|INTERNAL={{Infobox/Part/Dict|internal}}
 
|INTERNAL={{Infobox/Part/Dict|internal}}
 
|DIRECT={{Infobox/Part/Dict|direct}}
 
|DIRECT={{Infobox/Part/Dict|direct}}
Line 15: Line 15:
  
 
{{Parameter table|name=text|parameters=
 
{{Parameter table|name=text|parameters=
{{Parameter row|type|The type of antenna.}}
+
{{Parameter row|type|The type of antenna. The following values are supported (not case sensitive):
{{Parameter row|power|The power of the antenna.}}
+
* <tt>INTERNAL</tt>: These are the internal antennae in command pods and probe cores.
 +
* <tt>DIRECT</tt>: Basic antennae
 +
* <tt>RELAY</tt>: [[Relay]] antennae
 +
If the value is not known, it adds the page to [[:Category:Infobox/Part with missing parameters]].|}}
 +
{{Parameter row|power|The power of the antenna in m.}}
 
{{Parameter row|packet size|The size of one packet in Mits.|Hidden if <tt>type</tt> is <tt>INTERNAL</tt>, otherwise <tt>1</tt>}}
 
{{Parameter row|packet size|The size of one packet in Mits.|Hidden if <tt>type</tt> is <tt>INTERNAL</tt>, otherwise <tt>1</tt>}}
 
{{Parameter row|packet interval|The <tt>packetInterval</tt> value.|Hidden if <tt>type</tt> is <tt>INTERNAL</tt>}}
 
{{Parameter row|packet interval|The <tt>packetInterval</tt> value.|Hidden if <tt>type</tt> is <tt>INTERNAL</tt>}}

Latest revision as of 16:09, 9 September 2024

Antenna type Direct
Antenna rating 500 km
Packet size 1 Mits
Transmission speed 2.86 Mits/s
Electricity required 24 ⚡/Mits

{{Infobox/Part}} module for antennae. The transmission speed does not include the time to open and close the antenna.

Name Optional Description Default
type No The type of antenna. The following values are supported (not case sensitive):
  • INTERNAL: These are the internal antennae in command pods and probe cores.
  • DIRECT: Basic antennae
  • RELAY: Relay antennae

If the value is not known, it adds the page to Category:Infobox/Part with missing parameters.

power No The power of the antenna in m.
packet size Yes The size of one packet in Mits. Hidden if type is INTERNAL, otherwise 1
packet interval Yes The packetInterval value. Hidden if type is INTERNAL
packet electricity Yes Electricity consumption for each packet in ⚡/packet. Does multiply the value by the packet size to show the electricity consumption per Mit. Hidden if type is INTERNAL