Difference between revisions of "Template:Show achievement"

From Team Fortress Wiki
Jump to: navigation, search
(Undo edit by Asplode (Talk) (1209066) I don't know where it's broken, and I don't know what I changed, so someone smarter please take a look.)
(Undo edit by Asplode (Talk) (1209088) I broke this by undoing my edit? Seriously?)
Line 3: Line 3:
 
| 2 = {{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-desc}}
 
| 2 = {{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-desc}}
 
| 3 = {{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-icon}}
 
| 3 = {{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-icon}}
| reward = {{ {{#switch:{{lc:{{{2|}}}}}
+
| reward = {{#switch:{{lc:{{{2|}}}}}}}
 
  | milestone 1 | milestone 2 | milestone 3 | local cinema star | star of my own show | foundry milestone | doomsday milestone = Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-reward
 
  | milestone 1 | milestone 2 | milestone 3 | local cinema star | star of my own show | foundry milestone | doomsday milestone = Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-reward
 
  | #default = ns:0
 
  | #default = ns:0

Revision as of 12:27, 25 November 2012

Documentation for Show achievement

This template allows you to display achievements on multiple pages and in different languages. This template itself does not use translation switching as it does not contain any text. All achievement text and titles are stored in the dictionary.

Syntax

Examples

One by itself

Code: {{show achievement|General|Dynasty|width = 50%}}
Dynasty
Dynasty
Win 20 games.


In a table

{{Achievement table
| 1 = {{Show achievement|General|Dynasty}}
      {{Show achievement|General|Dynasty}}
      {{Show achievement|General|Dynasty}}
      {{Show achievement|General|Dynasty}}
| 2 = {{Show achievement|General|Flamethrower}}
      {{Show achievement|General|Flamethrower}}
      {{Show achievement|General|Flamethrower}}
}}
Dynasty
Dynasty
Win 20 games.


Dynasty
Dynasty
Win 20 games.


Dynasty
Dynasty
Win 20 games.


Dynasty
Dynasty
Win 20 games.
Flamethrower
Flamethrower
Set five enemies on fire in 30 seconds.


Flamethrower
Flamethrower
Set five enemies on fire in 30 seconds.


Flamethrower
Flamethrower
Set five enemies on fire in 30 seconds.

Obtaining achievements

{{Show achievement|General|Dynasty|Medium
| Simply play until you have won 20 games. If you find a good team and stick with them, this should happen in no time.
}}
  • The above code will generate:
Dynasty
Dynasty
Win 20 games.
Difficulty: Medium
How to obtain: Simply play until you have won 20 games. If you find a good team and stick with them, this should happen in no time.


See also