Template:Show achievement: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(We don't ahve any classes there, so...)
(Changed examples)
Line 52: Line 52:
       {{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}}
| 2 = {{Show achievement|Portal|Heartbreaker}}
       {{Show achievement|General|Flamethrower}}
       {{Show achievement|Portal|Heartbreaker}}
       {{Show achievement|General|Flamethrower}}
       {{Show achievement|Portal|Heartbreaker}}
}}
}}
</nowiki></pre>
</nowiki></pre>


{{Achievement table
{{Achievement table
| 1 = {{Show achievement|General|Dynasty}}
| 1 = {{Show achievement|Portal|Camera Shy}}
       {{Show achievement|General|Dynasty}}
       {{Show achievement|Portal|Camera Shy}}
       {{Show achievement|General|Dynasty}}
       {{Show achievement|Portal|Camera Shy}}
       {{Show achievement|General|Dynasty}}
       {{Show achievement|Portal|Camera Shy}}
| 2 = {{Show achievement|General|Flamethrower}}
| 2 = {{Show achievement|Portal|Heartbreaker}}
       {{Show achievement|General|Flamethrower}}
       {{Show achievement|Portal|Heartbreaker}}
       {{Show achievement|General|Flamethrower}}
       {{Show achievement|Portal|Heartbreaker}}
}}
}}


=== Obtaining achievements ===
=== Obtaining achievements ===
<pre><nowiki>
<pre><nowiki>
{{Show achievement|General|Dynasty|Medium
{{Show achievement|Portal|Heartbreaker|easy
| Simply play until you have won 20 games. If you find a good team and stick with them, this should happen in no time.
| Just play to the end credits of the game.
}}</nowiki></pre>
}}</nowiki></pre>


* The above code will generate:
* The above code will generate:
{{Show achievement|General|Dynasty|Medium
{{Show achievement|Portal|Heartbreaker|easy
| Simply play until you have won 20 games. If you find a good team and stick with them, this should happen in no time.
| Just play to the end credits of the game.
}}
}}



Revision as of 11:01, 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|Portal|Heartbreaker}}
      {{Show achievement|Portal|Heartbreaker}}
      {{Show achievement|Portal|Heartbreaker}}
}}
[[File:Template:Portal achievement/core|64px|center|alt=Template:Portal achievement/core]] Template:Portal achievement/core
Template:Portal achievement/core
[[File:Template:Portal achievement/core|64px|center|alt=Template:Portal achievement/core]] Template:Portal achievement/core
Template:Portal achievement/core
[[File:Template:Portal achievement/core|64px|center|alt=Template:Portal achievement/core]] Template:Portal achievement/core
Template:Portal achievement/core
[[File:Template:Portal achievement/core|64px|center|alt=Template:Portal achievement/core]] Template:Portal achievement/core
Template:Portal achievement/core
[[File:Template:Portal achievement/core|64px|center|alt=Template:Portal achievement/core]] Template:Portal achievement/core
Template:Portal achievement/core
[[File:Template:Portal achievement/core|64px|center|alt=Template:Portal achievement/core]] Template:Portal achievement/core
Template:Portal achievement/core
[[File:Template:Portal achievement/core|64px|center|alt=Template:Portal achievement/core]] Template:Portal achievement/core
Template:Portal achievement/core

Obtaining achievements

{{Show achievement|Portal|Heartbreaker|easy
| Just play to the end credits of the game.
}}
  • The above code will generate:
[[File:Template:Portal achievement/core|64px|center|alt=Template:Portal achievement/core]] Template:Portal achievement/core
Template:Portal achievement/core
Difficulty: Easy
How to obtain: Just play to the end credits of the game.

See also