Difference between revisions of "Template:Kill notice"

From Team Fortress Wiki
Jump to: navigation, search
m (Updated documentation; Added one more example.)
(Added support for direct use of custom icons, will lag the wiki momentarily)
Line 18: Line 18:
 
   }}</div>
 
   }}</div>
 
   }}
 
   }}
  }}<div class="tf-killnotice-icon" style="padding:0em 0.5em; display:inline; vertical-align:middle; font-size:125%; font-weight:bold;">{{Icon killicon|weapon = {{{weapon|skull}}}}}
+
  }}<div class="tf-killnotice-icon" style="padding:0em 0.5em; display:inline; vertical-align:middle; font-size:125%; font-weight:bold;">{{#if:{{{custom-icon|}}}|[[Image:{{{custom-icon}}}.png]]|{{Icon killicon|weapon = {{{weapon|skull}}}}}}}
 
</div>{{#if: {{{kill-text|}}} | <span style="padding:0em 0.5em; display:inline; vertical-align:middle; color:#3e3923; font-size:125%; font-weight:bold;">{{{kill-text|}}}&nbsp;</span>}}
 
</div>{{#if: {{{kill-text|}}} | <span style="padding:0em 0.5em; display:inline; vertical-align:middle; color:#3e3923; font-size:125%; font-weight:bold;">{{{kill-text|}}}&nbsp;</span>}}
 
{{#if:{{{extend|}}}
 
{{#if:{{{extend|}}}

Revision as of 17:27, 23 January 2011

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
  • {{kill notice|extend=yes|width=50%|invert=yes|weapon=holy mackerel|killer=Scout|victim=Medic|kill-text=FISH KILL!}} generates:
Scout 
Killicon holy mackerel.png
FISH KILL! 
 Medic

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.
friendlyfire RED [optional] friendly fire option (accepts BLU or RED).
kill-text is DOMINATING [optional] text after the kill icon.
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 )