Difference between revisions of "Template:Infobox Gun/doc"

From AHWiki
Jump to: navigation, search
(Undo revision 4876 by Murdr (Talk) Oops, saved wrong window.)
 
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
  
−
==Edit the ordnance page, not this template page==
+
==Edit the weapon page, not this template page==
 
<div style="background: #FFFFEA;padding: 1%;border: 1px solid #C7C7B7;margin: 0 0 1em;">
 
<div style="background: #FFFFEA;padding: 1%;border: 1px solid #C7C7B7;margin: 0 0 1em;">
−
To add infobox data to a ordnance page, '''do not edit this page'''.  Open this page in another window/tab and use the information to help you edit the infobox on the weapon page.
+
To add infobox data to a weapon page, '''do not edit this page'''.  Open this page in another window/tab and use the information to help you edit the infobox on the weapon page.
 
</div>
 
</div>
  
 
==Usage==
 
==Usage==
  
−
=== Infobox Ordnance === <!-- PLEASE DON'T CHANGE THE LEVEL OF THIS HEADING, AS IT IS NECESSARY FOR PROPER TRANSCLUSION. -->
+
=== Infobox Gun === <!-- PLEASE DON'T CHANGE THE LEVEL OF THIS HEADING, AS IT IS NECESSARY FOR PROPER TRANSCLUSION. -->
−
<code>{{tl|Infobox Ordnance}}</code>
+
<code>{{tl|Infobox Gun}}</code>
  
 
This infobox shows summary information guns.
 
This infobox shows summary information guns.
Line 18: Line 18:
 
<pre style="overflow:auto">
 
<pre style="overflow:auto">
 
{{Infobox Gun
 
{{Infobox Gun
−
|name        =<!-- REQUIRED: designation of weapon -->
+
|name        =<!-- REQUIRED: name of the weapon -->
 
|image        =<!-- photo.... no "Image:", just the filename -->
 
|image        =<!-- photo.... no "Image:", just the filename -->
−
|type        =<!-- REQUIRED: e.g. Aerial bomb, rocket, torpedo -->
+
|type        =<!-- REQUIRED: e.g. Light Machine Gun, Heavy Machine Gun, Autocannon -->
−
|fuzetype    =<!-- e.g. Timed, Proximity, Quick -->
+
|cartridge    =<!-- optional link to parent article -->
 
|country      =<!-- REQUIRED: country of manufacture -->
 
|country      =<!-- REQUIRED: country of manufacture -->
−
|weight      =<!--if not indicated in type-->
+
|manufacturer =<!-- manufacturing company -->
−
|chargeweight =<!--e.g. 157 lb TNT-->
+
|weight      =
 
|length      =
 
|length      =
−
|diameter    =
+
|barrellength =
−
|minsafealt   =
+
|rateoffire  =
 +
|muzzlevelocity   =
 
|damagevalue  =
 
|damagevalue  =
−
|target1      =
 
−
|target2      =
 
−
|target3      =
 
−
|target4      =
 
−
|target5      =
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 41: Line 37:
 
<pre style="overflow:auto; font-size:85%;">
 
<pre style="overflow:auto; font-size:85%;">
 
{{Infobox Gun
 
{{Infobox Gun
−
|name        =AN-M64
+
|name        =MG 131
−
|image        =AN-M64cutaway.jpg
+
|image        =gun.jpg
−
|type        =1000lb GP Bomb
+
|type        =Heavy Machine Gun
−
|fuzetype    =Quick
+
|cartridge    =13x64mmB
−
|country      =USA
+
|country      =Germany
−
|weight      =
+
|manufacturer =Rheinmetall-Borsig
−
|chargeweight =276lbs TNT or Amatol
+
|weight      =40lb
−
|length      =57"
+
|length      =46"
−
|diameter    =14"
+
|barrellength =36"
−
|minsafealt   =2500 ft
+
|rateoffire   =900 rpm
−
|damagevalue  =
+
|muzzlevelocity  =2460 fps
−
|target1      =Steel Railway bridges
 
−
|target2      =Subways
 
−
|target3      =Concrete docks
 
−
|target4      =Light cruisers
 
−
|target5      =
 
−
}}
 
−
 
 
 
}}</pre><includeonly>
 
}}</pre><includeonly>
  

Latest revision as of 14:48, 8 December 2008

This is a documentation subpage for Template:Infobox Gun (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Edit the weapon page, not this template page

To add infobox data to a weapon page, do not edit this page. Open this page in another window/tab and use the information to help you edit the infobox on the weapon page.

Usage

Infobox Gun

{{Infobox Gun}}

This infobox shows summary information guns.

Only the name, type and country fields are required; all others are optional.

{{Infobox Gun
|name         =<!-- REQUIRED: name of the weapon -->
|image        =<!-- photo.... no "Image:", just the filename -->
|type         =<!-- REQUIRED: e.g. Light Machine Gun, Heavy Machine Gun, Autocannon -->
|cartridge    =<!-- optional link to parent article -->
|country      =<!-- REQUIRED: country of manufacture -->
|manufacturer =<!-- manufacturing company -->
|weight       =
|length       =
|barrellength =
|rateoffire   =
|muzzlevelocity   =
|damagevalue  =
}}

Example

{{Infobox Gun
|name         =MG 131
|image        =gun.jpg
|type         =Heavy Machine Gun
|cartridge    =13x64mmB
|country      =Germany
|manufacturer =Rheinmetall-Borsig
|weight       =40lb
|length       =46"
|barrellength =36"
|rateoffire   =900 rpm
|muzzlevelocity   =2460 fps
}}