Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Show achievement: Difference between revisions

Template page
Copypasted with some changes. Someone, clean this up
 
undo; stoopid stoopid
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{Achievement | width = {{{width|100%}}}
<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|}}}}}
| Scout
| Soldier
| Pyro
| Demo
| Demoman
| Heavy
| Engineer
| Medic
| Sniper
| Spy      = reward
| #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|}}}}}}
Line 42: 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 elsewhere &ndash; see [[:Category:Achievement insertion templates/core]].
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 ==
Line 59: Line 26:
       {{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.
}}
}}