NewsUnrealEdForumsFilesModsFragBU

Skin

BeyondUnreal


Personal tools

Difference between revisions of "Template:Infobox Weapon"

From Liandri Archives

Jump to: navigation, search
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| cellspacing="0" cellpadding="4" class="infobox" style="float: right; clear: right; width: 256px;"
+
<div style="float: right; margin-left: 0.5em; width: 350px;" class="infobox">
|-
+
<div style="text-align: center; font-weight: bold; margin-bottom: 0.25em;">{{{1}}}</div>
| colspan="2" style="text-align: center" | '''{{{1|{{{name}}}}}}'''{{#if:{{{image|}}}|<br />{{{image}}}}}{{#if:{{{pri_dam_type|}}}|
+
<div style="float: right;">[[{{{2}}}|200px|{{{3}}}]]</div>
|-
+
<div style="font-size: 80%; line-height: 100%;">
| style="font-size: 8pt;" | Primary Damage Type:
+
{{{4}}}
| style="font-size: 8pt;" | {{{pri_dam_type}}} }}{{#if:{{{pri_dam_amount|}}}|
+
</div>
|-
+
</div>
| style="font-size: 8pt;" | Primary Damage Amount:
 
| style="font-size: 8pt;" | {{{pri_dam_amount}}} }}{{#if:{{{pri_dam_amount|}}}|
 
|-
 
| style="font-size: 8pt;" | Alt. Damage Amount:
 
| style="font-size: 8pt;" | {{{sec_dam_amount}}} }}{{#if:{{{sec_dam_type|}}}|
 
|-
 
| style="font-size: 8pt;" | Alt. Damage Type:
 
| style="font-size: 8pt;" | {{{sec_dam_type}}} }}{{#if:{{{sec_dam_amount|}}}|
 
|-
 
| style="font-size: 8pt;" | Alt. Damage Amount:
 
| style="font-size: 8pt;" | {{{sec_dam_amount}}} }}
 
|}
 
 
<noinclude>
 
<noinclude>
{{{{FULLPAGENAME}}
+
<div style="clear: both;"></div>
| name          = Name
+
----
| image          = Image
+
Use this template for weapon infoboxes. Images will be resized to 200px. Only include fields that are necessary.
| pri_dam_type  = Hitscan
 
| pri_dam_amount = 00
 
| sec_dam_type  = Projectile
 
| sec_dam_amount = 00
 
}}
 
{{clear}}
 
==Usage==
 
Name is the only required field. Primary damage type and Alternate damage type should only be specified if they differ from the general weapon definition.
 
  
<pre>
+
Example usage:
{{Infobox Weapon
+
<nowiki>{{Infobox Weapon|</nowiki>
| name          =
+
Link Gun (UT2004)|Image:ut2004-linkgun-osiris2.jpg|The Link Gun in <nowiki>[[DM-DE-Osiris2]]</nowiki>.|
| image          =
+
; Primary fire
| pri_dam_type  =
+
: Type: Projectile
| pri_dam_amount =
+
: Damage: 30
| sec_dam_type  =
+
: Fire rate: 5.5/sec
| sec_dam_amount =
+
; Secondary fire
 +
: Type: Hitscan
 +
: Damage: 9
 +
: Fire rate: 9.17/sec
 +
; Ammunition
 +
: Weapon pickup: 70
 +
: Ammo pickup: 50
 +
: Maximum: 220
 +
}}
 +
This will show:
 +
{{Infobox Weapon|
 +
Link Gun (UT2004)|Image:ut2004-linkgun-osiris2.jpg|The Link Gun in [[DM-DE-Osiris2]].|
 +
; Primary fire
 +
: Type: Projectile
 +
: Damage: 30
 +
: Fire rate: 5.5/sec
 +
; Secondary fire
 +
: Type: Hitscan
 +
: Damage: 9
 +
: Fire rate: 9.17/sec
 +
; Ammunition
 +
: Weapon pickup: 70
 +
: Ammo pickup: 50
 +
: Maximum: 220
 
}}
 
}}
</pre>
+
</noinclude>
[[Category:Infobox templates]]</noinclude>
 

Latest revision as of 03:51, 4 January 2008

{{{1}}}
[[{{{2}}}|200px|{{{3}}}]]

{{{4}}}


Use this template for weapon infoboxes. Images will be resized to 200px. Only include fields that are necessary.

Example usage:

{{Infobox Weapon|
Link Gun (UT2004)|Image:ut2004-linkgun-osiris2.jpg|The Link Gun in [[DM-DE-Osiris2]].|
; Primary fire
: Type: Projectile
: Damage: 30
: Fire rate: 5.5/sec
; Secondary fire
: Type: Hitscan
: Damage: 9
: Fire rate: 9.17/sec
; Ammunition
: Weapon pickup: 70
: Ammo pickup: 50
: Maximum: 220
}}

This will show:

Link Gun (UT2004)
The Link Gun in DM-DE-Osiris2.
Primary fire
Type: Projectile
Damage: 30
Fire rate: 5.5/sec
Secondary fire
Type: Hitscan
Damage: 9
Fire rate: 9.17/sec
Ammunition
Weapon pickup: 70
Ammo pickup: 50
Maximum: 220