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 | {{
     #ifeq:{{#var:game}}
     #switch: {{#var:game}}
     |PM
     | PM       = PaperMario Items&#32;
    |PaperMario Items&#32;
     | #default =
     |
   }}
   }}
}}{{
}}{{
   #vardefine:image-suffix|{{
   #vardefine: image-suffix | {{
     #ifeq:{{#var:game}}
     #switch: {{#var:game}}
     |PM
     | PM       =
     |
     | #default = &#32;{{#var:game}}
    |&#32;{{#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 | {{
     #ifeq:{{#var:game}}
     #switch: {{#var:game}}
     |PM
     | PM       = {{#replace:{{#var:image-base}}| |}}
    |{{#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|{{
     #ifeq:{{#var:game}}
     #switch: {{#var:game}}
     |TTYD
     | TTYD    = 25x25px
     |25x25px
     | #default = &nbsp;
     |&nbsp;
   }}}}}|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}}

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|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=|text=}}

Template:Nowrap

{{PM item|Spaghetti|game=TTYD}}

Template:Nowrap

{{PM item|Spaghetti Plate|game=SPM}}

Template:Nowrap

See also