Difference between revisions of "Template:InfoboxWeapon"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{| class="va-infobox"
 
{| class="va-infobox"
 
|-  
 
|-  
! colspan="2" class="color2" style="background: #a4d;" | {{{name}}}
+
! colspan="2" class="color2" style="background: #000;color: #FFFFFF" | {{{name}}}
 
|-
 
|-
|colspan="2" class="color2" style="background: #FFF;font-size: smaller;"|{{{image}}}<br>{{{caption}}}
+
{{#if: {{{image|}}}|
|-
+
{{!}}colspan="2" style="text-align: center; font-size: smaller;border-bottom: 1px solid #aaa;" {{!}}{{{image}}}<br>{{{caption}}}
| colspan="2" class="color2" style="background: #1d8;" | Group: {{{group}}}
+
{{!}}-
 +
}}
 +
! Group:
 +
| {{{group}}}
 
|-  
 
|-  
 
![[Technology level|Tech Level]]
 
![[Technology level|Tech Level]]
| {{{TL}}}
+
| {{TL|{{{TL}}}}}
 
|-
 
|-
 
! Size
 
! Size
Line 19: Line 22:
 
| {{{cost}}}
 
| {{{cost}}}
 
|-  
 
|-  
 +
! Ammo
 +
| {{{ammo}}}
 +
|-
 
{{#if: {{{manufacturer|}}}|
 
{{#if: {{{manufacturer|}}}|
 
{{!}}'''Manufacturer'''
 
{{!}}'''Manufacturer'''
{{!}} [[{{{manufacturer}}}]]
+
{{!}} {{#ifeq: {{{manufacturer}}}|Various|{{{manufacturer}}}|[[{{{manufacturer}}}]]}}
 +
{{!}}-
 +
}}
 +
{{#if: {{{alsosee|}}}|
 +
{{!}} Also see
 +
{{!}} {{{alsosee|}}}
 
{{!}}-
 
{{!}}-
! Ammo
 
| {{{ammo}}}
 
|-
 
| colspan="2" style="font-size: smaller; border-top: 1px solid #aaa;" | {{{footnote}}}
 
|}<noinclude><includeonly>[[Category: Goods]][[Category: Weapons]]</includeonly>
 
[[Category:Infobox|Weapon]][[Category:Templates]]
 
 
Template for weapons, uses the following parameters:
 
*name
 
*image
 
*caption
 
*group
 
*manufacturer (auto link)
 
*cost,
 
*weight
 
*size
 
*TL
 
*Ammo type(s)
 
*Footnote
 
<pre>
 
{{InfoboxWeapon
 
  |name={{{name}}}
 
  |TL={{{TL}}}
 
  |size={{{size}}}
 
  |volume={{{volume}}}
 
  |weight={{{weight}}}
 
  |cost={{{cost}}}
 
  |ammo={{{ammo size and type}}}
 
  |group={{{Type (Pistol, Rifle, etc) and ammo type (Slug, Beam, etc)}}}
 
  |manufacturer={{{manufacturer}}}
 
  |footnote={{{footnote}}}
 
 
}}
 
}}
</pre>
+
{{#if: {{{ref|}}}|
 +
{{!}} Reference
 +
{{!}} {{{ref}}}
 +
{{!}}-
 +
}}
 +
| colspan="2" style="font-size: smaller; border-top: 1px solid #aaa;" | {{{footnote|}}}
 +
|}<includeonly>[[Category:Goods]][[Category:Weapon]]</includeonly><noinclude>{{InfoboxWeapon/doc}}
 +
[[Category:Infobox|Weapon]]
 +
[[Category:Templates|Weapon]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:49, 26 June 2020

{{{name}}}
Group: {{{group}}}
Tech Level TL–{{{TL}}}
Size {{{size}}}
Weight {{{weight}}}
Cost {{{cost}}}
Ammo {{{ammo}}}

Template for weapons, uses the following parameters:

name
Name of the weapon
image
Image for the weapon
caption
Caption for the image
group
Type group of the weapon (Pistol, rifle) and ammo type (Slug, Beam, etc)
TL
Technology level of manufacture of the weapon
size
Size of the weapon in liters
weight
Weight of the weapon in kg
cost
Cost of the weapon
ammo
The size and type ammunition for the weapon, if the weapon uses it
manufacturer
(Optional) the single primary manufacturer of the weapon, creates link
ref
Optional. Primary source reference for this item. Use Template:Ludography ref if at all possible.
footnote
Footnote for the weapon
{{InfoboxWeapon
|name    = {{{name}}}
|image   = {{{image}}}
|caption = {{{caption}}}
|group   = {{{Type (Pistol, Rifle, etc) and ammo type (Slug, Beam, etc)}}}
|TL      = {{{TL}}}
|size    = {{{size}}}
|weight  = {{{weight}}}
|cost    = {{{cost}}}
|ammo    = {{{ammo size and type}}}
|footnote= {{{footnote}}}
|manufacturer= {{{manufacturer}}}
|ref     = {{{ref}}}
}}