Template:Show achievement: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(100% width for obtaining achievement pages)
(use dictionary)
Line 1: Line 1:
<includeonly>{{Achievement | width = {{{width|{{#if:{{{3|{{{4|}}}}}}|100%|auto}}}}}
<includeonly>{{Achievement | width = {{{width|{{#if:{{{3|}}}{{{4|}}}{{{obtain-level|}}}{{{obtain-text|}}}|100%|auto}}}}}
| 1 = {{{{#switch:{{ucfirst:{{{1|}}}}}
| 1 = {{Dictionary/{{lc:{{{1|}}}}} achievements/{{lc:{{{2|}}}}}-title}}
| Portal
| 2 = {{Dictionary/{{lc:{{{1|}}}}} achievements/{{lc:{{{2|}}}}}-desc}}
| Portal 2
| 3 = {{Dictionary/{{lc:{{{1|}}}}} achievements/{{lc:{{{2|}}}}}-icon}}
| Portal: Still Alive
| #default = {{{1|}}}
}} achievement/core | name  | {{{2|}}} }}
| 2 = {{{{#switch:{{ucfirst:{{{1|}}}}}
| Portal
| Portal 2
| Portal: Still Alive
| #default = {{{1|}}}
}} achievement/core | text  | {{{2|}}} }}
| 3 = {{{{#switch:{{ucfirst:{{{1|}}}}}
| Portal
| Portal 2
| Portal: Still Alive
| #default = {{{1|}}}
}} achievement/core | image |{{{2|}}}}}
| {{#switch:{{ucfirst:{{{1|}}}}}
| Portal
| Portal 2
| Portal: Still Alive
| #default = void
}} = {{{{#switch:{{ucfirst:{{{1|}}}}}
| Portal
| Portal 2
| Portal: Still Alive
| #default = {{{1|}}}
}} achievement/core | reward | {{{2|}}} }}


| {{#if:{{{obtain-level|}}}{{{3|}}}|obtain-level|void}} = {{{obtain-level|{{{3|}}}}}}
| {{#if:{{{obtain-level|}}}{{{3|}}}|obtain-level|void}} = {{{obtain-level|{{{3|}}}}}}

Revision as of 02:05, 22 May 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%}}
Camera Shy
Camera Shy
Detach security cameras from the walls.

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}}
}}
Camera Shy
Camera Shy
Detach security cameras from the walls.
Camera Shy
Camera Shy
Detach security cameras from the walls.
Camera Shy
Camera Shy
Detach security cameras from the walls.
Camera Shy
Camera Shy
Detach security cameras from the walls.
Heartbreaker
Heartbreaker
Complete Portal.
Heartbreaker
Heartbreaker
Complete Portal.
Heartbreaker
Heartbreaker
Complete Portal.

Obtaining achievements

{{Show achievement|Portal|Heartbreaker|easy
| Just play to the end credits of the game.
}}
  • The above code will generate:
Heartbreaker
Heartbreaker
Complete Portal.
Difficulty: Easy
How to obtain: Just play to the end credits of the game.

See also