Difference between revisions of "Template:Kill notice"
(fix to padding & lineheight) |
|||
Line 5: | Line 5: | ||
-->-webkit-border-radius: 5px;<!-- | -->-webkit-border-radius: 5px;<!-- | ||
// | // | ||
− | -->text-align:center; padding | + | -->text-align:center; padding:0.5em 0em; overflow:hidden; line-height:40px;"> |
<div style="vertical-align: middle;"> | <div style="vertical-align: middle;"> | ||
{{#if:{{{extend|}}} | {{#if:{{{extend|}}} | ||
| {{#if:{{{killer|}}} | | {{#if:{{{killer|}}} | ||
− | | <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|}}} {{#if:{{{assister|}}} | + | | <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|}}} {{#if:{{{assister|}}} |
| + {{{assister|Medic}}} | | + {{{assister|Medic}}} | ||
}}</div> | }}</div> | ||
}} | }} | ||
− | }}<div class="tf-killnotice-icon" style="padding:0em 0.5em; display:inline; vertical-align: middle;">{{Icon killicon|weapon = {{{weapon|skull}}}}}</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> |
{{#if:{{{extend|}}} | {{#if:{{{extend|}}} | ||
| {{#if:{{{victim|}}} | | {{#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;"> {{{victim|}}}</div> | + | | <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;"> {{{victim|}}}</div> |
}} | }} | ||
}} | }} |
Revision as of 02:31, 28 September 2010
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:
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 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.