Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox command modules: Difference between revisions

Template page
mNo edit summary
Tag: 2017 source edit
(Updated image and caption template data)
Tag: 2017 source edit
 
(8 intermediate revisions by 3 users not shown)
Line 3: Line 3:
{
{
"params": {
"params": {
"image": {},
"image": {
"caption": {},
"aliases": [
"pic",
"picture",
"thumbnail"
],
"label": "Part Image",
"description": "The filename of the part, including the file extension.",
"example": "Mk1_Explorer.png",
"type": "wiki-file-name",
"required": true
},
"caption": {
"aliases": [
"subtitle"
],
"label": "Caption",
"description": "The part's classification per the in-game description.",
"type": "string",
"required": true
},
"size": {
"size": {
"label": "Size                ",
"label": "Size                ",
Line 31: Line 50:
"required": true
"required": true
},
},
"mass (t)": {
"mass": {
"label": "Mass (t)",
"label": "Mass (t)",
"description": "Mass (t)",
"description": "Mass (t)",
"type": "string",
"type": "string",
"required": true
},
"manufacturer": {
"label": "Manufacturer",
"description": "In-game manufacturer of the part",
"type": "string",
"required": true
},
"impact tol": {
"label": "Impact Tolerance (m/s)",
"type": "number",
"required": true
},
"max temp": {
"label": "Max Temp (K)",
"type": "number",
"required": true
"required": true
}
}
},
},
"description": "Generate an infobox for an command pod.",
"description": "Generate an infobox for a command module.",
"paramOrder": [
"paramOrder": [
"image",
"image",
"caption",
"caption",
"mass (t)",
"mass",
"size",
"size",
"crew capacity",
"crew capacity",
"torque"
"torque",
"impact tol",
"max temp",
"manufacturer"
]
]
}
}
Line 51: Line 89:


{{Infobox
{{Infobox
| style = float: right;
| name    = Test
| name    = Test
| title    = Test box
| title    = Test box
| image    = {{{image|}}}
| image    = [[File:Mk1_Explorer.png|200px]]
| caption = Test caption
| caption = Test caption


| header = Statistics
| header1 = Statistics
| label2  = Mass (t)
|  data2  = #
| label3  = Size
|  data3  = #
| label4  = Max Temp (K)
|  data4  = #
| label5  = Impact Tolerance (m/s)
|  data5  = #


| label1  = Mass (t)
| header6 = Command Module Info
| data1   = #
| label7   = Max Crew
| label2  = Size
data7   = #
data2   = #
| label8   = Torque
| label3   = Max Crew
data8   = #
data3   = {{{crew capacity)|#}}}
below   = Manufacturer
| label4  = Torque
data4   = {{{Torque|#}}}
}}
}}
</noinclude>
<noinclude>
{{#ifeq:XS|{{{size}}}|<code><b><font color=#E04949>XS</font></b></code>|{{#ifeq:SM|{{{size}}}|<code><b><font color=#E0A400>SM</font></b></code>|{{#ifeq:MD|{{{size}}}|<code><b><font color=#E0A400>MD</font></b></code>|{{#ifeq:LG|{{{size}}}|<code><b><font color=#00E0A8>LG</font></b></code>|{{#ifeq:XL|{{{size}}}|<code><b><font color=#49ABE0>XL</font></b></code>|{{#ifeq:2X|{{{size}}}|<code><b><font color=#A978DA>2X</font></b></code>||}}|}}|}}|}}|}}|}}
</noinclude>
</noinclude>


Line 78: Line 117:
| name    = {{PAGENAME}}
| name    = {{PAGENAME}}
| title    = {{PAGENAME}}
| title    = {{PAGENAME}}
| image    = {{{image|}}}
| image    = [[File:{{{image|}}}|200px]]
| caption = {{{caption|}}}
| caption = {{{caption|}}}


| header = Statistics
| header1 = Statistics
| label2  = Mass (t)
|  data2  = {{{mass|}}}
| label3  = Size
|  data3  = {{Size|Size={{{size|}}}|Add Category=1}}
| label4  = Max Temp (K)
|  data4  = {{{max temp|}}}
| label5  = Impact Tolerance (m/s)
|  data5  = {{{impact tol|}}}
 
| header6 = Command Module Info
| label7  = Max Crew
|  data7  = {{{crew capacity|}}}
| label8  = Torque (kN)
|  data8  = {{{torque|}}}


| label1  = Mass (t)
below   = {{{manufacturer|}}}
|  data1  = {{{mass (t)|}}}
| label2  = Size
|  data2  = {{Size|Size={{{size|}}}|Add Category=1}}
| label3  = Max Crew
|  data3  = {{{crew capacity|}}}
| label4  = Torque
data4   = {{{torque|}}}
}}
}}
</includeonly>
</includeonly>

Latest revision as of 16:21, 20 September 2024

Generate an infobox for a command module.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Part Imageimage pic picture thumbnail

The filename of the part, including the file extension.

Example
Mk1_Explorer.png
Filerequired
Captioncaption subtitle

The part's classification per the in-game description.

Stringrequired
Mass (t)mass

Mass (t)

Stringrequired
Size size

Size of part (using {{Size}})

Suggested values
XS SM MD LG XL 2X
Stringrequired
Max Crewcrew capacity

Max crew the pod can hold

Stringrequired
Torque (kN)torque

Torque

Stringrequired
Impact Tolerance (m/s)impact tol

no description

Numberrequired
Max Temp (K)max temp

no description

Numberrequired
Manufacturermanufacturer

In-game manufacturer of the part

Stringrequired
Test box
Test caption
Statistics
Mass (t)
Size
Max Temp (K)
Impact Tolerance (m/s)
Command Module Info
Max Crew
Torque
Manufacturer


MediaWiki Appliance - Powered by TurnKey Linux