Latest revision |
Your text |
Line 1: |
Line 1: |
| <includeonly> | | <infobox accent-color-source="title_background" accent-color-text-source="title_color"> |
| <templatestyles src="Template:Infobox/styles.css"/>
| | <title source="title1"><default>{{PAGENAME}}</default></title> |
| {| class="infobox"
| | <image source="image1"> |
| |+ class="infobox__title rarity-{{lc:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}" | {{{name|{{PAGENAME}}}}}
| | <captions source="caption1"/> |
| |-
| | </image> |
| | colspan="2" class="infobox__image" | {{#ifexist: File:{{{photo}}} | [[File:{{{photo}}}|300px]] | {{#ifexist: File:{{{name}}} 1.png | [[File:{{{name}}} 1.png|300px]] | [[File:Aerowikiplaceholder.jpg|300px]]}}}}
| | <image source="image2"> |
| |-
| | <caption source="caption2"/> |
| | colspan="2" class="infobox__caption" | {{{caption|(Empty Caption) [[Category: Missing Parameters]]}}}
| | </image> |
| |-
| | <group layout="horizontal" collapse="open"> |
| | colspan="2" class="infobox__subtitles" | {{{General Information|General Information}}}
| | <header>Operator Information</header> |
| |-
| | <data source="operation_start"><label>Operation Start</label></data> |
| ! class="infobox__field-name" | Code
| | <data source="operator_code"><label>Operator Code</label></data> |
| | class="infobox__field-value" | {{{Code| Unknown [[Category: Missing Parameters]]}}}
| | </group> |
| |-
| | <group layout="horizontal" collapse="open"> |
| ! class="infobox__field-name" | Type
| | <data source="minimum_price"><label>Minimum Price</label></data> |
| | class="infobox__field-value" | {{#if: {{{Type|}}} | [[:Category:{{{Type}}}s|{{{Type}}}]] | Unknown [[Category: Missing Parameters]]}}
| | <data source="maximum_price"><label>Maximum Price</label></data> |
| |-
| | </group> |
| ! class="infobox__field-name" | Rarity
| | <group layout="horizontal" collapse="open"> |
| | class="infobox__field-value" | <span class="infobox__rarity-value rarity-{{lc:{{#invoke:String|replace|{{{Rarity|}}}| |}}}}">{{{Rarity|Unknown/None [[Category: Missing Parameters]]}}}</span>
| | <header>Operations</header> |
| |-
| | <data source="trains"><label>Trains</label></data> |
| {{#ifeq: {{{Obtainability Type}}} | Purchasable |
| | <data source="stations_called_at"><label>Stations Called At</label></data> |
| <tr>
| | </group> |
| <th class="infobox__field-name">Cost</th>
| | <group layout="horizontal" collapse="open"> |
| <td class="infobox__field-value">{{#iferror: {{#expr: {{{Cost|0}}} + 0 }} | Invalid Cost String [[Category: Missing Parameters]] | '''{{#if: {{{Cost|}}} | {{formatnum:{{{Cost}}}}} | 0 [[Category: Missing Parameters]]}}''' WP }}</td> | | <data source="routes"><label>Routes</label></data> |
| </tr> | | <data source="depots"><label>Depots</label></data> |
| <tr> | | </group> |
| <th class="infobox__field-name">Distributor</th>
| | <group collapse="open"> |
| <td class="infobox__field-value">{{#if: {{{Distributor|}}} | [[{{{Distributor}}}]] | Unknown [[Category: Missing Parameters]]}}</td> | | <header>Map</header> |
| </tr> | | <image source="image3"> |
| |{{#ifeq: {{{Obtainability Type}}} | Badge Vehicle |
| | <caption source="caption3"/> |
| <tr> | | </image> |
| <th class="infobox__field-name">Badge</th> | | </group> |
| <td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | Unknown [[Category: Missing Parameters]]}}</td> | | </infobox> |
| </tr>
| | <includeonly>{{#ifeq:{{PAGENAME}}|{{ns:0}}|[[Category:Operators|{{PAGENAME}}]]}}</includeonly><noinclude>[[Category:Infobox Templates]]</noinclude> |
| |{{#ifeq: {{{Obtainability Type}}} | Craftable |
| |
| <tr>
| |
| <th class="infobox__field-name">Crafting requirement</th> | |
| <td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} parts {{#if: {{{Distributor|}}} | and [[{{{Distributor}}}]]}} | Unknown [[Category: Missing Parameters]]}}</td>
| |
| </tr> | |
| |{{#ifeq: {{{Obtainability Type}}} | Convertible |
| |
| <tr> | |
| <th class="infobox__field-name">Obtainability</th> | |
| <td class="infobox__field-value">{{#if: {{{Cost|}}} | Convertible from [[{{{Cost}}}]] | Unknown [[Category: Missing Parameters]]}}</td> | |
| </tr> | |
| <tr> | |
| <th class="infobox__field-name">Conversion Time</th> | |
| <td class="infobox__field-value">{{#iferror: {{#expr: {{{Distributor|}}} + 0 }} | Invalid Conversion Time String [[Category: Missing Parameters]] | {{#if: {{{Distributor|}}} | '''{{formatnum:{{{Distributor}}}}}''' minutes | Unknown [[Category: Missing Parameters]]}}}}</td> | |
| </tr>
| |
| |{{#ifeq: {{{Obtainability Type}}} | Job Vehicle |
| |
| <tr>
| |
| <th class="infobox__field-name">Obtainability</th> | |
| <td class="infobox__field-value">{{#if: {{{Cost|}}} | {{{Cost}}} | Unknown [[Category: Missing Parameters]]}}</td>
| |
| </tr> | |
| }}}}}}}}}}
| |
| |-
| |
| ! class="infobox__field-name" | Jobs
| |
| | class="infobox__field-value" | {{#invoke: AeroWikiListTools
| |
| | split_list | {{{Jobs|}}} | [[:Category: {split}|{split}]], | Unknown [[Category: Missing Parameters]]}}
| |
| |-
| |
| ! class="infobox__field-name" | Customization
| |
| | class="infobox__field-value" | {{#invoke: AeroWikiListTools
| |
| | split_list | {{{Customization|}}} | {{Checkbox (colored)|checked|color=blue}} [[:Category: {split}|{split}]] <br> | Unknown [[Category: Missing Parameters]]}}
| |
| |-
| |
| ! class="infobox__field-name" | Contributors
| |
| | class="infobox__field-value" | {{#invoke: AeroWikiListTools
| |
| | split_list | {{{Contributors|}}} | [[:Category: {split}|{split}]], | Unknown [[Category: Missing Parameters]]}}
| |
| |-
| |
| | colspan="2" class="infobox__subtitles" | {{{Specifications|Specifications}}}
| |
| |-
| |
| ! class="infobox__field-name" | Max Speed
| |
| | class="infobox__field-value" | '''{{#if: {{{Max Speed|}}} | {{formatnum:{{{Max Speed}}}}} | 0 [[Category: Missing Parameters]]}}''' knots / '''{{formatnum:{{#expr: {{{Max Speed|0}}} * 1.852 round 0}}}}''' kph
| |
| <!-- Hides the stall speed and service ceiling statistics if the vehicle type is a boat or a ground vehicle -->
| |
| {{#ifeq: {{{Type|}}} | Boat || {{#ifeq: {{{Type|}}} | Ground Vehicle ||
| |
| {{#if: {{{Stall Speed|0}}} | {{#ifeq: {{{Type|}}} | Helicopter ||
| |
| <tr>
| |
| <th class="infobox__field-name">Stall Speed</th> | |
| <td class="infobox__field-value">'''{{#if: {{{Stall Speed|}}} | {{formatnum:{{{Stall Speed}}}}} | 0 [[Category: Missing Parameters]]}}''' knots / '''{{formatnum:{{#expr: {{{Stall Speed|0}}} * 1.852 round 0}}}}''' kph</td>
| |
| </tr>
| |
| }}}} | |
| {{#if: {{{CeilingFeet|0}}}
| |
| | <tr>
| |
| <th class="infobox__field-name">Ceiling</th> | |
| <td class="infobox__field-value">'''{{#if: {{{CeilingFeet|}}} | {{formatnum:{{{CeilingFeet}}}}} | 0 [[Category: Missing Parameters]]}}''' ft / '''{{formatnum:{{#expr: {{{CeilingFeet|0}}} * 0.3048 round 0}}}}''' m</td> | |
| </tr> | |
| }} | |
| }}}}
| |
| |-
| |
| ! class="infobox__field-name" | Range
| |
| | class="infobox__field-value" | '''{{#if: {{{RangeNM|}}} | {{formatnum:{{{RangeNM}}}}}| 0 [[Category: Missing Parameters]]}}''' nmi / '''{{formatnum:{{#expr: {{{RangeNM|0 }}} * 1.852 round 0}}}}''' km
| |
| |-
| |
| ! class="infobox__field-name" | Capacity
| |
| | class="infobox__field-value" | '''{{#if: {{{Capacity|}}} | {{formatnum:{{{Capacity}}}}} | 0 [[Category: Missing Parameters]]}}'''
| |
| {{#if: {{{category_disable|}}} ||
| |
| <!-- Categories --> | |
| {{#if: {{{Type|}}} | [[Category:{{{Type}}}s]]}} | |
| {{#if: {{{Rarity|}}} | [[Category:{{{Rarity}}} Vehicles]]}} | |
| {{#if: {{{Obtainability Type|}}}: [[Category:{{{Obtainability Type}}}]]}} <!-- idk -->
| |
| {{#invoke: AeroWikiListTools | split_list | {{{Jobs|}}} | [[Category: {split}]] |}}
| |
| {{#invoke: AeroWikiListTools | split_list | {{{Customization|}}} | [[Category: {split}]] |}}
| |
| {{#invoke: AeroWikiListTools | split_list | {{{Contributors|}}} | [[Category: {split}]] |}}
| |
| {{#ifeq: {{{Type|}}} | Boat || {{#ifeq: {{{Type|}}} | Ground Vehicle || [[Category:Aircraft]]}}}}
| |
| [[Category:Vehicles]]
| |
| }}
| |
| |}</includeonly>
| |
| <noinclude> | | <noinclude> |
| <!-- Example values --> | | Example usage: |
| {{Template:VehicleInfoBox/sandbox | | <pre> |
| | name = Boeing 737-800 | | {{Infobox operator |
| | caption = Boeing 737-800 flying low over the [[Thalassan Sea]] | | |title1 = Example |
| | Rarity = Common | | |image1 = Example.jpg |
| | Code = 737-800 | | |caption1 = Example |
| | Type = Jet Engine | | |image2 = Example.png |
| | Obtainability Type = Purchasable | | |caption2 = Example |
| | Cost = 19300 | | |operation_start = Example |
| | Distributor = Kitesboro International Airport | | |operator_code = Example |
| | Jobs = Charter | | |minimum_price = Example |
| | Max Speed = 453 | | |maximum_price = Example |
| | Stall Speed = 120 | | |trains = Example |
| | CeilingFeet = 41010 | | |stations_called_at = Example |
| | RangeNM = 144 | | |routes = Example |
| | Capacity = 36 | | |depots = Example |
| | Customization = Advanced Liveries, Advanced Customization
| | |image3 = Example.jpg |
| | Contributors = EAT_RIC3, Giovanni_085391
| | |caption3 = Example |
| | photo = Aerowikiplaceholder.jpg
| |
| | category_disable = yes | |
| }} | | }} |
| | </pre> |
| <templatedata> | | <templatedata> |
| { | | {"params":{"title1":{"required":true},"image1":{"required":true},"caption1":{"suggested":true},"image2":{"suggested":true},"caption2":{"suggested":true},"operation_start":{"required":true},"operator_code":{"required":true},"minimum_price":{"required":true},"maximum_price":{"required":true},"trains":{"required":true},"stations_called_at":{"required":true},"routes":{"required":true},"depots":{"suggested":true},"image3":{"required":true},"caption3":{"suggested":true}},"sets":[],"maps":{}} |
| "description": "Public Vehicle InfoBox Template",
| |
| "params": {
| |
| "name": {
| |
| "label": "Name",
| |
| "description": "The name of the vehicle, this should be the same as the name of the page.",
| |
| "type": "string",
| |
| "example": "Boeing 737-800",
| |
| "suggested": true
| |
| },
| |
| "caption": {
| |
| "label": "Image caption",
| |
| "description": "A brief description of the image shown in the InfoBox.",
| |
| "type": "string",
| |
| "example": "Boeing 737-800 flying low over the [[Thalassan Sea]]",
| |
| "suggested": true
| |
| },
| |
| "Rarity": {
| |
| "label": "Rarity",
| |
| "description": "The ingame rarity of the vehicle.",
| |
| "type": "string",
| |
| "suggestedvalues": [
| |
| "Widespread",
| |
| "Common",
| |
| "Uncommon",
| |
| "Rare",
| |
| "Ultra Rare",
| |
| "Epic",
| |
| "Mythical",
| |
| "Legendary"
| |
| ],
| |
| "example": "Common",
| |
| "suggested": true
| |
| },
| |
| "Code": {
| |
| "label": "Code",
| |
| "description": "The ingame code of the vehicle.",
| |
| "type": "string",
| |
| "example": "737-800",
| |
| "suggested": true
| |
| },
| |
| "Type": {
| |
| "label": "Type",
| |
| "description": "The license required to operate this vehicle",
| |
| "type": "string",
| |
| "suggestedvalues": [
| |
| "Ultralight",
| |
| "Single Engine",
| |
| "Helicopter",
| |
| "Multi Engine",
| |
| "Jet Engine",
| |
| "Supersonic Transport",
| |
| "VTOL",
| |
| "Airship",
| |
| "Boat",
| |
| "Ground Vehicle"
| |
| ],
| |
| "example": "Jet Engine",
| |
| "suggested": true
| |
| },
| |
| "photo": {
| |
| "label": "Image",
| |
| "description": "Image shown at the top of the InfoBox.",
| |
| "example": "Aerowikiplaceholder.jpg",
| |
| "type": "wiki-file-name",
| |
| "autovalue": "Aerowikiplaceholder.jpg",
| |
| "suggested": true
| |
| },
| |
| "Distributor": {
| |
| "type": "string",
| |
| "label": "Distributor / Conversion time / Craftable",
| |
| "description": "The secondary requirement to obtain the vehicle",
| |
| "example": "Kitesboro International Airport / 100 / Boeing 737-800",
| |
| "suggested": true
| |
| },
| |
| "Cost": {
| |
| "label": "Cost / Vehicle converted from / Badge / Crate parts / Job",
| |
| "description": "The primary requirement to obtain the vehicle.",
| |
| "example": "19300 / Boeing 737-800 / 100K Favorites / 6 / Valois Retirement Flight",
| |
| "type": "string",
| |
| "suggested": true
| |
| },
| |
| "Jobs": {
| |
| "label": "Available jobs",
| |
| "description": "A list of the available jobs the vehicle has. Items are to be separated by commas. ",
| |
| "example": "Passenger, Charter",
| |
| "type": "string",
| |
| "suggested": true
| |
| },
| |
| "Customization": {
| |
| "label": "Vehicle customization",
| |
| "description": "List of customization options the vehicle has. Options are to be separated by commas.",
| |
| "type": "string",
| |
| "example": "Advanced Liveries, Advanced Customization, Cockpit",
| |
| "suggested": true
| |
| },
| |
| "Max Speed": {
| |
| "label": "Maximum speed",
| |
| "description": "The maximum speed of the vehicle in knots (units are automatically appended).",
| |
| "example": "453",
| |
| "type": "number",
| |
| "suggested": true
| |
| },
| |
| "Stall Speed": {
| |
| "label": "Stall speed",
| |
| "description": "The stall speed of the vehicle in knots (units are automatically appended, will be hidden automatically if the vehicle type is ground vehicle or boat).",
| |
| "example": "120",
| |
| "type": "number",
| |
| "suggested": true
| |
| },
| |
| "CeilingFeet": {
| |
| "label": "Service ceiling",
| |
| "description": "The service ceiling of the vehicle in feet (units are automatically appended, will be hidden automatically if the vehicle type is ground vehicle or boat).",
| |
| "example": "41010",
| |
| "type": "number",
| |
| "suggested": true
| |
| },
| |
| "RangeNM": {
| |
| "label": "Range",
| |
| "description": "The range of the vehicle in nautical miles (units are automatically appended).",
| |
| "example": "144",
| |
| "type": "number",
| |
| "suggested": true
| |
| },
| |
| "Capacity": {
| |
| "label": "Capacity",
| |
| "description": "The capacity of the vehicle.",
| |
| "example": "36",
| |
| "type": "number",
| |
| "suggested": true
| |
| },
| |
| "Contributors": {
| |
| "label": "Contributors",
| |
| "description": "A list of the developers/members who contributed towards the vehicle. Developers have their own category pages so check that their username is typed correctly. Names are to be separated by commas.",
| |
| "example": "TheOnly0Ne, Giovanni_085931, Enclaved_YT, EAT_RIC3",
| |
| "type": "string",
| |
| "suggested": true
| |
| },
| |
| "Obtainability Type": {
| |
| "label": "Obtainability Type",
| |
| "description": "The method of obtaining the vehicle.",
| |
| "example": "Purchasable",
| |
| "type": "string",
| |
| "suggestedvalues": [
| |
| "Purchasable",
| |
| "Badge Vehicle",
| |
| "Craftable",
| |
| "Convertible"
| |
| ],
| |
| "autovalue": "",
| |
| "suggested": true
| |
| }
| |
| },
| |
| "paramOrder": [
| |
| "name",
| |
| "Code",
| |
| "Type",
| |
| "Rarity",
| |
| "Obtainability Type",
| |
| "Cost",
| |
| "Distributor",
| |
| "Jobs",
| |
| "Customization",
| |
| "Contributors",
| |
| "Max Speed",
| |
| "Stall Speed",
| |
| "CeilingFeet",
| |
| "RangeNM",
| |
| "Capacity",
| |
| "photo",
| |
| "caption"
| |
| ]
| |
| } | |
| </templatedata> | | </templatedata> |
| </noinclude> | | </noinclude> |