Template:Show achievement: Difference between revisions
Jump to navigation
Jump to search
m (maybe this will work?) |
(undo; stoopid stoopid) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Achievement | width = {{{width| | <includeonly>{{Achievement | width = {{{width|{{#if:{{{3|}}}{{{4|}}}{{{obtain-level|}}}{{{obtain-text|}}}|100%|auto}}}}} | ||
| 1 = {{Dictionary/{{lc:{{{1|}}}}} achievements/{{lc:{{{2|}}}}}-title}} | |||
| 2 = {{Dictionary/{{lc:{{{1|}}}}} achievements/{{lc:{{{2|}}}}}-desc}} | |||
| 3 = {{Dictionary/{{lc:{{{1|}}}}} achievements/{{lc:{{{2|}}}}}-icon}} | |||
| | |||
| {{ | |||
| {{#if:{{{obtain-level|}}}{{{3|}}}|obtain-level|void}} = {{{obtain-level|{{{3|}}}}}} | | {{#if:{{{obtain-level|}}}{{{3|}}}|obtain-level|void}} = {{{obtain-level|{{{3|}}}}}} | ||
Line 35: | Line 9: | ||
}}{{#if:{{{1|}}}{{{2|}}}||<span class="error mid">ERROR {{tl|Show achievement}}: missing achievement type and name parameter. [[Category:ERROR|Achievement]]</span>}}</includeonly><noinclude> | }}{{#if:{{{1|}}}{{{2|}}}||<span class="error mid">ERROR {{tl|Show achievement}}: missing achievement type and name parameter. [[Category:ERROR|Achievement]]</span>}}</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 | 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 == |
Latest revision as of 22:06, 1 June 2011
The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.
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 in the dictionary.
Syntax
- {{Show achievement|<Pack>|<Name>|<Difficulty>|<Description>|width = <value>}}
Examples
One by itself
- Code: {{show achievement|Portal|Camera Shy|width = 50%}}
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}} }}
|
|
Obtaining achievements
{{Show achievement|Portal|Heartbreaker|easy | Just play to the end credits of the game. }}
- The above code will generate:
Heartbreaker Complete Portal. Difficulty: Easy How to obtain: Just play to the end credits of the game. |
See also
{{Achievement table}}
– handy template to use to display achievements in a table.