Difference between revisions of "Template:Show achievement"
(Uses dictionary now.) |
(+anchor) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{Achievement | width = {{{width|{{#if:{{{3|}}}{{{4|}}}{{{obtain-level|}}}{{{obtain-text|}}}|100%|auto}}}}} | + | <includeonly>{{#if: {{{2|}}} | {{anchor|{{{2}}}}}}}{{Achievement | width = {{{width|{{#if:{{{3|}}}{{{4|}}}{{{obtain-level|}}}{{{obtain-text|}}}|100%|auto}}}}} |
| 1 = {{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-title}} | | 1 = {{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-title}} | ||
| 2 = {{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-desc}} | | 2 = {{Dictionary/achievements/{{lc:{{{1|}}}}}/{{lc:{{{2|}}}}}-desc}} |
Revision as of 02:00, 31 May 2011
Contents
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 elsewhere – see Category:Achievement insertion templates/core.
Syntax
{{Show achievement|<Pack>|<Name>|<Difficulty>|<Description>|width = <value>}}
Examples
One by itself
- Code:
{{show achievement|General|Dynasty|width = 50%}}
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}} }}
|
|
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 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
{{Achievement table}}
– handy template to use to display achievements in a table.