Template:Infobox aircraft: Difference between revisions

From Agropelter Archives
Jump to navigation Jump to search
imported>GKNishimoto
Added another missing parameter to the check module.
 
No edit summary
 
(70 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox
<includeonly>
| templatestyles = Template:Infobox aircraft/styles.css
{| class="infobox" style="width: 400px; border: 1px solid #aaa; background: #f9f9f9; font-size: 90%; line-height: 1.4em;"
| bodyclass  = ib-aircraft vcard
|-
| autoheaders = y
! colspan="2" style="text-align:center; background:{{{headercolor|#829682}}}; color:white; font-size:110%;" | {{{name|aircraft}}}
|-
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|390px]]
|-
! Type
| {{{type|}}}
|-
! Status
| {{{status|}}}
|-
! Number Built
| {{{numbuilt|}}}
|-
! Primary Users
| {{{primusers|}}}
|-
! Wars
| {{{wars|}}}
|-
! colspan="2" style="text-align:center; background:{{{headercolor|#829682}}}; color:white; font-size:110%;" | History
|-
! Manufactured
| {{{mfrd|}}}
|-
! Introduction Date
| {{{introdate|}}}
|-
! First Flight
| {{{firstflight|}}}
|}
</includeonly>


| above      = {{If empty|{{{name|}}}<includeonly>|{{PAGENAMEBASE}}</includeonly>}}


<!-- Logo and image -->


| data1      = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|}}}|sizedefault=210px|border={{#if:{{{logo_border|}}}|yes}}|alt={{{logo_alt|}}}}}


| data2      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{size|}}}}}}|sizedefault=300px|border={{#if:{{{image_border|}}}|yes}}|alt={{{alt|}}}}} <!--
<noinclude>
  -->{{#if:{{{caption|}}}{{{image_caption|}}}|<div class="ib-aircraft-caption">{{if empty|{{{image_caption|}}}|{{{caption}}}}}</div>}}
== Usage ==
<pre>
{{Infobox Aircraft
| name        = LAV-25
| type        = Infantry fighting vehicle
| inservice    = 1983-present
| mass        = LAV-25: 12.80 t (14.11 short tons)
| length      = 6.39 m (21 ft 0 in)
| width        = 2.50 m (8 ft 2 in)
| height      = 2.69 m (8 ft 10 in)
| crew        = 3+6
| mainarmament = M242 Bushmaster 25 mm chain gun with 210 rounds of ammunition
| secarmament  = Two M240 7.62 mm machine guns with 660 rounds of ammunition, one mounted co-axially and one pintle-mounted on the roof
| engine      = Detroit Diesel 6V53T 300hp
| range        = 660 km (410 mi)
| maxspeed    = 100 km/h (62 mph) on road
}}
</pre>


| rowclass3  = ib-aircraft-caption-left
<templatedata>
| data3      = {{{long_caption|}}}
{
 
  "description": "Infobox for general aircraft (Airplanes, helicopters, some others).",
| data4      =
  "params": {
 
     "name": {
| data5      =
      "label": "Name",
 
      "description": "The vehicle's name/designation",
<!-- General information -->
      "type": "string",
 
      "required": true
| header6    = General information
     },
 
     "image": {
| label7    = Other name(s)
      "label": "Image",
| data7      = {{{other_names|}}}
      "description": "File name of an image (without 'File:' prefix)",
| label8     = Type
      "type": "string"
| data8      = {{{aircraft_type|{{{type|}}}}}}
     },
| label9    = Role
     "type": {
| data9      = {{{aircraft_role|}}}
      "label": "Type",
| label10    = Project for
      "description": "Vehicle type/role",
| data10    = {{#if:{{{aircraft_type|}}}||{{{aim|}}}}}
      "type": "string"
| label11    = National origin
     },
| data11     = {{{national_origin|}}}
    "status": {
| label12    = [[Aerospace manufacturer|Manufacturer]]
      "label": "Status",
| data12     = {{{manufacturers|{{{manufacturer|}}}}}}
      "description": "Current use and status",
| label13    = Designer
      "type": "string"
| data13    = {{{design_group|}}} {{#if:{{{designer|}}}|<div> {{#if:{{{designer}}}|{{{designer|}}} {{#if:{{{design_group|}}}|(Designer)}} }}</div>}}
     },
| label14    = Built by
     "numbuilt": {
| data14     = {{{builder|}}}
      "label": "Number Built",
| label15    = Issued by
      "description": "Number built (can specify special cases)",
| data15     = {{{issuer|}}}
      "type": "string"
| label16    = Status
     },
| data16    = {{{status|}}}
     "primusers": {
| label17    = Owners
      "label": "Primary Users",
| data17     = {{{owners|}}}
      "description": "Main users - militaries, companies etc.",
| label18    = Primary user{{#if:{{{more_users|}}}|s}}
      "type": "string"
| data18    = {{{primary_user|}}}{{#if:{{{more_users|}}}|<div> {{{more_users|}}} </div>}}
     },
| label19    = Service
     "wars": {
| data19    = {{{service|}}}
      "label": "Wars",
| label20    = Major applications
      "description": "Wars or conflicts the aircraft was used in",
| data20     = {{{major_applications|}}}
      "type": "string"
| label21    = Proposals
     },
| data21     = {{{proposals|}}}
     "mfrd": {
| label22    = Prototypes
      "label": "Manufactured",
| data22    = {{{prototypes|}}}
      "description": "Range of years the vehicle was built e.g. 2001-Present",
| label23    = Number built
      "type": "string"
| data23     = {{{number_built|}}}
     },
| label24    = Construction number
     "introdate": {
| data24     = {{{construction_number|}}}
      "label": "Introduction Date",
| label25    = [[Aircraft registration|Registration]]
      "description": "Date when the aircraft was introduced into actual use",
| data25    = {{{civil_registration|}}}
      "type": "string"
| label26    = [[Serial number|Serial]]
     },
| data26     = {{{military_serial|}}}
     "firstflight": {
| label27    = Radio code
      "label": "First Flight",
| data27     = {{{radio_code|}}}
      "description": "First time the aircraft took flight, often years before intro date",
| label28    = Requirement
      "type": "string"
| data28    = {{{requirement|}}}
     }
| label29    = Aircraft carried
  }
| data29     = {{{aircraft_carried|}}}
}
| label30    = Flights
</templatedata>
| data30     = {{{flights|}}}
| label31    = Total hours
| data31    = {{{total_hours|}}}
| label32    = Total distance
| data32     = {{{total_distance|}}}
 
<!-- History and current status -->
 
| header33    = History
 
| label34     = Manufactured
| data34      = {{{construction_date|{{{produced|}}}}}}
| label35    = Introduction date
| data35      = {{{introduction|{{{introduced|}}}}}}
| label36    = First flight
| data36      = {{{first_flight|}}}
| label37    = First run
| data37      = {{#if:{{{first_flight|}}}||{{{first_run|}}}}}
| label38     = Initiated
| data38      = {{{initiated|}}}
| label40     = In service
| data40      = {{{in_service|}}}
| label41    = Last flight
| data41      = {{{last_flight|}}}
| label42    = Retired
| data42      = {{#if:{{{last_flight|}}}||{{{retired|}}}}}
| label43    = Concluded
| data43      = {{{concluded|}}}
| label44    = Expected
| data44      = {{#if:{{{concluded|}}}||{{{expected|}}}}}
| label45    = Outcome
| data45      = {{{outcome|}}}
| label46    = Developed from
| data46      = {{{developed_from|}}}
| label47    = {{#if:{{{aim|}}}{{{issuer|}}}|Related|Variants}}
| data47      = {{{variants|{{{related|}}}}}}
| label48    = Developed into
| data48      = {{{developed_into|}}}
| label49    = Preserved at
| data49      = {{{preservation|}}}
| label50     = Fate
| data50      = {{{fate|}}}
| label51    = Predecessors
| data51      = {{{predecessors|}}}
| label52    = Successors
| data52      = {{{successors|}}}
<!-- Any additional note or data source -->
| header53    = Notes
| data54      = {{{notes|}}}
}}{{#invoke:Check for unknown parameters | check | unknown={{main other|[[Category:Pages using infobox aircraft with unknown parameters|_VALUE_{{PAGENAME}}]]}} | preview=Page using [[Template:Infobox aircraft]] with unknown parameter "_VALUE_" | ignoreblank=y | aim | aircraft_carried | aircraft_role | aircraft_type | alt | builder | caption | civil_registration | concluded | construction_date | design_group | designer | developed_from | developed_into | expected | fate | first_flight | first_run | flights | image | image_border | image_caption | image_size | in_service | initiated | introduction | issuer | last_flight | logo | logo_alt | logo_border | logo_size | long_caption | major_applications | manufacturer | manufacturers | military_serial | more_users | name | national_origin | notes | number_built | other_names | outcome | owners | predecessors | preservation | primary_user | produced | proposals | prototypes | radio_code | related | requirement | retired | service | size | successors | status | total_distance | total_hours |type | variants }}<noinclude>
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 23:26, 20 October 2026




Usage

{{Infobox Aircraft
| name         = LAV-25
| type         = Infantry fighting vehicle
| inservice    = 1983-present
| mass         = LAV-25: 12.80 t (14.11 short tons)
| length       = 6.39 m (21 ft 0 in)
| width        = 2.50 m (8 ft 2 in)
| height       = 2.69 m (8 ft 10 in)
| crew         = 3+6
| mainarmament = M242 Bushmaster 25 mm chain gun with 210 rounds of ammunition
| secarmament  = Two M240 7.62 mm machine guns with 660 rounds of ammunition, one mounted co-axially and one pintle-mounted on the roof
| engine       = Detroit Diesel 6V53T 300hp
| range        = 660 km (410 mi)
| maxspeed     = 100 km/h (62 mph) on road
}}

Infobox for general aircraft (Airplanes, helicopters, some others).

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

The vehicle's name/designation

Stringrequired
Imageimage

File name of an image (without 'File:' prefix)

Stringoptional
Typetype

Vehicle type/role

Stringoptional
Statusstatus

Current use and status

Stringoptional
Number Builtnumbuilt

Number built (can specify special cases)

Stringoptional
Primary Usersprimusers

Main users - militaries, companies etc.

Stringoptional
Warswars

Wars or conflicts the aircraft was used in

Stringoptional
Manufacturedmfrd

Range of years the vehicle was built e.g. 2001-Present

Stringoptional
Introduction Dateintrodate

Date when the aircraft was introduced into actual use

Stringoptional
First Flightfirstflight

First time the aircraft took flight, often years before intro date

Stringoptional