Difference between revisions of "AchievementTable"

From Sega Retro

(added Windows Phone 7 (at some point we'll need to add iOS Game Center achievement support))
(added checks to hide the total row for formats that don't give Gamerscore, Trophies or XP)
Line 13: Line 13:
 
|PS5=!Trophy{{#vardefine:totalrow|true}}
 
|PS5=!Trophy{{#vardefine:totalrow|true}}
 
|ANDROID=!Experience points{{#vardefine:totalrow|true}}
 
|ANDROID=!Experience points{{#vardefine:totalrow|true}}
|#default=
+
|#default={{#vardefine:totalrow|false}}
 
}}
 
}}
 
{{{1|}}}
 
{{{1|}}}
 
|-
 
|-
{{#if:{{#var:totalrow}}|{{!}}colspan="2" style="text-align:right;"{{!}}'''Total:'''
+
{{#ifeq:{{#var:totalrow}}|true|{{!}}colspan="2" style="text-align:right;"{{!}}'''Total:'''
 
{{!}}{{#if:{{#var:totalgamerscore}}|<div style="width:1.5em; height:1.5em; background-color:#000000; color:#FFFFFF; display:inline-block; border-radius:1.5em; padding-left:0.35em; margin:0px; line-height:1.5em; font-size:0.8em;">G</div> {{#var:totalgamerscore}}}}{{#if:{{#var:totalbronze}}|[[File:PlayStation Trophy Bronze.png|16px|Bronze]]×{{#var:totalbronze}}&nbsp;}}{{
 
{{!}}{{#if:{{#var:totalgamerscore}}|<div style="width:1.5em; height:1.5em; background-color:#000000; color:#FFFFFF; display:inline-block; border-radius:1.5em; padding-left:0.35em; margin:0px; line-height:1.5em; font-size:0.8em;">G</div> {{#var:totalgamerscore}}}}{{#if:{{#var:totalbronze}}|[[File:PlayStation Trophy Bronze.png|16px|Bronze]]×{{#var:totalbronze}}&nbsp;}}{{
 
#if:{{#var:totalsilver}}|[[File:PlayStation Trophy Silver.png|16px|Silver]]×{{#var:totalsilver}}&nbsp;}}{{
 
#if:{{#var:totalsilver}}|[[File:PlayStation Trophy Silver.png|16px|Silver]]×{{#var:totalsilver}}&nbsp;}}{{
Line 101: Line 101:
 
| description=Unlock 5 heroes with Hero Shards.
 
| description=Unlock 5 heroes with Hero Shards.
 
| xp=500
 
| xp=500
 +
}}
 +
}}
 +
{{AchievementTable|format=STEAM|
 +
{{AchievementRow
 +
| icon=SegaHeroes Android Achievement.png
 +
| title=Beginner Collector
 +
| description=Unlock 5 heroes with Hero Shards.
 
}}
 
}}
 
}}
 
}}
  
 
[[Category:Table templates]]</noinclude>
 
[[Category:Table templates]]</noinclude>

Revision as of 11:46, 10 September 2023


Template for listing trophies/achievements (the sort first introduced with the Xbox 360). To be used in conjunction with Template:AchievementRow.

Supply a format and it will automatically decide whether to display the trophy or gamerscore heading. You can technically mix and match in the rows... but you probably shouldn't. Calculations are also automatic.

{{AchievementTable|format=PS3|
{{AchievementRow
| icon=SegaRallyOnlineArcade PS3 Achievement 321Go.png
| title=3, 2, 1, GO!!
| desc=Complete your first Quick Race.
| trophy=bronze
}}
}}
Icon Description Trophy
SegaRallyOnlineArcade PS3 Achievement 321Go.png 3, 2, 1, GO!! Bronze
Complete your first Quick Race.


Total: Bronze×1 
{{AchievementTable|format=360|
{{AchievementRow
| icon=SegaRallyOnlineArcade PS3 Achievement 321Go.png
| title=3, 2, 1, GO!!
| desc=Complete your first Quick Race.
| gamerscore=100
}}
{{AchievementRow
| icon=SegaRallyOnlineArcade PS3 Achievement 321Go.png
| title=Seeecret
| desc=You smell
| gamerscore=50
| secret=yes
}}
}}
Icon Description Gamerscore
SegaRallyOnlineArcade PS3 Achievement 321Go.png 3, 2, 1, GO!!
G
100
Complete your first Quick Race.
SegaRallyOnlineArcade PS3 Achievement 321Go.png Seeecret (secret)
G
50
You smell


Total:
G
150


Tests

Icon Description Trophy
ChainChronicleVAchievement2.png 最強の仲間 Silver
1つのアルカナを4回限界突破させ、更にレベルMAXにした
CrazyTaxi Achievement ArcadeC-License.png Arcade C-license
G
5
Get C class license in Arcade mode.
SegaHeroes Android Achievement.png Beginner Collector 500 XP
Unlock 5 heroes with Hero Shards.


Total:
G
5Silver×1 500 XP
Icon Description


SegaHeroes Android Achievement.png Beginner Collector
Unlock 5 heroes with Hero Shards.