Difference between revisions of "Template:Show achievement"

From Team Fortress Wiki
Jump to: navigation, search
m (One by itself)
m
Line 9: Line 9:
 
}}{{#ifexpr: {{#if:{{{1|}}}|0|1}} or {{#if:{{{2|}}}|0|1}} or {{#switch:{{lc:{{{obtain-level|{{{3|¬}}}}}}}}|very easy|easy|easy-medium|easy/medium|medium|medium-hard|medium/hard|hard|very hard|unachievable|¬=0|#default=1}} or {{#ifeq:{{{4|{{{obtain-text|{{{3|{{{obtain-level|}}}}}}}}}}}}|{{{3|{{{obtain-level}}}}}}|1|0}}|[[Category:ERROR]]}}</includeonly><noinclude>
 
}}{{#ifexpr: {{#if:{{{1|}}}|0|1}} or {{#if:{{{2|}}}|0|1}} or {{#switch:{{lc:{{{obtain-level|{{{3|¬}}}}}}}}|very easy|easy|easy-medium|easy/medium|medium|medium-hard|medium/hard|hard|very hard|unachievable|¬=0|#default=1}} or {{#ifeq:{{{4|{{{obtain-text|{{{3|{{{obtain-level|}}}}}}}}}}}}|{{{3|{{{obtain-level}}}}}}|1|0}}|[[Category:ERROR]]}}</includeonly><noinclude>
 
{{doc begin}}
 
{{doc begin}}
This template allows you to display achievements on multiple pages and in different languages. This template itself does not use [[Help:Translation switching|translation switching]] as it does not contain any text. All achievement text and titles are stored in the [[Template:Dictionary|'''dictionary''']].
+
This template allows you to display achievements on multiple pages and in different languages. This template itself does not use [[Help:Translation switching|translation switching]] as it does not contain any text. All achievement text and titles are stored in the [[Template:Dictionary|dictionary]].
  
 
== Syntax ==
 
== Syntax ==
 
* {{tlx|Show achievement|<Pack>|<Name>|<Difficulty>|<Description>|6=width = <value>}}
 
* {{tlx|Show achievement|<Pack>|<Name>|<Difficulty>|<Description>|6=width = <value>}}
 +
** In achievement names, colons '''must''' be replaced with a hyphen.
  
 
== Examples ==
 
== Examples ==

Revision as of 15:52, 5 February 2023

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

  • {{Show achievement|<Pack>|<Name>|<Difficulty>|<Description>|width = <value>}}
    • In achievement names, colons must be replaced with a hyphen.

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