Template:Weapon infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Reverted edits by CopperJarhead (Talk); changed back to last version by Meco)
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(118 intermediate revisions by 15 users not shown)
Line 1: Line 1:
<noinclude><center>''Were you looking for the template [[Template:Weapons List|Weapons List]] instead?''</center></noinclude>
{{Infobox|start|bg=#A00}}
<includeonly>{| border=0 cellspacing=0 cellpadding=4 style="float:right; clear:right; width:250px; background:#f0f0f0; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;"
{{Infobox|title|name={{{name|}}}}}
|-
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
|colspan=2 style="text-align:center; margin: 0px; padding:0px;" |{{#if:{{{image|}}}|{{{image}}}}}
 
|-
{{Infobox|section|title={{{section1-title|Production overview}}}|bg=#E55|color=#000|entries=
|colspan=2 style="text-align:center; font-size:larger; color:#FFFFFF; background:#AA0000; border-top:1px solid #999; border-bottom:1px solid #999;" |'''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
{{Infobox|entry|title={{{manufacturer-title|Manufacturer}}}|content={{{manufacturer|}}}}}
|-
{{Infobox|entry|title={{{series-title|Model series}}}|content={{{series|}}}}}
| colspan=2 style="background:#EE5555; border-bottom:1px solid #999;" | '''Production information'''
{{Infobox|entry|title={{{type-title|Type}}}|content={{{type|}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{Infobox|entry|title={{{cost-title|Cost}}}|content={{{cost|}}}}}
{{#if:{{{manufacturer|}}}|{{!}}{{!}}Manufacturer{{!}}{{!}}
{{Infobox|entry|title={{{variant-title|Variants}}}|content={{{variant|}}}}}
{{{manufacturer}}}}}
}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
 
{{#if:{{{model|}}}|{{!}}{{!}}Model{{!}}{{!}}
{{Infobox|section|title={{{section2-title|Specifications}}}|bg=#E55|color=#000|entries=
{{{model}}}}}
{{Infobox|entry|title={{{length-title|Length}}}|content={{{length|}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{Infobox|entry|title={{{width-title|Width}}}|content={{{width|}}}}}
{{#if:{{{type|}}}|{{!}}{{!}}Type{{!}}{{!}}
{{Infobox|entry|title={{{height-title|Height}}}|content={{{height|}}}}}
{{{type}}}}}
{{Infobox|entry|title={{{weight-title|Weight}}}|content={{{weight|}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{Infobox|entry|title={{{ammotype-title|Ammunition type}}}|content={{{ammotype|}}}}}
{{#if:{{{cost|}}}|{{!}}{{!}}Cost{{!}}{{!}}
{{Infobox|entry|title={{{capacity-title|Capacity}}}|content={{{capacity|}}}}}
{{{cost}}}}}
{{Infobox|entry|title={{{feed-title|Feed system}}}|content={{{feed|}}}}}
|-
{{Infobox|entry|title={{{operation-title|[[wikipedia:Firearm action|Operation]]}}}|content={{{operation|}}}}}
| colspan=2 style="background:#EE5555; border-bottom:1px solid #999;" | '''Technical specifications'''
{{Infobox|entry|title={{{rate-title|[[wikipedia:rate of fire|Rate of fire]]}}}|content={{{rate|}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{Infobox|entry|title={{{velocity-title|[[wikipedia:Muzzle velocity|Muzzle velocity]]}}}|content={{{velocity|}}}}}
{{#if:{{{size|}}}|{{!}}{{!}}Size{{!}}{{!}}
{{Infobox|entry|title={{{optics-title|Optics}}}|content={{{optics|}}}}}
{{{size}}}}}
{{Infobox|entry|title={{{range-title|Effective range}}}|content={{{range|}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
}}
{{#if:{{{damage per hit|}}}|{{!}}{{!}}Damage Per Hit{{!}}{{!}}
 
{{{damage per hit}}}}}
{{Infobox|section|title={{{section3-title|Service history}}}|bg=#E55|color=#000|entries=
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{Infobox|entry|title={{{service-title|In service}}}|content={{{service|}}}}}
{{#if:{{{magazine|}}}|{{!}}{{!}}Magazine Size{{!}}{{!}}
}}
{{{magazine}}}}}
 
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{Infobox|end}}<includeonly>{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|Weapon}}}}}</includeonly><noinclude>{{clear}}
{{#if:{{{maxammo|}}}|{{!}}{{!}}Maximum Ammunition{{!}}{{!}}
==Usage instructions==
{{{maxammo}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{fire|}}}|{{!}}{{!}}Fire Mode{{!}}{{!}}
{{{fire}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{ammotype|}}}|{{!}}{{!}}Ammunition Type{{!}}{{!}}
{{{ammotype}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{operation|}}}|{{!}}{{!}}Operation{{!}}{{!}}
{{{operation}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{rate of fire|}}}|{{!}}{{!}}Rate of Fire{{!}}{{!}}
{{{rate of fire}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{velocity|}}}|{{!}}{{!}}Muzzle Velocity{{!}}{{!}}
{{{velocity}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{accuracy|}}}|{{!}}{{!}}Accuracy{{!}}{{!}}
{{{accuracy}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{range|}}}|{{!}}{{!}}Range{{!}}{{!}}
{{{range}}}}}
|-
| colspan=2 style="background:#EE5555; border-bottom:1px solid #999;" | '''Usage'''
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{era|}}}|{{!}}{{!}}Era(s){{!}}{{!}}
{{{era}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{counterpart|}}}|{{!}}{{!}}Counterpart{{!}}{{!}}
{{{counterpart}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{counterwep|}}}|{{!}}{{!}}Counterweapon(s){{!}}{{!}}
{{{counterwep}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{affiliation|}}}|{{!}}{{!}}Affiliation{{!}}{{!}}
{{{affiliation}}}}}
|-
| colspan=2 style="text-align:center; background:#FFFFFF; border-bottom:1px solid #999; padding:0px;" | [[Template:Weapon Infobox|[Source]]]
|}
</includeonly>
<noinclude>
==Usage==
Copy and paste the following into the article and fill in the fields.
Copy and paste the following into the article and fill in the fields.
<pre>
<pre>
{{Weapon Infobox
{{Weapon infobox
| image=
|name=
| name=
|image=
| manufacturer=
|manufacturer=
| model=
|series=
| type=
|type=
| cost=
|cost=
| size=
|variant=
| damage per hit=
|service=
| magazine=
|length=
| maxammo=
|width=
| fire=
|height=
| ammotype=
|weight=
| operation=
|ammotype=
| rate of fire=
|capacity=
| velocity=
|feed=
| accuracy=
|operation=
| range=
|rate=
| era=
|velocity=
| counterpart=
|optics=
| counterwep=
|range=
| affiliation=
}}
}}
</pre>
</pre>


==Custom parameters==
The following allows you to alter the title of the sub-sections:


All fields are optional.
==Source==
<pre>
<pre>
{| border=0 cellspacing=0 cellpadding=4 style="float:right; clear:right; width:250px; background:#f0f0f0; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;"
|section1-title=
|-
|section2-title=
|colspan=2 style="text-align:center; margin: 0px; padding:0px;" |{{#if:{{{image|}}}|{{{image}}}}}
|section3-title=
|-
|colspan=2 style="text-align:center; font-size:larger; color:#FFFFFF; background:#AA0000; border-top:1px solid #999; border-bottom:1px solid #999;" |'''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
|-
| colspan=2 style="background:#EE5555; border-bottom:1px solid #999;" | '''Production information'''
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{manufacturer|}}}|{{!}}{{!}}Manufacturer{{!}}{{!}}
{{{manufacturer}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{model|}}}|{{!}}{{!}}Model{{!}}{{!}}
{{{model}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{type|}}}|{{!}}{{!}}Type{{!}}{{!}}
{{{type}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{cost|}}}|{{!}}{{!}}Cost{{!}}{{!}}
{{{cost}}}}}
|-
| colspan=2 style="background:#EE5555; border-bottom:1px solid #999;" | '''Technical specifications'''
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{size|}}}|{{!}}{{!}}Size{{!}}{{!}}
{{{size}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{damage per hit|}}}|{{!}}{{!}}Damage Per Hit{{!}}{{!}}
{{{damage per hit}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{magazine|}}}|{{!}}{{!}}Magazine Size{{!}}{{!}}
{{{magazine}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{maxammo|}}}|{{!}}{{!}}Maximum Ammunition{{!}}{{!}}
{{{maxammo}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{fire|}}}|{{!}}{{!}}Fire Mode{{!}}{{!}}
{{{fire}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{ammotype|}}}|{{!}}{{!}}Ammunition Type{{!}}{{!}}
{{{ammotype}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{operation|}}}|{{!}}{{!}}Operation{{!}}{{!}}
{{{operation}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{rate of fire|}}}|{{!}}{{!}}Rate of Fire{{!}}{{!}}
{{{rate of fire}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{velocity|}}}|{{!}}{{!}}Muzzle Velocity{{!}}{{!}}
{{{velocity}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{accuracy|}}}|{{!}}{{!}}Accuracy{{!}}{{!}}
{{{accuracy}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{range|}}}|{{!}}{{!}}Range{{!}}{{!}}
{{{range}}}}}
|-
| colspan=2 style="background:#EE5555; border-bottom:1px solid #999;" | '''Usage'''
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{era|}}}|{{!}}{{!}}Era(s){{!}}{{!}}
{{{era}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{counterpart|}}}|{{!}}{{!}}Counterpart{{!}}{{!}}
{{{counterpart}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{counterwep|}}}|{{!}}{{!}}Counterweapon(s){{!}}{{!}}
{{{counterwep}}}}}
|-style="vertical-align:top; text-align:left; font-weight:normal; border-bottom:1px solid #999;"
{{#if:{{{affiliation|}}}|{{!}}{{!}}Affiliation{{!}}{{!}}
{{{affiliation}}}}}
|-
| colspan=2 style="text-align:center; background:#FFFFFF; border-bottom:1px solid #999; padding:0px;" | [[Template:Weapon Infobox|[Source]]]
|}
</pre>
</pre>
[[Category:Important Templates|{{PAGENAME}}]]
 
[[Category:Templates|Weapon]]
[[Category:Infobox templates]]</noinclude>
</noinclude>

Latest revision as of 11:11, June 14, 2024

Weapon infobox
 

Usage instructions

Copy and paste the following into the article and fill in the fields.

{{Weapon infobox
|name=
|image=
|manufacturer=
|series=
|type=
|cost=
|variant=
|service=
|length=
|width=
|height=
|weight=
|ammotype=
|capacity=
|feed=
|operation=
|rate=
|velocity=
|optics=
|range=
}}

Custom parameters

The following allows you to alter the title of the sub-sections:

|section1-title=
|section2-title=
|section3-title=