Template:Weapon infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Undo revision 970897 by Vegerot (talk) One does not simply change the example to change the infobox.)
m (This is why we have "|manufacturer-title="... for you to change the title if needed via transclusion, not in the template itself...)
Line 10: Line 10:
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#EE5555}}}" {{!}} {{{section1-title|Production overview}}}}}
! class="infoboxsubheading" colspan="2" style="font-size:90%; color:{{{color2|#000}}}; text-align:center; background:{{{sectionBG|#EE5555}}}" {{!}} {{{section1-title|Production overview}}}}}
{{!}}-
{{!}}-
{{#if:{{{manufacturer|}}}|
{{#if:{{{manufacturer|}}}|
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px; width:100px;" {{!}}
'''{{{manufacturer-title|Known manufacturers}}}''':
'''{{{manufacturer-title|Manufacturer}}}''':
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{!}} style="vertical-align:top; background:{{{fieldBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999999}}}; border-top:1px solid {{{lineBG|#999999}}}; font-size:90%; padding: 0 0 0 2px; line-height:14px;" {{!}}
{{{manufacturer|}}}
{{{manufacturer|}}}

Revision as of 09:58, February 21, 2012

Weapon infobox
Production overview
Service history
Specifications
[Source]

Usage

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

{{Weapon Infobox
|image= 
|manufacturer=
|series=
|type=
|cost=
|variant=
|service=
|affiliation=
|weight=
|length=
|ammotype=
|feed=
|operation=
|rate=
|velocity=
|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=