Template:Weapon infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "|}}} {{!}}-}}" to "}}} {{!}}-}}")
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:260px; background:{{{BG|#AA0000}}}; color:{{{color1|#000}}}" cellspacing="0"
{{Infobox|start|bg=#A00}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:{{{color2|#fff}}}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|title|name={{{name|}}}}}
|-
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}}}
{{#if:{{{image|}}}|
 
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#F0F0F0}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image|}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
{{Infobox|section|title={{{section1-title|Production overview}}}|bg=#E55|color=#000|entries=
{{Infobox|entry|title={{{manufacturer-title|Manufacturer}}}|content={{{manufacturer|}}}}}
{{Infobox|entry|title={{{series-title|Model series}}}|content={{{series|}}}}}
{{Infobox|entry|title={{{type-title|Type}}}|content={{{type|}}}}}
{{Infobox|entry|title={{{cost-title|Cost}}}|content={{{cost|}}}}}
{{Infobox|entry|title={{{variant-title|Variants}}}|content={{{variant|}}}}}
}}
}}
|-
{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#EE5555}}}" {{!}} {{{section1-title|Production overview}}}}}
{{!}}-
{{#if:{{{manufacturer|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{manufacturer-title|Manufacturer}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{manufacturer}}}
{{!}}-}}
{{#if:{{{series|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{series-title|Model series}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{series}}}
{{!}}-}}
{{#if:{{{type|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{type-title|Type}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{type}}}
{{!}}-}}
{{#if:{{{cost|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{cost-title|Cost}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{cost}}}
{{!}}-}}
{{#if:{{{variant|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{variant-title|Variants}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{variant}}}
{{!}}-}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#EE5555}}}" {{!}} {{{section3-title|Specifications}}}}}
{{!}}-
{{#if:{{{length|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{length-title|Length}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{length}}}
{{!}}-}}
{{#if:{{{width|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{width-title|Width}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{width}}}
{{!}}-}}
{{#if:{{{height|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{height-title|Height}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{height}}}
{{!}}-}}
{{#if:{{{weight|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{weight-title|Weight}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{weight}}}
{{!}}-}}
{{#if:{{{ammotype|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{ammotype-title|Ammunition type}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{ammotype}}}
{{!}}-}}
{{#if:{{{feed|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{feed-title|Feed system}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{feed}}}
{{!}}-}}
{{#if:{{{operation|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{operation-title|[[wikipedia:Firearm action|Operation]]}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{operation}}}
{{!}}-}}
{{#if:{{{rate|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{rate-title|[[wikipedia:rate of fire|Rate of fire]]}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{rate}}}
{{!}}-}}
{{#if:{{{velocity|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{velocity-title|[[wikipedia:Muzzle velocity|Muzzle velocity]]}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{velocity}}}
{{!}}-}}
{{#if:{{{range|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{range-title|Effective range}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{range}}}
{{!}}-}}
{{#if:{{{hidec|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#EE5555}}}" {{!}} {{{section2-title|Service history}}}}}
{{!}}-
{{#if:{{{service|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; width:100px" {{!}}
{{{service-title|In service}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{{service}}}
{{!}}-}}
| class="infoboxfooter" colspan="2" |  
|}<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;
{{Infobox|section|title={{{section2-title|Specifications}}}|bg=#E55|color=#000|entries=
%% era changed to service
{{Infobox|entry|title={{{length-title|Length}}}|content={{{length|}}}}}
%% size split into length and weight
{{Infobox|entry|title={{{width-title|Width}}}|content={{{width|}}}}}
%% rate of fire shortened to rate
{{Infobox|entry|title={{{height-title|Height}}}|content={{{height|}}}}}
{{Infobox|entry|title={{{weight-title|Weight}}}|content={{{weight|}}}}}
{{Infobox|entry|title={{{ammotype-title|Ammunition type}}}|content={{{ammotype|}}}}}
{{Infobox|entry|title={{{capacity-title|Capacity}}}|content={{{capacity|}}}}}
{{Infobox|entry|title={{{feed-title|Feed system}}}|content={{{feed|}}}}}
{{Infobox|entry|title={{{operation-title|[[wikipedia:Firearm action|Operation]]}}}|content={{{operation|}}}}}
{{Infobox|entry|title={{{rate-title|[[wikipedia:rate of fire|Rate of fire]]}}}|content={{{rate|}}}}}
{{Infobox|entry|title={{{velocity-title|[[wikipedia:Muzzle velocity|Muzzle velocity]]}}}|content={{{velocity|}}}}}
{{Infobox|entry|title={{{optics-title|Optics}}}|content={{{optics|}}}}}
{{Infobox|entry|title={{{range-title|Effective range}}}|content={{{range|}}}}}
}}


CHANGELOG; 26/06/2014
{{Infobox|section|title={{{section3-title|Service history}}}|bg=#E55|color=#000|entries=
%% affiliation removed
{{Infobox|entry|title={{{service-title|In service}}}|content={{{service|}}}}}
-->
}}


==Usage==
{{Infobox|end}}<includeonly>{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|Weapon}}}}}</includeonly><noinclude>{{clear}}
==Usage instructions==
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 145: Line 49:
|weight=
|weight=
|ammotype=
|ammotype=
|capacity=
|feed=
|feed=
|operation=
|operation=
|rate=
|rate=
|velocity=
|velocity=
|optics=
|range=
|range=
}}
}}
Line 157: 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>

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=