Difference between revisions of "Template:Kill notice"

From Team Fortress Wiki
Jump to: navigation, search
(documented)
m (centering)
 
Line 1: Line 1:
<div {{#if:{{{kill-tool|}}}|id="tooltip" title="{{{kill-tool|}}}"}} class="tf-killnotice" style="width:{{{width|100%}}}; height:40px; background:#{{#if:{{{dark|}}}|2A2725|F1E9CB}}; {{#if:{{{kill-tool|}}}|background:#d0c7a9;cursor:help;}}<!--  
+
<div {{#if:{{{kill-tool|}}}|id="tooltip" title="{{{kill-tool|}}}"}} class="tf-killnotice" style="width:{{{width|100%}}}; height:40px; background:#{{#if:{{{dark|}}}|2A2725|F1E9CB}}; {{#if:{{{kill-tool|}}}|background:#d0c7a9;cursor:help;position:relative;}}<!--  
 
     // Compatibility.
 
     // Compatibility.
 
   -->border-radius: 5px;<!--  
 
   -->border-radius: 5px;<!--  
Line 5: Line 5:
 
   -->-webkit-border-radius: 5px;<!--  
 
   -->-webkit-border-radius: 5px;<!--  
 
     //  
 
     //  
   -->text-align:center; padding:0.125em 0em; overflow:hidden; line-height:40px; {{{bodystyle|}}}">{{#if:{{{kill-tool|}}}|<div style="float:left;margin:0px 10px">[[File:Pictogram_question.png|15px|middle|link=|left]]</div>}}
+
   -->text-align:center; padding:0.125em 0em; overflow:hidden; line-height:40px; {{{bodystyle|}}}">{{#if:{{{kill-tool|}}}|<div style="float:left;margin:0px 10px;position:absolute;">[[File:Pictogram_question.png|15px|middle|link=|left]]</div>}}
 
  <div style="vertical-align: middle;">
 
  <div style="vertical-align: middle;">
 
{{#if:{{{extend|}}}
 
{{#if:{{{extend|}}}

Latest revision as of 12:29, 9 June 2014

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
  • {{kill notice|extend=yes|weapon=hadouken|killer=Pyro|victim=Sniper|kill-tool=Pyro Only}} generates:
Pictogram question.png
Killicon hadouken.png

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.
kill-tool Only Pyro [optional] tool-tip giving further explanation..
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 )