Template:Trophy: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(Almost every image that uses this template (and many that don't) uses 100px, better to have it the default rather than the exception. Other trophies that don't (yet) use this template don't bold the text, at least from a random sample)
(Added NTSC/PAL difference to header; left it out for image caption as it gets noisy/cluttered. Extended SUBPAGENAME usage to other name usages. Adjusted example to how dates are represented elsewhere)
Line 1: Line 1:
<includeonly>{{#if:{{{image|}}}|[[File:{{{image}}}|thumb|{{{image-align|left}}}|{{{size|100px}}}|{{{name|}}}'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|}}}'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 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}}]]}}
;{{{name|{{SUBPAGENAME}}}}}
{{#if:{{{name-ntsc|}}}{{{name-pal|}}}|
;{{flag|ntsc}}{{{name-ntsc}}}
;{{flag|pal}}{{{name-pal}}}|
;{{{name|{{SUBPAGENAME}}}}}}}
{{#if:{{{desc|}}}|:''{{{desc|}}}''|:{{flag|ntsc}} ''{{{desc-ntsc}}}''<br/>{{flag|pal}} ''{{{desc-pal}}}''}}</includeonly><noinclude>
{{#if:{{{desc|}}}|:''{{{desc|}}}''|:{{flag|ntsc}} ''{{{desc-ntsc}}}''<br/>{{flag|pal}} ''{{{desc-pal}}}''}}</includeonly><noinclude>
==Usage==
==Usage==
Line 7: Line 10:
! Parameter !! Description
! Parameter !! Description
|-
|-
| name || The name of the trophy
| 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 || A description of the trophy, for use only if the trophy does not differ across NTSC and PAL
Line 35: Line 42:
|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/>
|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/>
|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-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/>
<nowiki>{{Trophy games|console1=nes|game1=Donkey Kong Classics 09/1988|console2=nes|game2=Super Mario Bros. 10/1985}}</nowiki><br/>
<nowiki>{{Trophy games|console1=nes|game1=Donkey Kong Classics (09/1988)|console2=nes|game2=Super Mario Bros. (10/1985)}}</nowiki><br/>
|image-3ds=MarioTrophy3DS.png<br/>
|image-3ds=MarioTrophy3DS.png<br/>
|image-wiiu=MarioTrophyWiiU.png<br/>
|image-wiiu=MarioTrophyWiiU.png<br/>
}}
}}
</code> <br/> produces this:
</code><br/>produces this:
{{Trophy
{{Trophy
|name=Mario
|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-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.
|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.
{{Trophy games|console1=nes|game1=Donkey Kong Classics 09/1988|console2=nes|game2=Super Mario Bros. 10/1985}}
{{Trophy games|console1=nes|game1=Donkey Kong Classics (09/1988)|console2=nes|game2=Super Mario Bros. (10/1985)}}
|image-3ds=MarioTrophy3DS.png
|image-3ds=MarioTrophy3DS.png
|image-wiiu=MarioTrophyWiiU.png
|image-wiiu=MarioTrophyWiiU.png
}}</noinclude>
}}</noinclude>

Revision as of 10:41, July 17, 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
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

Example

this:
{{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.
{{Trophy games|console1=nes|game1=Donkey Kong Classics (09/1988)|console2=nes|game2=Super Mario Bros. (10/1985)}}
|image-3ds=MarioTrophy3DS.png
|image-wiiu=MarioTrophyWiiU.png
}}

produces this:

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)