NewsUnrealEdForumsFilesModsFragBU

Skin

BeyondUnreal


Personal tools

Difference between revisions of "Template:Infobox Weapon"

From Liandri Archives

Jump to: navigation, search
m
 
(2 intermediate revisions by one other user 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}}}}}}'''<br />{{{image}}}
+
<div style="float: right;">[[{{{2}}}|200px|{{{3}}}]]</div>
{{#if:{{{pri_dam_type|}}}|<tr><th>Primary Damage Type:</th><td>{{{pri_dam_type}}}</td></tr>}}<!--
+
<div style="font-size: 80%; line-height: 100%;">
-->{{#if:{{{pri_dam_amount|}}}|<tr><th>Primary Damage Amount:</th><td>{{{pri_dam_amount}}}</td></tr>}}<!--
+
{{{4}}}
-->{{#if:{{{sec_dam_type|}}}|<tr><th>Alt. Damage Type:</th><td>{{{sec_dam_type}}}</td></tr>}}<!--
+
</div>
-->{{#if:{{{sec_dam_amount|}}}|<tr><th>Alt. Damage Amount:</th><td>{{{sec_dam_amount}}}</td></tr>}}
+
</div>
|}
 
 
<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