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

From AHWiki
Jump to: navigation, search
m (→‎Infobox Gun: added field to summary)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
  
−
==Edit the weapon page, not this template page==
+
==Edit the ordnance 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 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.
+
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.
 
</div>
 
</div>
  
 
==Usage==
 
==Usage==
  
−
=== Infobox Gun === <!-- PLEASE DON'T CHANGE THE LEVEL OF THIS HEADING, AS IT IS NECESSARY FOR PROPER TRANSCLUSION. -->
+
=== Infobox Ordnance === <!-- PLEASE DON'T CHANGE THE LEVEL OF THIS HEADING, AS IT IS NECESSARY FOR PROPER TRANSCLUSION. -->
−
<code>{{tl|Infobox Gun}}</code>
+
<code>{{tl|Infobox Ordnance}}</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: name of the weapon -->
+
|name        =<!-- REQUIRED: designation of weapon -->
 
|image        =<!-- photo.... no "Image:", just the filename -->
 
|image        =<!-- photo.... no "Image:", just the filename -->
−
|type        =<!-- REQUIRED: e.g. Light Machine Gun, Heavy Machine Gun, Autocannon -->
+
|type        =<!-- REQUIRED: e.g. Aerial bomb, rocket, torpedo -->
−
|cartridge    =<!-- optional link to parent article -->
+
|fuzetype    =<!-- e.g. Timed, Proximity, Quick -->
 
|country      =<!-- REQUIRED: country of manufacture -->
 
|country      =<!-- REQUIRED: country of manufacture -->
−
|manufacturer =<!-- manufacturing company -->
+
|weight      =<!--if not indicated in type-->
−
|weight      =
+
|chargeweight =<!--e.g. 157 lb TNT-->
 
|length      =
 
|length      =
−
|barrellength =
+
|diameter    =
−
|rateoffire  =
+
|minsafealt   =
−
|muzzlevelocity   =
 
 
|damagevalue  =
 
|damagevalue  =
 +
|target1      =
 +
|target2      =
 +
|target3      =
 +
|target4      =
 +
|target5      =
 
}}
 
}}
 
</pre>
 
</pre>
Line 37: Line 41:
 
<pre style="overflow:auto; font-size:85%;">
 
<pre style="overflow:auto; font-size:85%;">
 
{{Infobox Gun
 
{{Infobox Gun
−
|name        =MG 131
+
|name        =AN-M64
−
|image        =gun.jpg
+
|image        =AN-M64cutaway.jpg
−
|type        =Heavy Machine Gun
+
|type        =1000lb GP Bomb
−
|cartridge    =13x64mmB
+
|fuzetype    =Quick
−
|country      =Germany
+
|country      =USA
−
|manufacturer =Rheinmetall-Borsig
+
|weight      =
−
|weight      =40lb
+
|chargeweight =276lbs TNT or Amatol
−
|length      =46"
+
|length      =57"
−
|barrellength =36"
+
|diameter    =14"
−
|rateoffire   =900 rpm
+
|minsafealt   =2500 ft
−
|muzzlevelocity  =2460 fps
+
|damagevalue  =
 +
|target1      =Steel Railway bridges
 +
|target2      =Subways
 +
|target3      =Concrete docks
 +
|target4      =Light cruisers
 +
|target5      =
 +
}}
 +
 
 
}}</pre><includeonly>
 
}}</pre><includeonly>
  

Revision as of 14:46, 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 ordnance page, not this template page

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.

Usage

Infobox Ordnance

{{Infobox Ordnance}}

This infobox shows summary information guns.

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

{{Infobox Gun
|name         =<!-- REQUIRED: designation of weapon -->
|image        =<!-- photo.... no "Image:", just the filename -->
|type         =<!-- REQUIRED: e.g. Aerial bomb, rocket, torpedo -->
|fuzetype     =<!-- e.g. Timed, Proximity, Quick -->
|country      =<!-- REQUIRED: country of manufacture -->
|weight       =<!--if not indicated in type-->
|chargeweight =<!--e.g. 157 lb TNT-->
|length       =
|diameter     =
|minsafealt   =
|damagevalue  =
|target1      =
|target2      =
|target3      =
|target4      =
|target5      =
}}

Example

{{Infobox Gun
|name         =AN-M64
|image        =AN-M64cutaway.jpg
|type         =1000lb GP Bomb
|fuzetype     =Quick 
|country      =USA
|weight       =
|chargeweight =276lbs TNT or Amatol
|length       =57"
|diameter     =14"
|minsafealt   =2500 ft
|damagevalue  =
|target1      =Steel Railway bridges
|target2      =Subways
|target3      =Concrete docks
|target4      =Light cruisers
|target5      =
}}

}}