Template:Show achievement: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(Copypasted with some changes. Someone, clean this up)
 
(We don't ahve any classes there, so...)
Line 19: Line 19:
  }} achievement/core | image | {{{2|}}} }}
  }} achievement/core | image | {{{2|}}} }}
| {{#switch:{{ucfirst:{{{1|}}}}}
| {{#switch:{{ucfirst:{{{1|}}}}}
  | Scout
  | Portal
  | Soldier
  | Portal 2
  | Pyro
  | Portal: Still Alive
| Demo
| Demoman
| Heavy
| Engineer
| Medic
| Sniper
| Spy      = reward
  | #default = void
  | #default = void
  }} = {{{{#switch:{{ucfirst:{{{1|}}}}}
  }} = {{{{#switch:{{ucfirst:{{{1|}}}}}

Revision as of 10:16, 25 April 2011

The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.

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

Examples

One by itself

Code: {{show achievement|Portal|Camera Shy|width = 50%}}
[[File:Template:Portal achievement/core|64px|center|alt=Template:Portal achievement/core]] Template:Portal achievement/core
Template:Portal achievement/core

In a table

{{Achievement table
| 1 = {{Show achievement|Portal|Camera Shy}}
      {{Show achievement|Portal|Camera Shy}}
      {{Show achievement|Portal|Camera Shy}}
      {{Show achievement|Portal|Camera Shy}}
| 2 = {{Show achievement|General|Flamethrower}}
      {{Show achievement|General|Flamethrower}}
      {{Show achievement|General|Flamethrower}}
}}
[[File:Template:General achievement/core|64px|center|alt=Template:General achievement/core]] Template:General achievement/core
Template:General achievement/core
[[File:Template:General achievement/core|64px|center|alt=Template:General achievement/core]] Template:General achievement/core
Template:General achievement/core
[[File:Template:General achievement/core|64px|center|alt=Template:General achievement/core]] Template:General achievement/core
Template:General achievement/core
[[File:Template:General achievement/core|64px|center|alt=Template:General achievement/core]] Template:General achievement/core
Template:General achievement/core
[[File:Template:General achievement/core|64px|center|alt=Template:General achievement/core]] Template:General achievement/core
Template:General achievement/core
[[File:Template:General achievement/core|64px|center|alt=Template:General achievement/core]] Template:General achievement/core
Template:General achievement/core
[[File:Template:General achievement/core|64px|center|alt=Template:General achievement/core]] Template:General achievement/core
Template:General achievement/core

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:
[[File:Template:General achievement/core|64px|center|alt=Template:General achievement/core]] Template:General achievement/core
Template:General achievement/core
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