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 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{ | ||
#vardefine:game|{{{game|PM}}} | #vardefine: game | {{{game|PM}}} | ||
}}{{ | }}{{ | ||
#vardefine:item|{{{2|{{{1}}}}}} | #vardefine: item | {{{2|{{{1}}}}}} | ||
}}{{ | }}{{ | ||
#vardefine:link|{{{link|{{{1}}}}}} | #vardefine: link | {{{link|{{{1}}}}}} | ||
}}{{ | }}{{ | ||
#vardefine:image-prefix|{{ | #vardefine: image-prefix | {{ | ||
# | #switch: {{#var:game}} | ||
|PM | | PM = PaperMario Items  | ||
| #default = | |||
| | |||
}} | }} | ||
}}{{ | }}{{ | ||
#vardefine:image-suffix|{{ | #vardefine: image-suffix | {{ | ||
# | #switch: {{#var:game}} | ||
|PM | | PM = | ||
| | | #default =  {{#var:game}} | ||
}} | }} | ||
}}{{ | }}{{ | ||
#vardefine:image-base|{{#replace:{{#replace:{{#replace:{{#replace:{{{item|{{#var:item}}}}}|×|x}}|.|}}|'|}}|?|}} | #vardefine: image-base | {{#replace:{{#replace:{{#replace:{{#replace:{{{item|{{#var:item}}}}}|×|x}}|.|}}|'|}}|?|}} | ||
}}{{ | }}{{ | ||
#vardefine:image-base|{{ | #vardefine: image-base | {{ | ||
# | #switch: {{#var:game}} | ||
|PM | | PM = {{#replace:{{#var:image-base}}| |}} | ||
| #default = {{#var:image-base}} | |||
|{{#var:image-base}} | |||
}} | }} | ||
}}{{ | }}{{ | ||
#vardefine:image|[[File:{{#var:image-prefix}}{{#var:image-base}}{{#var:image-suffix}}.png|{{{size|{{ | #vardefine: image | [[File:{{#var:image-prefix}}{{#var:image-base}}{{#var:image-suffix}}.png|{{{size|{{ | ||
# | #switch: {{#var:game}} | ||
|TTYD | | TTYD = 25x25px | ||
| #default = | |||
| | |||
}}}}}|link={{#var:link}}]] | }}}}}|link={{#var:link}}]] | ||
}}{{ | }}{{ | ||
#vardefine:text|{{{text|{{ | #vardefine: text | {{{text|{{ | ||
#if:{{{color|}}} | #if: {{{color|}}} | ||
|{{color-link-piped|{{#var:link}}|{{{color}}}|{{#var:item}}}} | | {{color-link-piped|{{#var:link}}|{{{color}}}|{{#var:item}}}} | ||
|[[{{#var:link}}|{{#var:item}}]] | | [[{{#var:link}}|{{#var:item}}]] | ||
}}}}} | }}}}} | ||
}}{{nowrap|{{ | }}{{nowrap|{{ | ||
#if:{{{right|}}} | #if: {{{right|}}} | ||
|{{#var:text}}{{{sep| }}}{{#var:image}} | | {{#var:text}}{{{sep| }}}{{#var:image}} | ||
|{{#var:image}}{{{sep| }}}{{#var:text}} | | {{#var:image}}{{{sep| }}}{{#var:text}} | ||
}}}}</includeonly><noinclude> | }}}}</includeonly><noinclude> | ||
=== Parameters === | === Parameters === |
Revision as of 20:02, September 19, 2020
Parameters
{{{1}}}
{{{2}}}
{{{sep}}}
{{{text}}}
{{{item}}}
{{{link}}}
{{{color}}}
{{{right}}}
{{{size}}}
{{{game}}}
Usage
{{PM item|Spaghetti}}
{{PM item|Hot Shroom}}
{{PM item|Whacka's Bump|sep=<br>}}
{{PM item|Jammin' Jelly|text=Jammin' Jelly}}
{{PM item|Mystery Box (item)|Mystery?}}
{{PM item|item=Mystery?|Mystery Box (item)}}
{{PM item|link=Mystery Box (item)|Mystery?}}
{{PM item|POW Block|link=|text=}}
{{PM item|Spaghetti|game=TTYD}}
{{PM item|Spaghetti Plate|game=SPM}}