Template:SPM item: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
|1{{#ifeq:{{{1|}}}|{{{1}}}||NULL}}={{{1}}} | |1{{#ifeq:{{{1|}}}|{{{1}}}||NULL}}={{{1}}} | ||
|2{{#ifeq:{{{2|}}}|{{{2}}}||NULL}}={{{2}}} | |2{{#ifeq:{{{2|}}}|{{{2}}}||NULL}}={{{2}}} | ||
|item{{#ifeq:{{{item|}}}|{{{item}}}||NULL}}={{{item}}} | |item{{#ifeq:{{{item|}}}|{{{item}}}||NULL}}={{{item}}} | ||
|size{{#ifeq:{{{size|}}}|{{{size}}}||NULL}}={{{size}}} | |||
|right{{#ifeq:{{{right|}}}|{{{right}}}||NULL}}={{{right}}} | |||
|link{{#ifeq:{{{link|}}}|{{{link}}}||NULL}}={{{link}}} | |link{{#ifeq:{{{link|}}}|{{{link}}}||NULL}}={{{link}}} | ||
|text{{#ifeq:{{{text|}}}|{{{text}}}||NULL}}={{{text}}} | |||
|color{{#ifeq:{{{color|}}}|{{{color}}}||NULL}}={{{color}}} | |color{{#ifeq:{{{color|}}}|{{{color}}}||NULL}}={{{color}}} | ||
| | |wikitext{{#ifeq:{{{wikitext|}}}|{{{wikitext}}}||NULL}}={{{wikitext}}} | ||
| | |sep{{#ifeq:{{{sep|}}}|{{{sep}}}||NULL}}={{{sep}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
This template creates a page link related to ''[[Super Paper Mario]]'' with an associated item image on the left side. | This template creates a page link related to ''[[Super Paper Mario]]'' with an associated item image on the left side. | ||
Line 28: | Line 28: | ||
|- | |- | ||
| <code><nowiki>{{SPM item|Honey Jar|text=Honey Jar}}</nowiki></code> || {{SPM item|Honey Jar|text=Honey Jar}} | | <code><nowiki>{{SPM item|Honey Jar|text=Honey Jar}}</nowiki></code> || {{SPM item|Honey Jar|text=Honey Jar}} | ||
|- | |||
| <code><nowiki>{{SPM item|Honey Jar|wikitext=Honey Jar}}</nowiki></code> || {{SPM item|Honey Jar|wikitext=Honey Jar}} | |||
|- | |- | ||
| <code><nowiki>{{SPM item|Mystery Box (item)|Mystery Box}}</nowiki></code> || {{SPM item|Mystery Box (item)|Mystery Box}} | | <code><nowiki>{{SPM item|Mystery Box (item)|Mystery Box}}</nowiki></code> || {{SPM item|Mystery Box (item)|Mystery Box}} |
Revision as of 13:32, September 23, 2020
This template creates a page link related to Super Paper Mario with an associated item image on the left side.
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 |
Examples
Code | Result |
---|---|
{{SPM item|Spaghetti Plate}} |
Spaghetti Plate |
{{SPM item|Couple's Cake}} |
Couple's Cake |
{{SPM item|Whacka Bump|sep=<br>}} |
Whacka Bump |
{{SPM item|Honey Jar|text=Honey Jar}} |
Honey Jar |
{{SPM item|Honey Jar|wikitext=Honey Jar}} |
Honey Jar |
{{SPM item|Mystery Box (item)|Mystery Box}} |
Mystery Box |
{{SPM item|item=Mystery Box|Mystery Box (item)}} |
Mystery Box (item) |
{{SPM item|link=Mystery Box (item)|Mystery Box}} |
Mystery Box |
{{SPM item|POW Block|link=|text=}} |
|
{{SPM item|Egg Bomb|color=green}} |
Egg Bomb |
{{SPM item|Awesome Snack|right=1}} |
Awesome Snack |
{{SPM item|Berry Snow Bunny|size=25x25px}} |
Berry Snow Bunny |