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 
     | #default =
     | PMCS    = PMCS Item 
   }}
   }}
}}{{
}}{{
   #vardefine: image-suffix | {{
   #vardefine: image-suffix | {{
     #switch: {{#var:game}}
     #switch: {{#var:game}}
     | PM      =
     | TTYD    =  TTYD
    | SPM      =  SPM
    | PMSS    =  Sticker PMSS
     | PMTOK    =  PMTOK icon
     | PMTOK    =  PMTOK icon
    | #default =  {{#var:game}}
   }}
   }}
}}{{
}}{{
   #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 12: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, 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|Jammin' Jelly|wikitext=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=}}   POW Block
{{PM item|POW Block|text=}}  
{{PM item|POW Block|link=|text=}}  
{{PM item|game=TTYD|Spaghetti}} Spaghetti TTYD.png Spaghetti
{{PM item|game=SPM|Spaghetti Plate}}   Spaghetti Plate
{{PM item|game=PMSS|Sticker#Cat-o-Luck|Cat-o-Luck}} Cat-o-Luck Sticker PMSS.png Cat-o-Luck
{{PM item|game=PMCS|Café Key}} The Café Key icon from Paper Mario: Color Splash Café Key
{{PM item|game=PMTOK|Mushroom}} An item from Paper Mario: The Origami King. Mushroom
{{PM item|game=PMTOK|1-Up Mushroom}} A 1-Up Mushroom from Paper Mario: The Origami King. 1-Up Mushroom
{{PM item|game=PMTOK|Spring of Rainbows - VIP}} An item from Paper Mario: The Origami King. Spring of Rainbows - VIP
{{PM item|game=PMTOK|Key to Bowser's Castle}} An item from Paper Mario: The Origami King. Key to Bowser's Castle
{{PM item|game=PMTOK|"M-A-X Power!"}} An item from Paper Mario: The Origami King. "M-A-X Power!"
{{PM item|game=PMTOK|"Deep, Deep Vibes"}} An item from Paper Mario: The Origami King. "Deep, Deep Vibes"

See also