Template:Weapon infobox: Difference between revisions

Template page
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Weapon infobox/style.css" />
<templatestyles src="Template:Weapon infobox/style.css" />
{| class="tpl:infobox" style="background-color:rgba(217, 217, 217, 0.2);border: solid;border-color:#3a40450f; width: 22em; float: right; clear: left;"
{| class="tpl:infobox" style="background-color:rgba(217, 217, 217, 0.2);border: solid;border-color:#3a40450f;width: 22em;float: right;clear: left;display: inline-table;"
!colspan="2" style="background:#FF4753" | {{#if: {{{Alias|}}}|{{{Alias}}}|{{PAGENAME}}}}
!colspan="2" style="background:#FF4753;color: #000000;" | {{#if: {{{Alias|}}}|{{{Alias}}}|{{PAGENAME}}}}
|-  
|-  
| colspan="2" align="center" style = "font-size: 90%" |{{#if: {{{image|}}} |{{{image}}}}} <br>{{#if:{{{caption|}}}|{{{caption}}}}}
| colspan="2" align="center" style = "font-size: 90%" |{{#if: {{{image|}}} |{{{image}}}}} <br>{{#if:{{{caption|}}}|{{{caption}}}}}
Line 9: Line 9:
|- class{{{Attachments}}}="hiddenStructure" style="vertical-align: top;"
|- class{{{Attachments}}}="hiddenStructure" style="vertical-align: top;"
{{#if: {{{Attachments|}}}|{{!}}'''Attachment(s):'''{{!!}}{{{Attachments}}}}}
{{#if: {{{Attachments|}}}|{{!}}'''Attachment(s):'''{{!!}}{{{Attachments}}}}}
|- class{{{users}}}="hiddenStructure" style="vertical-align: top;"
|- class{{{Users}}}="hiddenStructure" style="vertical-align: top;"
{{#if: {{{users|}}}|{{!}}'''USed By:'''{{!!}}{{{Kills}}}}}
|{{#if: {{{Users|}}}|{{!}}'''Used by:'''{{!!}}{{{Users}}}}}
|-
|- class{{{Kills}}}="hiddenStructure" style="vertical-align: top;"
|- class{{{Kills}}}="hiddenStructure" style="vertical-align: top;"
{{#if: {{{Kills|}}}|{{!}}'''Kill(s):'''{{!!}}{{{Kills}}}}}
{{#if: {{{Kills|}}}|{{!}}'''Kill(s):'''{{!!}}{{{Kills}}}}}
|-  
|-  
{{#if: {{{Appearances|}}}|{{!}}colspan="2" align="center" style="background:#FF4753" {{!}} '''Appearances'''
{{#if: {{{Appearances|}}}|{{!}}colspan="2" align="center" style="background:#FF4753;color: #000000" {{!}} '''Appearances'''
{{!}}-
{{!}}-
{{!}} colspan="2"{{!}}
{{!}} colspan="2"{{!}}

Latest revision as of 20:37, 15 June 2023

Weapon infobox


Usage

Made this quick template here to help enhance the articles a bit. Copy and paste the following code:

{{Weapon infobox
| Title = 
| image = 
| caption = 
| Type = 
| Attachments = 
| Users = 
| Kills = 
| Appearances = 
}}


Note: do not remove fields, just leave them blank if there's no info.