Difference between revisions of "Template:Kill notice"

From Team Fortress Wiki
Jump to: navigation, search
m (hardlinking)
(testing new code)
Line 1: Line 1:
{| style="width: {{{width|100%}}}; height: 40px; overflow:hidden; -moz-border-radius: 5px; border-radius: 5px; background: #{{#if:{{{dark|}}}|2A2725|F1E9CB}}; text-align:center; vertical-align: middle;"
+
<div class="tf-killnotice" style="width:100%; height:40px; background:#{{#if:{{{dark|}}}|2A2725|F1E9CB}}; border-radius:5px; text-align:center; padding-bottom:0.25em; overflow:hidden; line-height:40px;">
{{#if: {{{extend|<noinclude>yes</noinclude>}}} |  
+
<div style="vertical-align: middle;">
! style="text-align: right; width: 50%; padding-right: 5px; color: #{{#if:{{{invert|}}}|557C83|A3574A}}; font-size:125%;" {{!}} {{{killer|<noinclude>Pyro</noinclude>}}} {{#if: {{{assister|<noinclude>Medic</noinclude>}}} | + {{{assister|<noinclude>Medic</noinclude>}}} }} }}
+
{{#if:{{{extend|}}}
| <span style="position:relative;z-index:1;{{#if:{{{crit|}}}|background: url(http://wiki.teamfortress.com/w/images/9/91/Killicon_crit.png) center no-repeat;}}">{{Icon killicon|weapon={{lc:{{{weapon|<noinclude>deflected arrow</noinclude><includeonly>skull</includeonly>}}}}}}} </span>
+
| {{#if:{{{killer|}}}
{{#if: {{{extend|<noinclude>yes</noinclude>}}} |  
+
  | <div class="tf-killnotice-killer" style="padding:0em 0.5em; display:inline; vertical-align: middle; color:#{{#if:{{{invert|}}}|557C83|A3574A}}; font-size:125%; font-weight:bold;">{{{killer|}}}&nbsp;{{#if:{{{assister|}}}
! style="text-align: left; width: 50%; padding-left: 5px; color: #{{#if:{{{invert|}}}|A3574A|557C83}}; font-size:125%;" {{!}} {{{victim|Sniper}}} }}
+
  | + {{{assister|Medic}}}&nbsp;
|}<noinclude><br />{{doc begin}}
+
  }}</div>
 +
  }}
 +
}}<div class="tf-killnotice-icon" style="padding:0em 0.5em; display:inline; vertical-align: middle;">{{Icon killicon|weapon = {{{weapon|skull}}}}}</div>
 +
{{#if:{{{extend|}}}
 +
| {{#if:{{{victim|}}}
 +
  | <div class="tf-killnotice-victim" style="padding:0em 0.5em; display:inline; vertical-align: middle; color:#{{#if:{{{invert|}}}|A3574A|557C83}}; font-size:125%; font-weight:bold;">&nbsp;{{{victim|}}}</div>
 +
  }}
 +
}}
 +
</div>
 +
</div><noinclude>{{doc begin}}
 
== Usage ==
 
== Usage ==
 
=== Standard ===
 
=== Standard ===
Line 18: Line 27:
 
== Parameters ==
 
== Parameters ==
 
{| class="wikitable grid"
 
{| class="wikitable grid"
! Parameter
+
! class="header" | Parameter
! Example
+
! class="header" | Example
! Description
+
! class="header" | Description
 
|-
 
|-
 
! colspan="3" style="text-align:left;" | ''Standard''
 
! colspan="3" style="text-align:left;" | ''Standard''

Revision as of 10:26, 22 September 2010

Killicon skull.png

Documentation for Kill notice

Usage

Standard

Killicon wrench.png

Extended

  • {{kill notice|extend=yes|weapon=wrench|killer=Engineer|victim=Spy}} generates:
Engineer 
Killicon wrench.png
 Spy
  • {{kill notice|extend=yes|width=50%|weapon=wrench|killer=Engineer|victim=Spy|assister=Medic}} generates:
Engineer + Medic 
Killicon wrench.png
 Spy

Parameters

Parameter Example Description
Standard
weapon rocket launcher Name of the weapon used. See {{Icon killicon}} for a list.
Extended
extend yes Needed to use full kill notice functionality.
killer Soldier Name of the killer.
victim Scout Name of the victim.
assister Medic [optional] name of the assister.
Style
width 50% Defaults to 100% for use in infoboxes. Can be made any other value for user pages, etc.
dark yes Changes background colour of notice to a darker colour.
Other
invert yes Inverts the team colours (e.g. so the attacker is on BLU and victim on RED)

See also

Image insertion templatesview  edit )