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 47: | Line 47: | ||
}}{{ | }}{{ | ||
#vardefine: text | {{{text|{{ | #vardefine: text | {{{text|{{ | ||
#if: {{{color|}}} | #if: {{#var:link}} | ||
| {{#if: {{{color|}}} | |||
| {{color-link-piped|{{#var:link}}|{{{color}}}|{{#var:item}}}} | |||
| [[{{#var:link}}|{{#var:item}}]] | |||
}} | |||
| {{#if: {{{color|}}} | |||
| <span style="color:{{{color}}}">{{#var:item}}</span> | |||
| {{#var:item}} | |||
}} | |||
}}}}} | }}}}} | ||
}}{{nowrap|{{ | }}{{nowrap|{{ |
Revision as of 12:08, 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 , SPM , CS , or TOK
|
Examples
Code | Result |
---|---|
{{PM item|Spaghetti}} |
Spaghetti |
{{PM item|Hot Shroom}} |
Hot Shroom |
{{PM item|Whacka's Bump|sep=<br>}} |
Whacka's Bump |
{{PM item|Jammin' Jelly|text=Jammin' Jelly}} |
Jammin' Jelly |
{{PM item|Mystery Box (item)|Mystery?}} |
Mystery? |
{{PM item|item=Mystery?|Mystery Box (item)}} |
Mystery Box (item) |
{{PM item|link=Mystery Box (item)|Mystery?}} |
Mystery? |
{{PM item|POW Block|link=|text=}} |
|
{{PM item|game=TTYD|Spaghetti}} |
Spaghetti |
{{PM item|game=SPM|Spaghetti Plate}} |
Spaghetti Plate |
{{PM item|game=PMTOK|Mushroom}} |
Mushroom |
{{PM item|game=PMTOK|1-Up Mushroom}} |
1-Up Mushroom |
{{PM item|game=PMTOK|Spring of Rainbows - VIP}} |
Spring of Rainbows - VIP |
{{PM item|game=PMTOK|Key to Bowser's Castle}} |
Key to Bowser's Castle |
{{PM item|game=PMTOK|"M-A-X Power!"}} |
"M-A-X Power!" |
{{PM item|game=PMTOK|"Deep, Deep Vibes"}} |
"Deep, Deep Vibes" |