Template:PM item: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 11: | Line 11: | ||
#switch: {{#var:game}} | #switch: {{#var:game}} | ||
| PM = PaperMario Items  | | PM = PaperMario Items  | ||
| # | | PMCS = PMCS Item  | ||
}} | }} | ||
}}{{ | }}{{ | ||
#vardefine: image-suffix | {{ | #vardefine: image-suffix | {{ | ||
#switch: {{#var:game}} | #switch: {{#var:game}} | ||
| | | TTYD =  TTYD | ||
| SPM =  SPM | |||
| PMSS =  Sticker PMSS | |||
| PMTOK =  PMTOK icon | | PMTOK =  PMTOK icon | ||
}} | }} | ||
}}{{ | }}{{ | ||
#vardefine: image-base | {{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{item|{{#var:item}}}}}|×|x}}|.|}}|,|}}|'|}}|"|}}|?|}}|!|}} | #vardefine: image-base | {{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{item|{{#var:item}}}}}|é|e}}|×|x}}|.|}}|,|}}|'|}}|"|}}|?|}}|!|}} | ||
}}{{ | }}{{ | ||
#vardefine: image-base | {{ | #vardefine: image-base | {{ | ||
Line 43: | Line 44: | ||
| {{#switch: {{#var:game}} | | {{#switch: {{#var:game}} | ||
| TTYD = 25x25px | | TTYD = 25x25px | ||
| PMSS = 50x50px | |||
| PMCS = 50x50px | |||
| PMTOK = 50x50px | | PMTOK = 50x50px | ||
| #default = | | #default = | ||
Line 98: | Line 101: | ||
|- | |- | ||
| <code><nowiki>{{PM item|game=SPM|Spaghetti Plate}}</nowiki></code> || {{PM item|game=SPM|Spaghetti Plate}} | | <code><nowiki>{{PM item|game=SPM|Spaghetti Plate}}</nowiki></code> || {{PM item|game=SPM|Spaghetti Plate}} | ||
|- | |||
| <code><nowiki>{{PM item|game=PMSS|Sticker#Cat-o-Luck|Cat-o-Luck}}</nowiki></code> || {{PM item|game=PMSS|Sticker#Cat-o-Luck|Cat-o-Luck}} | |||
|- | |||
| <code><nowiki>{{PM item|game=PMCS|Café Key}}</nowiki></code> || {{PM item|game=PMCS|Café Key}} | |||
|- | |- | ||
| <code><nowiki>{{PM item|game=PMTOK|Mushroom}}</nowiki></code> || {{PM item|game=PMTOK|Mushroom}} | | <code><nowiki>{{PM item|game=PMTOK|Mushroom}}</nowiki></code> || {{PM item|game=PMTOK|Mushroom}} |
Revision as of 11:53, September 23, 2020
Parameters
Name | Usage |
---|---|
{{{1}}}
|
Set the defaults for {{{item}}} , {{{link}}} , and {{{text}}}
|
{{{item}}} or {{{2}}}
|
Set the item to be displayed |
{{{size}}}
|
Set the item image size |
{{{right}}}
|
Set the position of the item image |
{{{link}}}
|
Set the page to link |
{{{text}}}
|
Set the text to be displayed |
{{{color}}}
|
Set the text color |
{{{wikitext}}}
|
Override {{{text}}}
|
{{{sep}}}
|
Set the separator between the item image and text |
{{{game}}}
|
PM (default), TTYD , TTYDNS , SPM , CS , or TOK
|
Examples
Code | Result |
---|---|
{{PM item|Spaghetti}} |
Template:Nowrap |
{{PM item|Hot Shroom}} |
Template:Nowrap |
{{PM item|Whacka's Bump|sep=<br>}} |
Template:Nowrap |
{{PM item|Jammin' Jelly|text=Jammin' Jelly}} |
Template:Nowrap |
{{PM item|Jammin' Jelly|wikitext=Jammin' Jelly}} |
Template:Nowrap |
{{PM item|Mystery Box (item)|Mystery?}} |
Template:Nowrap |
{{PM item|item=Mystery?|Mystery Box (item)}} |
Template:Nowrap |
{{PM item|link=Mystery Box (item)|Mystery?}} |
Template:Nowrap |
{{PM item|POW Block|link=}} |
Template:Nowrap |
{{PM item|POW Block|text=}} |
Template:Nowrap |
{{PM item|POW Block|link=|text=}} |
Template:Nowrap |
{{PM item|game=TTYD|Spaghetti}} |
Template:Nowrap |
{{PM item|game=SPM|Spaghetti Plate}} |
Template:Nowrap |
{{PM item|game=PMSS|Sticker#Cat-o-Luck|Cat-o-Luck}} |
Template:Nowrap |
{{PM item|game=PMCS|Café Key}} |
Template:Nowrap |
{{PM item|game=PMTOK|Mushroom}} |
Template:Nowrap |
{{PM item|game=PMTOK|1-Up Mushroom}} |
Template:Nowrap |
{{PM item|game=PMTOK|Spring of Rainbows - VIP}} |
Template:Nowrap |
{{PM item|game=PMTOK|Key to Bowser's Castle}} |
Template:Nowrap |
{{PM item|game=PMTOK|"M-A-X Power!"}} |
Template:Nowrap |
{{PM item|game=PMTOK|"Deep, Deep Vibes"}} |
Template:Nowrap |