Difference between revisions of "Template:Weapon Infobox"

From Sven Co-op
Jump to navigation Jump to search
m
m (Removed unused fields, moved noinclude.)
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|{{#if:#AA0000|background: #ffffff|background: #AA0000}}}}" | {{{image2|}}}
 
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|{{#if:#AA0000|background: #ffffff|background: #AA0000}}}}" | {{{image2|}}}
 
|-  
 
|-  
! class="infoboxheading" colspan="2" style="{{#if:6080A0|background: #6080A0|background: #6080A0}}; {{{css|}}}" | {{{{{{2|name}}}}}}
+
! class="infoboxheading" colspan="2" | {{{{{{2|name}}}}}}
{{#if:{{{hidep|}}}|{{!}}-|{{!}}-
+
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="background: #80A0C0" {{!}} '''Basic information'''}}
+
! class="infoboxsubheading" colspan="2" {{!}} '''Basic information'''}}
 
  {{#if:{{{manufacturer|}}}|
 
  {{#if:{{{manufacturer|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Manufacturer
+
{{!}} class="infoboxlabel" {{!}} Manufacturer
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{manufacturer|}}}
 
{{{manufacturer|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{model|}}}|
 
|}} {{#if:{{{model|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Model
+
{{!}} class="infoboxlabel" {{!}} Model
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{model|}}}
 
{{{model|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{type|}}}|
 
|}} {{#if:{{{type|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Type
+
{{!}} class="infoboxlabel" {{!}} Type
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{type|}}}
 
{{{type|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{entity|}}}|
 
|}} {{#if:{{{entity|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Entity
+
{{!}} class="infoboxlabel" {{!}} Entity
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{entity|}}}
 
{{{entity|}}}
 
{{!}}-
 
{{!}}-
|}} {{#if:{{{hidet|}}}|{{!}}-|{{!}}-
+
|}} {{#if:{{{hides|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="background: #80A0C0" {{!}} '''Specifications'''}}
+
! class="infoboxsubheading" colspan="2" {{!}} '''Specifications'''}}
 
  {{#if:{{{damage|}}}|
 
  {{#if:{{{damage|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Damage
+
{{!}} class="infoboxlabel" {{!}} Damage
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{damage|}}}
 
{{{damage|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{magazine|}}}|
 
|}} {{#if:{{{magazine|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Ammo
+
{{!}} class="infoboxlabel" {{!}} Ammo
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{magazine|}}}
 
{{{magazine|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{magtype|}}}|
 
|}} {{#if:{{{magtype|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Magazine/reload type
+
{{!}} class="infoboxlabel" {{!}} Magazine/reload type
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{magtype|}}}
 
{{{magtype|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{maxammo|}}}|
 
|}} {{#if:{{{maxammo|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Max ammo
+
{{!}} class="infoboxlabel" {{!}} Max ammo
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{maxammo|}}}
 
{{{maxammo|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{fire|}}}|
 
|}} {{#if:{{{fire|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Modes
+
{{!}} class="infoboxlabel" {{!}} Modes
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{fire|}}}
 
{{{fire|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{category|}}}|
 
|}} {{#if:{{{category|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} HUD category
+
{{!}} class="infoboxlabel" {{!}} HUD category
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{category|}}}
 
{{{category|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{ammotype|}}}|
 
|}} {{#if:{{{ammotype|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Ammo type
+
{{!}} class="infoboxlabel" {{!}} Ammo type
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{ammotype|}}}
 
{{{ammotype|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{rate of fire|}}}|
 
|}} {{#if:{{{rate of fire|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Rate of fire
+
{{!}} class="infoboxlabel" {{!}} Rate of fire
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{rate of fire|}}}
 
{{{rate of fire|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{recoil|}}}|
 
|}} {{#if:{{{recoil|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Recoil
+
{{!}} class="infoboxlabel" {{!}} Recoil
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{recoil|}}}
 
{{{recoil|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{spread|}}}|
 
|}} {{#if:{{{spread|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Spread
+
{{!}} class="infoboxlabel" {{!}} Spread
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{spread|}}}
 
{{{spread|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{projectile speed|}}}|
 
|}} {{#if:{{{projectile speed|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Projectile speed
+
{{!}} class="infoboxlabel" {{!}} Projectile speed
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{projectile speed|}}}
 
{{{projectile speed|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{accuracy|}}}|
 
|}} {{#if:{{{accuracy|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Accuracy
+
{{!}} class="infoboxlabel" {{!}} Accuracy
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{accuracy|}}}
 
{{{accuracy|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{range|}}}|
 
|}} {{#if:{{{range|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Range
+
{{!}} class="infoboxlabel" {{!}} Range
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{range|}}}
 
{{{range|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{reload|}}}|
 
|}} {{#if:{{{reload|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Reload time
+
{{!}} class="infoboxlabel" {{!}} Reload time
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{reload|}}}
 
{{{reload|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{underwater|}}}|
 
|}} {{#if:{{{underwater|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Usable underwater
+
{{!}} class="infoboxlabel" {{!}} Usable underwater
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{underwater|}}}
 
{{{underwater|}}}
 
{{!}}-
 
{{!}}-
 
|}} {{#if:{{{hideu|}}}|{{!}}-|{{!}}-
 
|}} {{#if:{{{hideu|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="background: #80A0C0" {{!}} '''Usage'''}}
+
! class="infoboxsubheading" colspan="2" {{!}} '''Usage'''}}
 
  {{#if:{{{usedby|}}}|
 
  {{#if:{{{usedby|}}}|
 
{{!}}-
 
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Used by
+
{{!}} class="infoboxlabel" {{!}} Used by
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
+
{{!}} class="infoboxcell" {{!}}
 
{{{usedby|}}}
 
{{{usedby|}}}
 
{{!}}-
 
{{!}}-
 
|}}
 
|}}
 
|-
 
|-
! class="infoboxheading" colspan="2" style="{{#if:6080A0|background: #6080A0|background: #6080A0}}; {{{css|}}}" |  
+
! class="infoboxfooter" colspan="2" |  
 
|}
 
|}
</div><!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. -->
+
</div><!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. --><noinclude>
  
<noinclude>
 
 
==Usage instructions==
 
==Usage instructions==
 
Copy and paste the following code into the top of the article, filling the appropriate fields. Omitted or blank fields will not be shown on the article page.
 
Copy and paste the following code into the top of the article, filling the appropriate fields. Omitted or blank fields will not be shown on the article page.
Line 169: Line 168:
 
| underwater=
 
| underwater=
 
| usedby=
 
| usedby=
| hidep=
+
| hideb=
| hidet=
+
| hides=
 
| hideu=
 
| hideu=
| hideg=
 
 
}}</nowiki></pre>
 
}}</nowiki></pre>
  
 
===Display parameters===
 
===Display parameters===
*hidep
+
*hideb
*hidet
+
*hides
 
*hideu
 
*hideu
*hideg
 
  
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
 
[[Category:Weapons]]
 
[[Category:Weapons]]
 
</noinclude>
 
</noinclude>

Latest revision as of 22:58, 14 September 2018

{{{name}}}
Basic information
Specifications
Usage
 

1 Usage instructions

Copy and paste the following code into the top of the article, filling the appropriate fields. Omitted or blank fields will not be shown on the article page.

{{Weapon_Infobox
| image=
| image2=
| name=
| manufacturer=
| model=
| type=
| entity=
| damage=
| magazine=
| magtype=
| maxammo=
| fire=
| ammotype=
| category=
| operation=
| rate of fire=
| recoil=
| spread=
| projectile speed=
| accuracy=
| range=
| reload=
| underwater=
| usedby=
| hideb=
| hides=
| hideu=
}}

1.1 Display parameters

  • hideb
  • hides
  • hideu