Template:Infobox weapon: Difference between revisions
Jump to navigation
Jump to search
RobbyTheSeal (talk | contribs) (More progress.) Tag: 2017 source edit |
RobbyTheSeal (talk | contribs) (More progress.) Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
{{ | <includeonly>{{Infobox | ||
| bodystyle = {{WPMILHIST Infobox style|main_box_raw}} | | bodystyle = {{WPMILHIST Infobox style|main_box_raw}} | ||
| abovestyle = {{WPMILHIST Infobox style|header_raw}} | | abovestyle = {{WPMILHIST Infobox style|header_raw}} | ||
| subheaderstyle = {{WPMILHIST Infobox style|sub_header_raw}} | | subheaderstyle = {{WPMILHIST Infobox style|sub_header_raw}} | ||
| above = {{{ | | above = {{{unit_name|{{PAGENAMEBASE}}}}} | ||
| subheader = {{{native_name|}}} | |||
| imagestyle = {{WPMILHIST Infobox style|image_box_raw}} | | imagestyle = {{WPMILHIST Infobox style|image_box_raw}} | ||
Line 19: | Line 19: | ||
| data2 = {{{origin|}}} | | data2 = {{{origin|}}} | ||
| header3 = {{#if:{{{service}}}{{{used_by}}}{{{wars}}} | Service history }} | | header3 = {{#if:{{{service|}}}{{{used_by|}}}{{{wars|}}}| Service history }} | ||
| label4 = In service | | label4 = In service | ||
Line 50: | Line 50: | ||
| data13 = {{{Produced|}}} | | data13 = {{{Produced|}}} | ||
| label14 = Variants | | label14 = Variants | ||
| data14 = {{{variants|}}} | | data14 = {{{variants|}}} | ||
| header15 = {{#if:{{{mass|}}}{{{length|}}}{{{part_length|}}}{{{width|}}}{{{height|}}}{{{diameter|}}}{{{wingspan|}}}{{{ | | header15 = {{#if:{{{mass|}}}{{{weight|}}}{{{length|}}}{{{part_length|}}}{{{width|}}}{{{height|}}}{{{diameter|}}}{{{crew|}}}{{{passengers|}}}{{{cartridge|}}}{{{cartridge_weight|}}}{{{caliber|}}}{{{barrels|}}}{{{action|}}}{{{breech|}}}{{{recoil|}}}{{{carriage|}}}{{{elevation|}}}{{{traverse|}}}{{{rate|}}}{{{velocity|}}}{{{range|}}}{{{max_range|}}}{{{feed|}}}{{{sights|}}}{{{blade_type|}}}{{{hilt_type|}}}{{{sheath_type|}}}{{{head_type|}}}{{{haft_type|}}}{{{filling|}}}{{{filling_weight|}}}{{{detonation|}}}{{{yield|}}}{{{armour|}}}{{{primary_armament|}}}{{{secondary_armament|}}}{{{engine|}}}{{{engine_power|}}}{{{pw_ratio|}}}{{{payload_capacity|}}}{{{transmission|}}}{{{suspension|}}}{{{clearance|}}}{{{wingspan|}}}{{{propellant|}}}{{{fuel_capacity|}}}{{{vehicle_range|}}}{{{ceiling|}}}{{{altitude|}}}{{{boost|}}}{{{depth|}}}{{{speed|}}}{{{guidance|}}}{{{steering|}}}{{{accuracy|}}}{{{launch_platform|}}}{{{transport|}}}| Specifications {{#if:{{{spec_label|}}}| ({{{spec_label}}})}} }} | ||
| label16 = Mass | | label16 = Mass | ||
| data16 = {{{mass|}}} | | data16 = {{{mass|{{{weight|}}}}}} | ||
| label17 = Length | | label17 = Length | ||
| data17 = {{{length|}}} | | data17 = {{{length|}}} | ||
| label18 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| [[ | | label18 = {{#if:{{{is_ranged|}}}{{{is_artillery|}}}| [[Gun barrel|Barrel]]|{{#if:{{{is_bladed|}}}| Blade}}}} length | ||
| data18 = {{{part_length|}}} | | data18 = {{{part_length|}}} | ||
| label19 = Width | | label19 = Width | ||
| data19 = {{{width|}}} | | data19 = {{{width|}}} | ||
| label20 = Height | | label20 = Height | ||
| data20 = {{{height|}}} | | data20 = {{{height|}}} | ||
Line 160: | Line 160: | ||
}} | }} | ||
</includeonly> | |||
<noinclude> | |||
{{documentation}} | |||
</noinclude> |
Revision as of 04:43, 19 April 2024
Usage
Behaves similarly to the page found on Wikipedia. Important changes include:
- Template field “armour” has been switched to “armor”.
- links have been adjusted to point to Wikipedia through the “Wikipedia:” link extension.
- British English field & associated structures removed to reduce source text size.
- Added ability to list power/mass ratio (using “pm_ratio”) instead of power/weight ratio. This option should be used when listing specifications given in units of kW/tonne, kW/kg, or variations thereof; specifications in hp/ton or kW/ton should continue to use the standard “pw_ratio”.