Template:Weapon infobox: Difference between revisions

Template page
(Created page with "{| style="background: #000000; width: 22em; margin: 0 auto; float: right; clear: right;" !colspan="2" style="background:#FF4753" | ''{{#if: {{{Title|}}}|{{{Title}}}|{{PAGENAME}}}}'' |- | colspan="2" align="center" style = "font-size: 90%; background: #333333" |{{#if: {{{image|}}} |{{{image}}}}} |- | colspan="2" align="center" style = "font-size: 90%; background: #000000" |{{#if: {{{caption|}}}| {{{caption}}}}} |- class{{{Type}}}="hiddenStructure" style="vertical-align: t...")
 
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="background: #000000; width: 22em; margin: 0 auto; float: right; clear: right;"
<templatestyles src="Template:Weapon infobox/style.css" />
!colspan="2" style="background:#FF4753" | ''{{#if: {{{Title|}}}|{{{Title}}}|{{PAGENAME}}}}''
{| 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;color: #000000;" | {{#if: {{{Alias|}}}|{{{Alias}}}|{{PAGENAME}}}}
| colspan="2" align="center" style = "font-size: 90%; background: #333333" |{{#if: {{{image|}}} |{{{image}}}}}
|-  
|-
| colspan="2" align="center" style = "font-size: 90%" |{{#if: {{{image|}}} |{{{image}}}}} <br>{{#if:{{{caption|}}}|{{{caption}}}}}
| colspan="2" align="center" style = "font-size: 90%; background: #000000" |{{#if: {{{caption|}}}| {{{caption}}}}}
|- style="vertical-align: top;"
|- class{{{Type}}}="hiddenStructure" style="vertical-align: top;"
|- class{{{Type}}}="hiddenStructure" style="vertical-align: top;"
|{{#if: {{{Type|}}}|width=8em {{!}}'''Type:'''{{!!}}{{{Type}}}}}
|{{#if: {{{Type|}}}|width=8em {{!}}'''Type:'''{{!!}}{{{Type}}}}}
Line 14: Line 14:
{{#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"{{!}}
Line 42: Line 42:
|}
|}


<br clear="{{{1|all}}}">


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


[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates|{{PAGENAME}}]]</noinclude>

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.