Template:Weapon infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "|{{!}}-|{{!}}-" to "||")
(adding dedicated fields for optics and maximum capacity for ammo)
Line 82: Line 82:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{ammotype}}}
{{{ammotype}}}
}}
|-
{{#if:{{{capacity|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{capacity-title|Capacity}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{capacity}}}
}}
}}
|-
|-
Line 110: Line 117:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{velocity}}}
{{{velocity}}}
}}
|-
{{#if:{{{optics|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{optics-title|Optics}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{optics}}}
}}
}}
|-
|-
Line 164: Line 178:
|weight=
|weight=
|ammotype=
|ammotype=
|capacity=
|feed=
|feed=
|operation=
|operation=
|rate=
|rate=
|velocity=
|velocity=
|optics=
|range=
|range=
}}
}}

Revision as of 15:01, May 17, 2023

Weapon infobox
Production overview
Specifications
Service history
 

Usage

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:

|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section2-title=

Display parameters

The following allows you to hide the section header

  • hidea (hides Production section header)
  • hideb (hides Service section header)
  • hideb (hides Specs section header)
|hidea=
|hideb=
|hidec=