Template:Trophy: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(Adding gamelists for regional diffs like with TrophyTableRow)
(Adding "mode" argument to make it easy to add text to the image box and name. Only works for Melee because it is the only one that does mode-based trophies and consistently)
Line 1: Line 1:
<includeonly>{{#if:{{{image|}}}|[[File:{{{image}}}|thumb|{{{image-align|left}}}|{{{size|100px}}}|{{{name|{{SUBPAGENAME}}}}}'s trophy in {{#switch:{{lc:{{{game|}}}}}|ssbm|melee=''[[Melee]]''|ssbb|brawl=''[[Brawl]]''|ssb4-wiiu|ssb4-u={{forwiiu}}|ssb4-3ds|ssb4-3={{for3ds}}}}]]}}{{#if:{{{image-3ds|}}}|[[File:{{{image-3ds}}}|thumb|left|{{{size|100px}}}|{{{name|{{SUBPAGENAME}}}}}'s trophy in {{for3ds}}]]}}{{#if:{{{image-wiiu|}}}|[[File:{{{image-wiiu}}}|thumb|right|{{{size|100px}}}|{{{name|{{SUBPAGENAME}}}}}'s trophy in {{forwiiu}}]]}}
<includeonly>{{#if:{{{image|}}}|[[File:{{{image}}}|thumb|{{{image-align|left}}}|{{{size|100px}}}|{{{name|{{SUBPAGENAME}}}}}'s{{#switch:{{lc:{{{game|}}}}}|ssbm|melee=<nowiki/> {{#switch:{{lc:{{{mode|}}}}}|class|classic=Classic Mode|adv|adventure=Adventure Mode|asm|all|all-star|all star=All-Star Mode|#default=}}|#default=}} trophy in {{#switch:{{lc:{{{game|}}}}}|ssbm|melee=''[[Melee]]''|ssbb|brawl=''[[Brawl]]''|ssb4-wiiu|ssb4-u={{forwiiu}}|ssb4-3ds|ssb4-3={{for3ds}}}}]]}}{{#if:{{{image-3ds|}}}|[[File:{{{image-3ds}}}|thumb|left|{{{size|100px}}}|{{{name|{{SUBPAGENAME}}}}}'s trophy in {{for3ds}}]]}}{{#if:{{{image-wiiu|}}}|[[File:{{{image-wiiu}}}|thumb|right|{{{size|100px}}}|{{{name|{{SUBPAGENAME}}}}}'s trophy in {{forwiiu}}]]}}
{{#if:{{{name-ntsc|}}}{{{name-pal|}}}|
{{#if:{{{name-ntsc|}}}{{{name-pal|}}}|
;{{flag|ntsc}}{{{name-ntsc}}}
;{{flag|ntsc}}{{{name-ntsc}}}
;{{flag|pal}}{{{name-pal}}}|
;{{flag|pal}}{{{name-pal}}}|
;{{{name|{{SUBPAGENAME}}}}}}}{{#if:{{{desc|}}}|
;{{{name|{{SUBPAGENAME}}}}}{{#switch:{{lc:{{{game|}}}}}|ssbm|melee=<nowiki/> {{#switch:{{lc:{{{mode|}}}}}|adv|adventure=<span style="color:red" class="explain" title="Adventure Mode">[Smash]</span>|asm|all|all-star|all star=<span style="color:blue" class="explain" title="All-Star Mode">[Smash]</span>|#default=}}|#default=}}}}{{#if:{{{desc|}}}|
:<i>{{{desc}}}</i>}}<!--{{#if:{{{desc-3ds|}}}|
:<i>{{{desc}}}</i>}}<!--{{#if:{{{desc-3ds|}}}|
:{{GameIcon|ssb4-3ds}} <i>{{{desc-3ds}}}</i>}}-->{{#if:{{{desc-wiiu|}}}|
:{{GameIcon|ssb4-3ds}} <i>{{{desc-3ds}}}</i>}}-->{{#if:{{{desc-wiiu|}}}|
Line 59: Line 59:
| game || Specifies the game that the trophy appears in. Not necessary for trophies with both Wii U and 3DS versions
| game || Specifies the game that the trophy appears in. Not necessary for trophies with both Wii U and 3DS versions
|-
|-
| gamelist || Games listed below the description ("Related Games", "Appears In", etc.). Use {{t|Trophy games}}
| mode || The game mode (i.e. Adventure, Classic, All-Star). Only works for Melee; adds mode to the image description and the corresponding colored "[Smash]" text
|-
| gamelist || Games listed below the description ("Related Games", "Appears In", etc.). Use {{t|Trophy games}}. Melee sometimes lists attacks and should use indents with colons (:) instead.
|-
|-
| gamelist-ntsc || Games listed in the NTSC version
| gamelist-ntsc || Games listed in the NTSC version
Line 66: Line 68:
|}
|}


===Example===
===Example 1===
this: <br/>
Input
<code><nowiki>
<pre><nowiki>{{Trophy
{{Trophy</nowiki><br/>
|name=Mario
|name=Mario<br/>
|image=Mario Trophy (Smash).png
|desc-ntsc=As iconic as iconic gets, this gaming celebrity is known for saving the world from Bowser. He's got amazing jumping skills and makes use of a wide range of transformations. In his free time, he plays too many sports to count. In Smash Bros., he's a well-rounded fighter you can rely on. Say it with me: "It's-a me, Mario!"<br/>
|mode=Adventure
|desc-pal=It's-a him! Maaario! Whether he's wearing one of his special outfits or just his normal blue dungarees, this running, jumping, Bowser-bashing, princess-saving hero is an all-round superstar. And in this game, he's got enough tricks up his sleeve to deal with anything. If you don't know which fighter to pick, Mario's a solid choice.<br/>
|desc=Mario is a character without any glaring weaknesses and plenty of strong attacks: he's even equipped with a Meteor Smash. He's a straightforward character who'll reflect the actual skills of the player. Mario's Cape will turn other characters in the opposite direction and can also reflect missile weapons.
|gamelist=<nowiki>{{Trophy games|console1=nes|game1=Donkey Kong Classics|release1=09/1988|console2=nes|game2=Super Mario Bros.|release2=10/1985}}</nowiki><br/>
|gamelist=:B: Fireball
|image-3ds=MarioTrophy3DS.png<br/>
:Smash B: Cape
|image-wiiu=MarioTrophyWiiU.png<br/>
|game=Melee
}}</nowiki></pre>
Output
{{Trophy
|name=Mario
|image=Mario Trophy (Smash).png
|mode=Adventure
|desc=Mario is a character without any glaring weaknesses and plenty of strong attacks: he's even equipped with a Meteor Smash. He's a straightforward character who'll reflect the actual skills of the player. Mario's Cape will turn other characters in the opposite direction and can also reflect missile weapons.
|gamelist=:B: Fireball
:Smash B: Cape
|game=Melee
}}
}}
</code><br/>produces this:
 
{{clr}}
 
===Example 2===
Input
<pre><nowiki>{{Trophy
|name=Mario
|desc-ntsc=As iconic as iconic gets, this gaming celebrity is known for saving the world from Bowser. He's got amazing jumping skills and makes use of a wide range of transformations. In his free time, he plays too many sports to count. In Smash Bros., he's a well-rounded fighter you can rely on. Say it with me: "It's-a me, Mario!"
|desc-pal=It's-a him! Maaario! Whether he's wearing one of his special outfits or just his normal blue dungarees, this running, jumping, Bowser-bashing, princess-saving hero is an all-round superstar. And in this game, he's got enough tricks up his sleeve to deal with anything. If you don't know which fighter to pick, Mario's a solid choice.
|gamelist={{Trophy games|console1=nes|game1=Donkey Kong Classics|release1=09/1988|console2=nes|game2=Super Mario Bros.|release2=10/1985}}
|image-3ds=MarioTrophy3DS.png
|image-wiiu=MarioTrophyWiiU.png
}}</nowiki></pre>
Output
{{Trophy
{{Trophy
|name=Mario
|name=Mario

Revision as of 08:49, November 24, 2022

Usage

Parameter Description
name The name of the trophy. Defaults to article's name. Always used regardless of NTSC/PAL name
name-ntsc The name of the trophy in the NTSC version
name-pal The name of the trophy in the PAL version
desc A description of the trophy, for use only if the trophy does not differ across NTSC and PAL
desc-ntsc A description of the trophy in the NTSC version
desc-pal A description of the trophy in the PAL version
desc-3ds-ntsc A description of the trophy exclusive to the for Nintendo 3DS NTSC version
desc-wiiu-ntsc A description of the trophy exclusive to the for Wii U NTSC version
desc-3ds-pal A description of the trophy exclusive to the for Nintendo 3DS PAL version
desc-wiiu-pal A description of the trophy exclusive to the for Wii U PAL version
desc-3ds A description of the trophy exclusive to the for Nintendo 3DS version that does not differ across NTSC and PAL (disabled due to no use cases)
desc-wiiu A description of the trophy exclusive to the for Wii U version that does not differ across NTSC and PAL
image The image for the trophy. Do not use this for trophies that have both a Wii U and 3DS counterpart (only for Melee, Brawl, and 3DS/WiiU exclusive ones)
image-align Which side of the trophy the image should be aligned, defaulted to left (Use "left" or "right"). Not necessary for trophies with both Wii U and 3DS versions
image-3ds The image for the 3DS version
image-wiiu The image for the Wii U version
size Specifies the image size, defaulted to 100px.
game Specifies the game that the trophy appears in. Not necessary for trophies with both Wii U and 3DS versions
mode The game mode (i.e. Adventure, Classic, All-Star). Only works for Melee; adds mode to the image description and the corresponding colored "[Smash]" text
gamelist Games listed below the description ("Related Games", "Appears In", etc.). Use {{Trophy games}}. Melee sometimes lists attacks and should use indents with colons (:) instead.
gamelist-ntsc Games listed in the NTSC version
gamelist-pal Games listed in the PAL version

Example 1

Input

{{Trophy
|name=Mario
|image=Mario Trophy (Smash).png
|mode=Adventure
|desc=Mario is a character without any glaring weaknesses and plenty of strong attacks: he's even equipped with a Meteor Smash. He's a straightforward character who'll reflect the actual skills of the player. Mario's Cape will turn other characters in the opposite direction and can also reflect missile weapons.
|gamelist=:B: Fireball
:Smash B: Cape
|game=Melee
}}

Output

Mario's Adventure Mode trophy in Melee
Mario [Smash]
Mario is a character without any glaring weaknesses and plenty of strong attacks: he's even equipped with a Meteor Smash. He's a straightforward character who'll reflect the actual skills of the player. Mario's Cape will turn other characters in the opposite direction and can also reflect missile weapons.
B: Fireball
Smash B: Cape

Example 2

Input

{{Trophy
|name=Mario
|desc-ntsc=As iconic as iconic gets, this gaming celebrity is known for saving the world from Bowser. He's got amazing jumping skills and makes use of a wide range of transformations. In his free time, he plays too many sports to count. In Smash Bros., he's a well-rounded fighter you can rely on. Say it with me: "It's-a me, Mario!"
|desc-pal=It's-a him! Maaario! Whether he's wearing one of his special outfits or just his normal blue dungarees, this running, jumping, Bowser-bashing, princess-saving hero is an all-round superstar. And in this game, he's got enough tricks up his sleeve to deal with anything. If you don't know which fighter to pick, Mario's a solid choice.
|gamelist={{Trophy games|console1=nes|game1=Donkey Kong Classics|release1=09/1988|console2=nes|game2=Super Mario Bros.|release2=10/1985}}
|image-3ds=MarioTrophy3DS.png
|image-wiiu=MarioTrophyWiiU.png
}}

Output

Mario's trophy in Super Smash Bros. for Wii U
Mario
NTSC As iconic as iconic gets, this gaming celebrity is known for saving the world from Bowser. He's got amazing jumping skills and makes use of a wide range of transformations. In his free time, he plays too many sports to count. In Smash Bros., he's a well-rounded fighter you can rely on. Say it with me: "It's-a me, Mario!"
PAL It's-a him! Maaario! Whether he's wearing one of his special outfits or just his normal blue dungarees, this running, jumping, Bowser-bashing, princess-saving hero is an all-round superstar. And in this game, he's got enough tricks up his sleeve to deal with anything. If you don't know which fighter to pick, Mario's a solid choice.
NES: Donkey Kong Classics (09/1988)
NES: Super Mario Bros. (10/1985)