Difference between revisions of "Template:Infobox weapon"

From Self-sufficiency
Jump to: navigation, search
m (Added explanation)
(Rework into new template)
Line 1: Line 1:
{| class="infobox" style="width: 18em;"
+
{| class="infobox" style="width: 315px; border-spacing: 2px; "
|- style="vertical-align: top;"
+
|-  
! style="text-align: left;" | Classification
+
! colspan="2" style="background: lightsteelblue; text-align: center;" | {{{name|{{PAGENAME}}}}}
| {{{Classification}}}
+
|-
|- style="vertical-align: top;"
+
{{#if:{{{image|}}}|
! style="text-align: left;" | Time Period
+
{{!}} colspan="2" style="text-align: center; font-size: 90%;" {{!}} {{{image|}}}<br/>{{{caption|}}}
| {{{Year - Year}}}}
+
}}
|- style="vertical-align: top;"
+
|-
! style="text-align: left;" | Avg. Length
+
! style="text-align: left;" | Type:
| {{{##" (## cm)}}}
+
| {{{type|}}}
|- style="vertical-align: top;"
+
|-
! style="text-align: left;" | Avg. Weight
+
! style="text-align: left;" | Country of origin:
| {{{## lbs. (## kg)}}}
+
| {{{country|}}}
|- style="vertical-align: top;"
+
|-
! style="text-align: left;" | Blade Type
+
! style="text-align: left;" | Designer:
| {{{Blade description}}}
+
| {{{designer|}}}
|- style="vertical-align: top;"
+
|-
! style="text-align: left;" | Hilt Type
+
! colspan="2" style="background: lightsteelblue;" | Service history
| {{{Hilt description}}}
+
|-
|}
+
{{#if:{{{service_date|}}}|
 
+
! style="text-align: left;" {{!}} Dates of service:
 
+
{{!}} {{{service_date|}}}
{| class="infobox" style="width: 18em;"
+
}}
|- style="vertical-align: top;"
+
|-
! style="text-align: left;" | Classification
+
{{#if:{{{service_force|}}}|
| {{{Classification}}}
+
! style="text-align: left;" {{!}} Forces of service:
|- style="vertical-align: top;"
+
{{!}} {{{service_force|}}}
! style="text-align: left;" | Time Period
+
}}
| {{{Year - Year}}}}
+
|-
|- style="vertical-align: top;"
+
{{#if:{{{wars|}}}|
! style="text-align: left;" | Avg. Length
+
! style="text-align: left;" {{!}} Wars:
| {{{##" (## cm)}}}
+
{{!}} {{{wars|}}}
|- style="vertical-align: top;"
+
}}
! style="text-align: left;" | Avg. Weight
+
|-
| {{{## lbs. (## kg)}}}
+
! colspan="2" style="background: lightsteelblue;" | Production history
|- style="vertical-align: top;"
+
|-
! style="text-align: left;" | Head Type
+
! style="text-align: left;" | Manufacturer:
| {{{Head description}}}
+
| {{{manufacturer|}}}
|- style="vertical-align: top;"
+
|-
! style="text-align: left;" | Haft Type
+
{{#if:{{{design_date|}}}|
| {{{Haft description}}}
+
! style="text-align: left;" {{!}} Date of design:
|}
+
{{!}} {{{design_date|}}}
 
+
}}
This template was created to provide basic at-a-glance information on weapons page. Ideally, coupled with a good picture, this can give a browsing reader an accurate idea of what the weapon is without forcing them to read a long article.
+
|-
 +
{{#if:{{{production_date|}}}|
 +
! style="text-align: left;" {{!}} Dates of production:
 +
{{!}} {{{production_date|}}}
 +
}}
 +
|-
 +
{{#if:{{{variants|}}}|
 +
! style="text-align: left;" {{!}} Variants:
 +
{{!}} {{{variants|}}}
 +
}}
 +
|-
 +
{{#if:{{{number|}}}|
 +
! style="text-align: left;" {{!}} Number built:
 +
{{!}} {{{number|}}}
 +
}}
 +
|-
 +
! colspan="2" style="background: lightsteelblue;" | Specifications
 +
|-
 +
{{#if:{{{cartridge|}}}|
 +
! style="text-align: left;" {{!}} Cartridge:
 +
{{!}} {{{cartridge|}}}
 +
}}
 +
|-
 +
{{#if:{{{action|}}}|
 +
! style="text-align: left;" {{!}} Action:
 +
{{!}} {{{action|}}}
 +
}}
 +
|-
 +
{{#if:{{{rate|}}}|
 +
! style="text-align: left;" {{!}} Rate of fire:
 +
{{!}} {{{rate|}}}
 +
}}
 +
|-
 +
{{#if:{{{velocity|}}}|
 +
! style="text-align: left;" {{!}} Muzzle velocity:
 +
{{!}} {{{velocity|}}}
 +
}}
 +
|-
 +
{{#if:{{{range|}}}|
 +
! style="text-align: left;" {{!}} Effective range:
 +
{{!}} {{{range|}}}
 +
}}
 +
|-
 +
{{#if:{{{max_range|}}}|
 +
! style="text-align: left;" {{!}} Maximum range:
 +
{{!}} {{{max_range|}}}
 +
}}
 +
|-
 +
{{#if:{{{weight|}}}|
 +
! style="text-align: left;" {{!}} Weight:
 +
{{!}} {{{weight|}}}
 +
}}
 +
|-
 +
{{#if:{{{length|}}}|
 +
! style="text-align: left;" {{!}} Length:
 +
{{!}} {{{length|}}}
 +
}}
 +
|-
 +
{{#if:{{{barrel_length|}}}|
 +
! style="text-align: left;" {{!}} Barrel length:
 +
{{!}} {{{barrel_length|}}}
 +
}}
 +
|-
 +
{{#if:{{{feed|}}}|
 +
! style="text-align: left;" {{!}} Feed system:
 +
{{!}} {{{feed|}}}
 +
}}
 +
|-
 +
{{#if:{{{sights|}}}|
 +
! style="text-align: left;" {{!}} Sights:
 +
{{!}} {{{sights|}}}
 +
}}
 +
|-
 +
|}<noinclude> {{clear}}
 +
[[Category:Infobox templates|Weapon]]
 +
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 +
</noinclude>

Revision as of 04:55, 12 June 2006

Infobox weapon
Type:
Country of origin:
Designer:
Service history
Production history
Manufacturer:
Specifications