Difference between revisions of "Template:Achievement"

From Team Fortress Wiki
Jump to: navigation, search
(Added pl strings)
Line 1: Line 1:
{| cellpadding="0" style="width: {{{width|50%}}}; text-align: left; {{#if:{{{obtain-text|}}}{{{obtain-level|}}} | border-left: 6px solid #{{#switch:{{ucfirst:{{{obtain-level|}}}}}
+
{| cellpadding="0" style="width: {{{width|50%}}}; text-align: left; {{#if:{{{obtain-text|}}}{{{5|}}}{{{obtain-level|}}}{{{4|}}} | border-left: 6px solid #{{#switch:{{ucfirst:{{{obtain-level|{{{4|}}}}}}}}
 
  | Very Easy  
 
  | Very Easy  
 
  | Easy          = B5F36D; background: #F0F8E7;
 
  | Easy          = B5F36D; background: #F0F8E7;
Line 23: Line 23:
 
  | ro = Recompensă
 
  | ro = Recompensă
 
  | ru = Награда
 
  | ru = Награда
}}''': {{{reward}}}</small>|}}{{#if:{{{obtain-text|}}}{{{obtain-level|}}}
+
}}''': {{{reward}}}</small>|}}{{#if:{{{obtain-text|}}}{{{5|}}}{{{obtain-level|}}}{{{4|}}}
 
  | <hr style="margin: 0.5em 0;" />'''{{lang
 
  | <hr style="margin: 0.5em 0;" />'''{{lang
 
   | en = Difficulty
 
   | en = Difficulty
 
   | pl = Poziom trudności
 
   | pl = Poziom trudności
 
   | ru = Сложность
 
   | ru = Сложность
   }}''': {{#switch:{{ucfirst:{{{obtain-level|}}}}}
+
   }}''': {{#switch:{{ucfirst:{{{obtain-level|{{{4|}}}}}}}}
 
   | Very Easy = {{lang
 
   | Very Easy = {{lang
 
     | en = Very Easy
 
     | en = Very Easy
Line 72: Line 72:
 
     | ru = Высокая — очень высокая
 
     | ru = Высокая — очень высокая
 
     }}
 
     }}
   | #default = {{{obtain-level}}}
+
   | #default = {{{obtain-level|{{{5}}}}}}
 
   }}<br />'''{{lang
 
   }}<br />'''{{lang
 
   | en = How to obtain
 
   | en = How to obtain
 
   | pl = Jak odblokować
 
   | pl = Jak odblokować
 
   | ru = Как выполнить
 
   | ru = Как выполнить
   }}''': {{{obtain-text|Lorem ipsum dolor sit amet.}}}
+
   }}''': {{{obtain-text|{{{5|Lorem ipsum dolor sit amet.}}}}}}
 
  | <!-- NULL -->}}
 
  | <!-- NULL -->}}
 
|-
 
|-
Line 118: Line 118:
 
! style="text-align:left;" colspan="3" | ''Obtaining''
 
! style="text-align:left;" colspan="3" | ''Obtaining''
 
|-
 
|-
| {{code|obtain-level}}
+
| {{code|obtain-level}} or {{code|{{{4}}}}}
 
| {{code|easy}}
 
| {{code|easy}}
 
| The level of difficulty. Accepts "easy", "medium" and "hard". This also gives the box a coloured background and border on the left. Not defining a level of difficulty gives the box a grey background.
 
| The level of difficulty. Accepts "easy", "medium" and "hard". This also gives the box a coloured background and border on the left. Not defining a level of difficulty gives the box a grey background.
 
|-
 
|-
| {{code|obtain-text}}
+
| {{code|obtain-text}} or {{code|{{{5}}}}}
 
| {{code|Simply build a Sentry Gun and keep it alive to get 10 kills to earn this achievement.}}
 
| {{code|Simply build a Sentry Gun and keep it alive to get 10 kills to earn this achievement.}}
 
| The description text.
 
| The description text.

Revision as of 07:45, 18 September 2010

Achievement
Achievement Name
Lorem ipsum dolor sit amet, lorem ipsum, dolor, sit amet.

Documentation for Achievement


This template was created in order to standardise how achievements appear in article pages.

You should not use this template directly. To show a particular achievement on a page, use {{Show achievement}} instead. This template holds only the code to display achievements in a table. It does not hold any translated text or titles.

Parameters

Name Example Description
1 Quick Hook Name of the achievement.
2 Kill a player in Well before the round starts. The description (should use exact wording from Steam).
3 Tf quick hook.png The file name of the image (exclude File: or Image: prefix)
reward Ambassador If the achievement is a Milestone, a link to the weapon that is earned.
Style
width 100% The width. Can be set to 50% if not used in a table, otherwise it defaults to 100%.
Obtaining
obtain-level or {{{4}}} easy The level of difficulty. Accepts "easy", "medium" and "hard". This also gives the box a coloured background and border on the left. Not defining a level of difficulty gives the box a grey background.
obtain-text or {{{5}}} Simply build a Sentry Gun and keep it alive to get 10 kills to earn this achievement. The description text.

See also