Jump to content

Template:Infobox firearm cartridge: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
mNo edit summary
add optional rounding and use convert directly to reduce complexity
Line 83: Line 83:
{{#if:{{{bullet|}}}|
{{#if:{{{bullet|}}}|
! style="padding-right: 1em;" {{!}} [[Bullet]] diameter
! style="padding-right: 1em;" {{!}} [[Bullet]] diameter
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{Infobox firearm cartridge/Convert|{{{bullet}}}|mm|in}}|{{Infobox firearm cartridge/Convert|{{{bullet}}}|in|mm}}}}
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{convert|{{{bullet}}}|mm|in|abbr=on}}|{{convert|{{{bullet}}}|in|mm|abbr=on}}}}
}}
}}
|-
|-
{{#if:{{{neck|}}}|
{{#if:{{{neck|}}}|
! style="padding-right: 1em;" {{!}} Neck diameter
! style="padding-right: 1em;" {{!}} Neck diameter
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{Infobox firearm cartridge/Convert|{{{neck}}}|mm|in}}|{{Infobox firearm cartridge/Convert|{{{neck}}}|in|mm}}}}
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{convert|{{{neck}}}|mm|in|abbr=on}}|{{convert|{{{neck}}}|in|mm|abbr=on}}}}
}}
}}
|-
|-
{{#if:{{{shoulder|}}}|
{{#if:{{{shoulder|}}}|
! style="padding-right: 1em;" {{!}} Shoulder diameter
! style="padding-right: 1em;" {{!}} Shoulder diameter
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{Infobox firearm cartridge/Convert|{{{shoulder}}}|mm|in}}|{{Infobox firearm cartridge/Convert|{{{shoulder}}}|in|mm}}}}
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{convert|{{{shoulder}}}|mm|in|abbr=on}}|{{convert|{{{shoulder}}}|in|mm|abbr=on}}}}
}}
}}
|-
|-
{{#if:{{{base|}}}|
{{#if:{{{base|}}}|
! style="padding-right: 1em;" {{!}} Base diameter
! style="padding-right: 1em;" {{!}} Base diameter
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{Infobox firearm cartridge/Convert|{{{base}}}|mm|in}}|{{Infobox firearm cartridge/Convert|{{{base}}}|in|mm}}}}
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{convert|{{{base}}}|mm|in|abbr=on}}|{{convert|{{{base}}}|in|mm|abbr=on}}}}
}}
}}
|-
|-
{{#if:{{{rim_dia|}}}|
{{#if:{{{rim_dia|}}}|
! style="padding-right: 1em;" {{!}} Rim diameter
! style="padding-right: 1em;" {{!}} Rim diameter
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{Infobox firearm cartridge/Convert|{{{rim_dia}}}|mm|in}}|{{Infobox firearm cartridge/Convert|{{{rim_dia}}}|in|mm}}}}
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{convert|{{{rim_dia}}}|mm|in|abbr=on}}|{{convert|{{{rim_dia}}}|in|mm|abbr=on}}}}
}}
}}
|-
|-
{{#if:{{{rim_thick|}}}|
{{#if:{{{rim_thick|}}}|
! style="padding-right: 1em;" {{!}} Rim thickness
! style="padding-right: 1em;" {{!}} Rim thickness
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{Infobox firearm cartridge/Convert|{{{rim_thick}}}|mm|in}}|{{Infobox firearm cartridge/Convert|{{{rim_thick}}}|in|mm}}}}
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{convert|{{{rim_thick}}}|mm|in|abbr=on}}|{{convert|{{{rim_thick}}}|in|mm|abbr=on}}}}
}}
}}
|-
|-
{{#if:{{{case_length|}}}|
{{#if:{{{case_length|}}}|
! style="padding-right: 1em;" {{!}} Case length
! style="padding-right: 1em;" {{!}} Case length
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{Infobox firearm cartridge/Convert|{{{case_length}}}|mm|in}}|{{Infobox firearm cartridge/Convert|{{{case_length}}}|in|mm}}}}
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{convert|{{{case_length}}}|mm|in|abbr=on}}|{{convert|{{{case_length}}}|in|mm|abbr=on}}}}
}}
}}
|-
|-
{{#if:{{{length|}}}|
{{#if:{{{length|}}}|
! style="padding-right: 1em;" {{!}} Overall length
! style="padding-right: 1em;" {{!}} Overall length
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{Infobox firearm cartridge/Convert|{{{length}}}|mm|in}}|{{Infobox firearm cartridge/Convert|{{{length}}}|in|mm}}}}
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{convert|{{{length}}}|mm|in|abbr=on}}|{{convert|{{{length}}}|in|mm|abbr=on}}}}
}}
}}
|-
|-
Line 138: Line 138:
{{#if:{{{max_pressure|}}}|
{{#if:{{{max_pressure|}}}|
! style="padding-right: 1em;" {{!}} Maximum pressure
! style="padding-right: 1em;" {{!}} Maximum pressure
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{Infobox firearm cartridge/Convert|{{{max_pressure}}}|MPa|psi}}|{{Infobox firearm cartridge/Convert|{{{max_pressure}}}|psi|MPa}}}}
{{!}} colspan="2" {{!}} {{#ifeq:{{{is_SI_specs|}}}|yes|{{convert|{{{max_pressure}}}|MPa|psi|abbr=on}}|{{convert|{{{max_pressure}}}|psi|MPa|abbr=on}}}}
}}
}}
|-
|-
Line 174: Line 174:
{{!}}-
{{!}}-
{{#if:{{{bw1|}}}|
{{#if:{{{bw1|}}}|
{{Infobox firearm cartridge/Ballistics|is_SI_ballistics={{{is_SI_ballistics|}}}|bwx={{{bw1|}}}|bwunit={{{bwunit|}}}|btypex={{{btype1|}}}|velx={{{vel1|}}}|enx={{{en1|}}}|isnotlast={{{bw2}}}{{{bw3}}}{{{bw4}}}{{{bw5}}}{{{test_barrel_length}}}{{{balsrc}}}}}
{{Infobox firearm cartridge/Ballistics|is_SI_ballistics={{{is_SI_ballistics|}}}|bwx={{{bw1|}}}|bwunit={{{bwunit|}}}|bwround={{{bwround1|0}}}|btypex={{{btype1|}}}|velx={{{vel1|}}}|enx={{{en1|}}}|isnotlast={{{bw2}}}{{{bw3}}}{{{bw4}}}{{{bw5}}}{{{test_barrel_length}}}{{{balsrc}}}}}
}}
}}
{{!}}-
{{!}}-
{{#if:{{{bw2|}}}|
{{#if:{{{bw2|}}}|
{{Infobox firearm cartridge/Ballistics|is_SI_ballistics={{{is_SI_ballistics|}}}|bwx={{{bw2|}}}|bwunit={{{bwunit|}}}|btypex={{{btype2|}}}|velx={{{vel2|}}}|enx={{{en2|}}}|isnotlast={{{bw3}}}{{{bw4}}}{{{bw5}}}{{{test_barrel_length}}}{{{balsrc}}}}}
{{Infobox firearm cartridge/Ballistics|is_SI_ballistics={{{is_SI_ballistics|}}}|bwx={{{bw2|}}}|bwunit={{{bwunit|}}}|bwround={{{bwround2|0}}}|btypex={{{btype2|}}}|velx={{{vel2|}}}|enx={{{en2|}}}|isnotlast={{{bw3}}}{{{bw4}}}{{{bw5}}}{{{test_barrel_length}}}{{{balsrc}}}}}
}}
}}
{{!}}-
{{!}}-
{{#if:{{{bw3|}}}|
{{#if:{{{bw3|}}}|
{{Infobox firearm cartridge/Ballistics|is_SI_ballistics={{{is_SI_ballistics|}}}|bwx={{{bw3|}}}|bwunit={{{bwunit|}}}|btypex={{{btype3|}}}|velx={{{vel3|}}}|enx={{{en3|}}}|isnotlast={{{bw4}}}{{{bw5}}}{{{test_barrel_length}}}{{{balsrc}}}}}
{{Infobox firearm cartridge/Ballistics|is_SI_ballistics={{{is_SI_ballistics|}}}|bwx={{{bw3|}}}|bwunit={{{bwunit|}}}|bwround={{{bwround3|0}}}|btypex={{{btype3|}}}|velx={{{vel3|}}}|enx={{{en3|}}}|isnotlast={{{bw4}}}{{{bw5}}}{{{test_barrel_length}}}{{{balsrc}}}}}
}}
}}
{{!}}-
{{!}}-
{{#if:{{{bw4|}}}|
{{#if:{{{bw4|}}}|
{{Infobox firearm cartridge/Ballistics|is_SI_ballistics={{{is_SI_ballistics|}}}|bwx={{{bw4|}}}|bwunit={{{bwunit|}}}|btypex={{{btype4|}}}|velx={{{vel4|}}}|enx={{{en4|}}}|isnotlast={{{bw5}}}{{{test_barrel_length}}}{{{balsrc}}}}}
{{Infobox firearm cartridge/Ballistics|is_SI_ballistics={{{is_SI_ballistics|}}}|bwx={{{bw4|}}}|bwunit={{{bwunit|}}}|bwround={{{bwround4|0}}}|btypex={{{btype4|}}}|velx={{{vel4|}}}|enx={{{en4|}}}|isnotlast={{{bw5}}}{{{test_barrel_length}}}{{{balsrc}}}}}
}}
}}
{{!}}-
{{!}}-
{{#if:{{{bw5|}}}|
{{#if:{{{bw5|}}}|
{{Infobox firearm cartridge/Ballistics|is_SI_ballistics={{{is_SI_ballistics|}}}|bwx={{{bw5|}}}|bwunit={{{bwunit|}}}|btypex={{{btype5|}}}|velx={{{vel5|}}}|enx={{{en5|}}}|isnotlast={{{test_barrel_length|}}}{{{balsrc|}}}}}
{{Infobox firearm cartridge/Ballistics|is_SI_ballistics={{{is_SI_ballistics|}}}|bwx={{{bw5|}}}|bwunit={{{bwunit|}}}|bwround={{{bwround5|0}}}|btypex={{{btype5|}}}|velx={{{vel5|}}}|enx={{{en5|}}}|isnotlast={{{test_barrel_length|}}}{{{balsrc|}}}}}
}}
}}
{{!}}-
{{!}}-

Revision as of 23:31, 27 November 2012