|
|
Line 1: |
Line 1: |
| <noinclude>
| |
| <templatedata>
| |
| {
| |
| "params": {
| |
| "image": {
| |
| "aliases": [
| |
| "picture",
| |
| "thumbnail"
| |
| ],
| |
| "label": "Part Image",
| |
| "description": "The filename of the part, including the file extension",
| |
| "example": "LV-3000_Tuba.png",
| |
| "type": "wiki-file-name",
| |
| "required": true
| |
| },
| |
| "caption": {
| |
| "aliases": [
| |
| "subtitle"
| |
| ],
| |
| "label": "Caption",
| |
| "description": "The part's classification per the in-game description.",
| |
| "example": "Deep Space Methalox Engine",
| |
| "type": "string",
| |
| "required": true
| |
| },
| |
| "size": {
| |
| "label": "Size",
| |
| "description": "Size of part (using {{Size}})",
| |
| "type": "string",
| |
| "required": true,
| |
| "suggestedvalues": [
| |
| "XS",
| |
| "SM",
| |
| "MD",
| |
| "LG",
| |
| "XL",
| |
| "2X"
| |
| ]
| |
| },
| |
| "max temp": {
| |
| "label": "Max Temperature (K)",
| |
| "description": "Maximum withstandable temperature",
| |
| "type": "string",
| |
| "required": true
| |
| },
| |
| "impact tol": {
| |
| "label": "Impact Tolerance (m/s)",
| |
| "description": "Impact Tolerance (m/s)",
| |
| "type": "string",
| |
| "required": true
| |
| },
| |
| "mass": {
| |
| "label": "Mass (t)",
| |
| "description": "Mass (t)",
| |
| "type": "string",
| |
| "required": true
| |
| },
| |
| "manufacturer": {
| |
| "aliases": [
| |
| "maker",
| |
| "brand"
| |
| ],
| |
| "label": "Manufacturer",
| |
| "description": "The in-game manufacturer of the part.",
| |
| "example": "Jebediah's Junkyard",
| |
| "type": "string",
| |
| "required": true
| |
| },
| |
| "part type subbox": {
| |
| "label": "Part Type Data",
| |
| "description": "Enter data for the part's type if applicable.",
| |
| "example": "Command Module, Engine, Fuel Tank, etc.",
| |
| "type": "wiki-template-name",
| |
| "suggested": true
| |
| }
| |
| },
| |
| "description": "Generate an infobox for a part.",
| |
| "paramOrder": [
| |
| "image",
| |
| "caption",
| |
| "mass",
| |
| "size",
| |
| "max temp",
| |
| "impact tol",
| |
| "manufacturer",
| |
| "part type subbox"
| |
| ]
| |
| }
| |
| </templatedata>
| |
|
| |
| {{Infobox | | {{Infobox |
| | name = Test | | | name = Test |
| | title = Test box | | | title = {{#invoke:Data|getData|Example/engine|name}} |
| | image = [[File:SWERV.png|200px]]
| | | image = [[File:LV-SW_SWERV.png|200px|center]] |
| | caption = Test caption
| | | caption = {{#invoke:Data|getData|Example/engine|subtitle}} |
| | |
| | labelstyle = width: 33%
| |
| | bodystyle = width: 20em
| |
| | headerstyle = font-weight: bold; color: black; background: #f7aa33;
| |
| | |
| | header1 = Statistics
| |
| | label2 = Mass (t)
| |
| | data2 = #
| |
| | label3 = Size
| |
| | data3 = #
| |
| | label4 = Max Temp (K)
| |
| | data4 = {{{max temp|#}}}
| |
| | label5 = Impact Tolerance (m/s) | |
| | data5 = {{{impact tol|#}}} | |
| | |
| | header6 = Part Type Subbox
| |
| | below = Jedediah's Junk Yard
| |
| | |
| }}
| |
| </noinclude>
| |
| | |
| <includeonly>
| |
| {{Infobox
| |
| | name = {{PAGENAME}} | |
| | title = {{PAGENAME}}
| |
| | image = [[File:{{{image|}}}|200px]] | |
| | caption = {{{caption|}}} | |
| | |
| | labelstyle = width: 33%
| |
| | bodystyle = width: 20em | |
| | headerstyle = font-weight: bold; color: black; background: #f7aa33; | |
| | |
| | header1 = Statistics | |
|
| |
|
| | label2 = Mass (t) | | | labelstyle = width: 60%; text-align: left; |
| | data2 = {{{mass|}}} | | | titlestyle = background-color: #f7aa33; |
| | label3 = Size | | padding: 0.2em 0em 0.2em; |
| | data3 = {{Size|Size={{{size|}}}|Add Category=1}}
| | color: black; |
| | label4 = Max Temp (K)
| | font-size: 22px; |
| | data4 = {{{max temp|}}} | | font-weight: bold; |
| | label5 = Impact Tolerance (m/s) | | | bodystyle = width: 20em; border: 1px solid #a2a9b1; border-spacing: 3px; margin: 0.5em 0 0.5em 1em; |
| | data5 = {{{impact tol|}}}
| | padding: 0.2em; |
| | float: right; |
| | clear: right; |
| | font-size: 88%; |
| | line-height: 1.5em; |
| | width: 20em; |
| | | headerstyle = font-weight: bold; color: black; background: #f7aa33; font-size: 18px; text-align: left; |
| | | captionstyle = text-align: center; font-style: italic; |
|
| |
|
| | header6 = {{{part type subbox|}}} | | | header10 = Statistics |
| | below = {{{manufacturer|}}} | | | label11 = Mass (t) |
| | | data11 = {{#invoke:Data|getData|Example/engine|mass}} |
| | | label12 = Size |
| | | data12 = {{Size|Size={{#invoke:Data|getData|Example/engine|size}}}} |
| | | label13 = Max Temp (K) |
| | | data13 = {{#invoke:Data|getData|Example/engine|max_temp}} |
| | | label14 = Impact Tolerance (m/s) |
| | | data14 = {{#invoke:Data|getData|Example/engine|imp_tol}} |
|
| |
|
| | | below = {{#invoke:Data|getData|Example/engine|manufacturer}} |
| }} | | }} |
| </includeonly>
| |