Difference between revisions of "Template:Achievement notification"

From Team Fortress Wiki
Jump to: navigation, search
(Added {{doc}}, updated slightly, added usage notes.)
m (Undo edit by CAPTCHALiam97 (Talk) (2090691) Bad grammar.)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{| style="background-color: #4f4f4f; border-radius: 2px; -webkit-border-radius: 2px; -moz-border-radius: 2px; color: #c8b996; font-family: Tahoma, Arial, Helvetica, sans-serif; height:64px; width:300px; padding: 5px;"
+
<includeonly>{| style="background-color: #4f4f4f; border-radius: 2px; -webkit-border-radius: 2px; -moz-border-radius: 2px; color: #c8b996; font-family: Tahoma, Arial, Helvetica, sans-serif; height:64px; width:320px; padding: 5px;"
 
|-
 
|-
| style="background-color: #3e3e3e; width:64px; height:64px;" | [[File:{{{img}}}|64px]] || style="font-size: 1.2em; color: #9dc34c; font-weight: bold; padding-left: 10px;" |
+
| style="background-color: #3e3e3e; width:64px; height:64px;" | [[File:{{{img}}}|64px|link=]] || style="font-size: 1.2em; color: #9dc34c; font-weight: bold; padding-left: 10px; background: #4f4f4f;" |
{{{title}}}<br /><span style="font-size: 0.7em; color: #C8B996; font-weight: normal;line-height:0.8em;">{{{text}}}</span>
+
{{{title}}}<br /><span style="font-size: 0.7em; color: #C8B996; font-weight: normal;line-height:1.3em; margin-top: 8px;">{{{text}}}</span>
 
|}</includeonly><noinclude>{{doc begin}}
 
|}</includeonly><noinclude>{{doc begin}}
  
Line 10: Line 10:
  
 
<pre>{{Achievement notification
 
<pre>{{Achievement notification
| img  = Filename.jpg
+
| img  = Filename.png
 
| title = Title of Achievement
 
| title = Title of Achievement
 
| text  = Achievement text
 
| text  = Achievement text
Line 18: Line 18:
  
 
{{Achievement notification
 
{{Achievement notification
| img  = Tf win gravelpit noenemycaps.jpg
+
| img  = Tf win gravelpit noenemycaps.png
 
| title = Impossible Defense
 
| title = Impossible Defense
 
| text  = Successfully defend Gravel Pit without giving up a capture.
 
| text  = Successfully defend Gravel Pit without giving up a capture.
 
}}
 
}}
 +
 +
[[Category:Achievement insertion templates| ]]</noinclude>

Latest revision as of 18:25, 29 April 2016

Documentation for Achievement notification


This template aims to create Steam interface-style achievements for the wiki; either for "Wikichievements" (an achievement-like feature for Wiki contributions), or simply for displaying an achievement.

Syntax

{{Achievement notification
| img   = Filename.png
| title = Title of Achievement
| text  = Achievement text
}}

Example

Tf win gravelpit noenemycaps.png

Impossible Defense
Successfully defend Gravel Pit without giving up a capture.