Difference between revisions of "Template:Kill notice"
m |
m (centering) |
||
(29 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | {| style="width: {{{width|100%}}}; height: 40px; | + | <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;}}<!-- |
− | {{#if: {{{extend| | + | // Compatibility. |
− | + | -->border-radius: 5px;<!-- | |
− | | | + | -->-moz-border-radius: 5px;<!-- |
− | {{#if: {{{extend| | + | -->-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;position:absolute;">[[File:Pictogram_question.png|15px|middle|link=|left]]</div>}} | |
+ | <div style="vertical-align: middle;"> | ||
+ | {{#if:{{{extend|}}} | ||
+ | | {{#if:{{{killer|}}} | ||
+ | | <div class="tf-killnotice-killer" style="padding:0em 0.5em; display:inline; vertical-align:middle; color:#<!-- | ||
+ | -->{{#switch:{{lc:{{{friendlyfire|}}}}} | ||
+ | | blu | blue = 557C83 | ||
+ | | red = A3574A | ||
+ | | unusual | purple = 8650AC | ||
+ | | genuine | green = 809d65 | ||
+ | | #default = {{#if:{{{invert|}}}|557C83|A3574A}} | ||
+ | }}; font-size:125%; font-weight:bold;">{{{killer|}}} {{#if:{{{assister|}}} | ||
+ | | + {{{assister|Medic}}} | ||
+ | }}</div> | ||
+ | }} | ||
+ | }}<div class="tf-killnotice-icon {{#if:{{{kill-tool|}}}| tf-kill-icon-tooltip}}" 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|}}} </span>}} | ||
+ | {{#if:{{{extend|}}} | ||
+ | | {{#if:{{{victim|}}} | ||
+ | | <div class="tf-killnotice-victim" style="padding:0em 0.5em; display:inline; vertical-align:middle; color:#<!-- | ||
+ | -->{{#switch:{{lc:{{{friendlyfire|}}}}} | ||
+ | | blu | blue = 557C83 | ||
+ | | red = A3574A | ||
+ | | #default = {{#if:{{{invert|}}}|A3574A|557C83}} | ||
+ | }}; font-size:125%; font-weight:bold;"> {{{victim|}}}</div> | ||
+ | }} | ||
+ | }} | ||
+ | </div> | ||
+ | </div><noinclude>{{doc begin}} | ||
== Usage == | == Usage == | ||
=== Standard === | === Standard === | ||
Line 15: | Line 43: | ||
* {{tlx|kill notice|2=extend=yes|3=width=50%|4=weapon=wrench|5=killer=Engineer|6=victim=Spy|7=assister=Medic|crit=yes}} generates: | * {{tlx|kill notice|2=extend=yes|3=width=50%|4=weapon=wrench|5=killer=Engineer|6=victim=Spy|7=assister=Medic|crit=yes}} generates: | ||
<div align="center">{{kill notice|extend=yes|width=50%|weapon=wrench|killer=Engineer|victim=Spy|assister=Medic|crit=yes}}</div> | <div align="center">{{kill notice|extend=yes|width=50%|weapon=wrench|killer=Engineer|victim=Spy|assister=Medic|crit=yes}}</div> | ||
+ | * {{tlx|kill notice|2=extend=yes|3=width=50%|4=invert=yes|5=weapon=holy mackerel|6=killer=Scout|7=victim=Medic|8=kill-text=FISH KILL!}} generates: | ||
+ | <div align="center">{{kill notice|extend=yes|width=50%|invert=yes|weapon=holy mackerel|killer=Scout|victim=Medic|kill-text=FISH KILL!}}</div> | ||
+ | * {{tlx|kill notice|2=extend=yes|3=weapon=hadouken|4=killer=Pyro|5=victim=Sniper|6=kill-tool=Pyro Only}} generates: | ||
+ | {{kill notice|extended=yes|weapon=hadouken|killer=Pyro|victim=Sniper|kill-tool=Pyro Only}} | ||
== 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'' | ||
Line 45: | Line 77: | ||
| ''Medic'' | | ''Medic'' | ||
| [optional] name of the assister. | | [optional] name of the assister. | ||
+ | |- | ||
+ | | {{code|friendlyfire}} | ||
+ | | ''RED'' | ||
+ | | [optional] friendly fire option (accepts BLU or RED). | ||
+ | |- | ||
+ | | {{code|kill-text}} | ||
+ | | ''is DOMINATING'' | ||
+ | | [optional] text after the kill icon. | ||
+ | |- | ||
+ | | {{code|kill-tool}} | ||
+ | | ''Only Pyro'' | ||
+ | | [optional] tool-tip giving further explanation.. | ||
|- | |- | ||
! colspan="3" style="text-align:left;" | ''Style'' | ! colspan="3" style="text-align:left;" | ''Style'' |
Latest revision as of 12:29, 9 June 2014
Contents
Documentation for Kill notice
Usage
Standard
{{kill notice|weapon=wrench}}
generates:
Extended
{{kill notice|extend=yes|weapon=wrench|killer=Engineer|victim=Spy}}
generates:
{{kill notice|extend=yes|width=50%|weapon=wrench|killer=Engineer|victim=Spy|assister=Medic}}
generates:
{{kill notice|extend=yes|width=50%|invert=yes|weapon=holy mackerel|killer=Scout|victim=Medic|kill-text=FISH KILL!}}
generates:
{{kill notice|extend=yes|weapon=hadouken|killer=Pyro|victim=Sniper|kill-tool=Pyro Only}}
generates:
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 templates (
)- Team Fortress 2
{{Backpack icon}}
– for inserting an image from the backpack.{{Backpack item}}
– for displaying loadout stats.{{Icon class}}
– for displaying class icons.{{Icon item}}
– for displaying images from the item icons done in Shugo style.{{Icon killicon}}
– for displaying kill icon images.{{Kill notice}}
– for displaying a kill notice.
- Wiki-related
{{Possession}}
– for displaying the icons used in{{Item checklist}}
.{{User halloween mask possession}}
– for displaying Halloween Mask icons used in hat and item checklists.{{Comment}}
– for displaying "Support", "Oppose" and "Comment" symbols.{{Pro}}
,{{Con}}
&{{Neut}}
; Compact form for common uses of{{Comment}}
{{Flagicon}}
– generates the flag icon of a country when given the country code.