Template:Weapon infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "! class="infoboxheading" colspan="2" style="[^\n"]+" (\||{{!}}) {{#if:{{{name\|}}}\|{{{name}}}\|{{PAGENAME}}}}↵\|-" to "{{Infobox|title|name={{{name|}}}}}")
No edit summary
Line 1: Line 1:
{{Infobox|start|bg=#AA0000}}
{{Infobox|start|bg=#A00}}
{{Infobox|title|name={{{name|}}}}}
{{Infobox|title|name={{{name|}}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{#if:{{{hidea|}}}||
 
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#EE5555}}}" {{!}} {{{section1-title|Production overview}}}
{{Infobox|section|title={{{section1-title|Production overview}}}|bg=#E55|color=#000|entries=
}}
|-
{{Infobox|entry|title={{{manufacturer-title|Manufacturer}}}|content={{{manufacturer|}}}}}
{{Infobox|entry|title={{{manufacturer-title|Manufacturer}}}|content={{{manufacturer|}}}}}
{{Infobox|entry|title={{{series-title|Model series}}}|content={{{series|}}}}}
{{Infobox|entry|title={{{series-title|Model series}}}|content={{{series|}}}}}
Line 11: Line 9:
{{Infobox|entry|title={{{cost-title|Cost}}}|content={{{cost|}}}}}
{{Infobox|entry|title={{{cost-title|Cost}}}|content={{{cost|}}}}}
{{Infobox|entry|title={{{variant-title|Variants}}}|content={{{variant|}}}}}
{{Infobox|entry|title={{{variant-title|Variants}}}|content={{{variant|}}}}}
{{#if:{{{hideb|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#EE5555}}}" {{!}} {{{section3-title|Specifications}}}
}}
}}
|-
 
{{Infobox|section|title={{{section3-title|Specifications}}}|bg=#E55|color=#000|entries=
{{Infobox|entry|title={{{length-title|Length}}}|content={{{length|}}}}}
{{Infobox|entry|title={{{length-title|Length}}}|content={{{length|}}}}}
{{Infobox|entry|title={{{width-title|Width}}}|content={{{width|}}}}}
{{Infobox|entry|title={{{width-title|Width}}}|content={{{width|}}}}}
Line 27: Line 24:
{{Infobox|entry|title={{{optics-title|Optics}}}|content={{{optics|}}}}}
{{Infobox|entry|title={{{optics-title|Optics}}}|content={{{optics|}}}}}
{{Infobox|entry|title={{{range-title|Effective range}}}|content={{{range|}}}}}
{{Infobox|entry|title={{{range-title|Effective range}}}|content={{{range|}}}}}
{{#if:{{{hidec|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#EE5555}}}" {{!}} {{{section2-title|Service history}}}
}}
}}
|-
 
{{Infobox|section|title={{{section2-title|Service history}}}|bg=#E55|color=#000|entries=
{{Infobox|entry|title={{{service-title|In service}}}|content={{{service|}}}}}
{{Infobox|entry|title={{{service-title|In service}}}|content={{{service|}}}}}
}}
{{Infobox|end}}<includeonly>{{pagetitle|{{{pagetitle|{{{pagename|{{PAGENAME}}}}} - {{{pagelabel|Weapon {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}}}}</includeonly><noinclude>{{clear}}
{{Infobox|end}}<includeonly>{{pagetitle|{{{pagetitle|{{{pagename|{{PAGENAME}}}}} - {{{pagelabel|Weapon {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}}}}</includeonly><noinclude>{{clear}}
<!-- CHANGELOG, 15/10/2011
*Fields removed;
%% mpguide -- halowiki.net outdated
%% fire, accuracy, era, counterpart, counterwep, maxammo -- trivial/poorly documented/redundant
**Fields changed/altered/replaced;
%% era changed to service
%% size split into length and weight
%% rate of fire shortened to rate
CHANGELOG; 26/06/2014
%% affiliation removed
-->
==Usage==
==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.
Line 79: Line 63:


<pre>
<pre>
|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
|color1=
|color2=
|section1-title=
|section1-title=
|section2-title=
|section2-title=
</pre>
|section3-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)
 
<pre>
|hidea=
|hideb=
|hidec=
</pre>
</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 13:51, August 29, 2023

Weapon infobox
 

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:

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