Template:Weapon infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "{{#if:({{{[^\|}\n]+\|}}})\|↵{{!}} ?class="infoboxlabel" style="[^\n"]+" {{!}}↵([^\n]+):↵{{!}} ?class="infoboxcell" style="[^\n"]+" {{!}}↵{{{[^\|}\n]+\|?}}}↵}}↵\|-" to " {{Infobox|entry|title=$2|content=$1}}")
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(11 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=
}}
|-
{{#if:{{{hidea|}}}||
! class="infoboxsubheading" colspan="2" style="color:{{{color2|#000}}}; background:{{{sectionBG|#EE5555}}}" {{!}} {{{section1-title|Production overview}}}
}}
|-
{{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 15: 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={{{section2-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 31: 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={{{section3-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}}
}}
<!-- 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
{{Infobox|end}}<includeonly>{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|Weapon}}}}}</includeonly><noinclude>{{clear}}
%% affiliation removed
==Usage instructions==
-->
 
==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 83: 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=