Template:PM badge infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - ";"" to """)
No edit summary
Line 1: Line 1:
{| class="infobox" style="background:#d8f3fb;border-color:#00f;table-layout:fixed;text-align:center;width:250px"
{| class="infobox" style="background:#d8f3fb;border-color:#00f;table-layout:fixed;width:250px"
! colspan="4" style="background:#84d1ea;font-size:125%" | {{{title|{{PAGETITLE}}}}}
! colspan="2" style="background:#84d1ea;font-size:125%" | {{{title|{{PAGETITLE}}}}}
|- style="vertical-align:middle"
|-
!
| colspan="2" style="padding:0" |
! style="background:#84d1ea;border-radius:1em 1em 0 0;font-size:smaller;width:50px" | [[Paper Mario|PM64]]
{| style="text-align:center"
! style="background:#84d1ea;border-radius:1em 1em 0 0;font-size:smaller;width:50px" | [[Paper Mario: The Thousand-Year Door|TTYD]]
! style="width:50px" |
! style="background:#84d1ea;border-radius:1em 1em 0 0;font-size:smaller;width:50px" | [[Paper Mario: The Thousand-Year Door (Nintendo Switch)|TTYD<small>&nbsp;NS</small>]]
! style="background:#84d1ea;border-radius:1em 1em 0 0;font-size:smaller;width:100px" | [[Paper Mario|PM64]]
! style="background:#84d1ea;border-radius:1em 1em 0 0;font-size:smaller;width:100px" | [[Paper Mario: The Thousand-Year Door|TTYD]]
|- style="vertical-align:middle"
|- style="vertical-align:middle"
{{#if:{{{image_pm|}}}{{{image_ttyd|}}}{{{image_ttydns|}}}|
{{#if:{{{image_pm|}}}{{{image_ttyd|}}}{{{image_ttydns|}}}|
{{!}}
{{!}}
{{!}} {{#if:{{{image_pm|}}}|[[File:{{{image_pm}}}|24x24px]]}}
{{!}} {{#if:{{{image_pm|}}}|[[File:{{{image_pm}}}|24x24px]]}}
{{!}} {{#if:{{{image_ttyd|}}}|[[File:{{{image_ttyd}}}|40x40px]]}}
{{!}} {{#if:{{{image_ttyd|}}}|[[File:{{{image_ttyd}}}|50x50px]]}}
{{!}} {{#if:{{{image_ttydns|}}}|[[File:{{{image_ttydns}}}|50x50px]]}}
}}
}}
|- style="vertical-align:middle"
|- style="vertical-align:middle"
{{#if:{{{bp|}}}{{{bp_pm|}}}{{{bp_ttyd|}}}{{{bp_ttydns|}}}|
{{#if:{{{bp|}}}{{{bp_pm|}}}{{{bp_ttyd|}}}{{{bp_ttydns|}}}|
! style="text-align:left" {{!}} [[File:Badge Point PMTTYDNS icon.png|16x16px|link=Badge Point]] [[Badge Point|BP]]
! style="text-align:left;padding-left:0" {{!}} [[File:Badge Point PMTTYDNS icon.png|16x16px|link=Badge Point]][[Badge Point|&nbsp;BP]]
{{!}} style="background:#aee2f3" {{!}} {{{bp_pm|{{{bp}}}}}}
{{!}} style="background:#aee2f3" {{!}} {{{bp_pm|{{{bp}}}}}}
{{!}} style="background:#aee2f3" {{!}} {{{bp_ttyd|{{{bp}}}}}}
{{!}} style="background:#aee2f3" {{!}} {{{bp_ttyd|{{{bp}}}}}}{{#if:{{{bp_ttydns|}}}|<small>&nbsp;(GCN)</small><br />{{{bp_ttydns}}}<small>&nbsp;[[Paper Mario: The Thousand-Year Door (Nintendo Switch)|(NS)]]</small>}}
{{!}} style="background:#aee2f3" {{!}} {{{bp_ttydns|{{{bp}}}}}}
}}
}}
|- style="vertical-align:middle"
|- style="vertical-align:middle"
{{#if:{{{fp|}}}{{{fp_pm|}}}{{{fp_ttyd|}}}{{{fp_ttydns|}}}|
{{#if:{{{fp|}}}{{{fp_pm|}}}{{{fp_ttyd|}}}{{{fp_ttydns|}}}|
{{#replace:
{{#replace:
! style="text-align:left" {{!}} [[File:Flower Point PMTTYDNS icon.png|16x16px|link=Flower Point]] [[Flower Point|FP]]
! style="text-align:left;padding-left:0" {{!}} [[File:Flower Point PMTTYDNS icon.png|16x16px|link=Flower Point]][[Flower Point|&nbsp;FP]]
{{!}} style="background:#aee2f3" {{!}} {{{fp_pm|{{{fp}}}}}}{{#if:{{{fp_addl_pm|{{{fp_addl}}}}}}|<small>&nbsp;{{hover|{{{fp_addl_pm|{{{fp_addl}}}}}}|per additional badge worn}}</small>}}
{{!}} style="background:#aee2f3" {{!}} {{{fp_pm|{{{fp}}}}}}{{#if:{{{fp_addl_pm|{{{fp_addl}}}}}}|<small>&nbsp;{{hover|{{{fp_addl_pm|{{{fp_addl}}}}}}|per additional badge worn}}</small>}}
{{!}} style="background:#aee2f3" {{!}} {{{fp_ttyd|{{{fp}}}}}}{{#if:{{{fp_addl_ttyd|{{{fp_addl}}}}}}|<small>&nbsp;{{hover|{{{fp_addl_ttyd|{{{fp_addl}}}}}}|per additional badge worn}}</small>}}
{{!}} style="background:#aee2f3" {{!}} {{{fp_ttyd|{{{fp}}}}}}{{#if:{{{fp_addl_ttyd|{{{fp_addl}}}}}}|<small>&nbsp;{{hover|{{{fp_addl_ttyd|{{{fp_addl}}}}}}|per additional badge worn}}</small>}}{{#if:{{{fp_ttydns|}}}{{{fp_addl_ttydns|}}}|<small>&nbsp;(GCN)</small><br />{{{fp_ttydns|{{{fp}}}}}}{{#if:{{{fp_addl_ttydns|{{{fp_addl}}}}}}|<small>&nbsp;{{hover|{{{fp_addl_ttydns|{{{fp_addl}}}}}}|per additional badge worn}}</small>}}<small>&nbsp;[[Paper Mario: The Thousand-Year Door (Nintendo Switch)|(NS)]]</small>}}
{{!}} style="background:#aee2f3" {{!}} {{{fp_ttydns|{{{fp}}}}}}{{#if:{{{fp_addl_ttydns|{{{fp_addl}}}}}}|<small>&nbsp;{{hover|{{{fp_addl_ttydns|{{{fp_addl}}}}}}|per additional badge worn}}</small>}}
|*|&times;}}
|*|&times;}}
}}
}}
Line 35: Line 33:
{{#replace:
{{#replace:
{{#replace:
{{#replace:
! style="text-align:left" {{!}} {{hover|Price|Buy price. Sell prices are halved.}}
! style="text-align:left;padding-left:0" {{!}} {{hover|Price|Buy price. Sell prices are halved.}}
{{!}} style="background:#aee2f3" {{!}} {{{price_pm|{{{price}}}}}}
{{!}} style="background:#aee2f3" {{!}} {{{price_pm|{{{price}}}}}}
{{!}} style="background:#aee2f3" {{!}} {{{price_ttyd|{{{price}}}}}}
{{!}} style="background:#aee2f3" {{!}} {{{price_ttyd|{{{price}}}}}}{{#if:{{{price_ttydns|}}}|<br /><small>(GCN)</small><hr />{{{price_ttydns}}}<br /><small>[[Paper Mario: The Thousand-Year Door (Nintendo Switch)|(NS)]]</small>}}
{{!}} style="background:#aee2f3" {{!}} {{{price_ttydns|{{{price}}}}}}
|,|<br />}}
|,|<br />}}
|<Coin>|[[File:Coin PMTTYDNS icon.png|16x16px|Coin|link=Coin]]}}
|<Coin>|[[File:Coin PMTTYDNS icon.png|16x16px|Coin|link=Coin]]}}
|<Star Piece>|[[File:Star Piece PMTTYDNS icon.png|16x16px|Star Piece|link=Star Piece (Paper Mario series)]]}}
|<Star Piece>|[[File:Star Piece PMTTYDNS icon.png|16x16px|Star Piece|link=Star Piece (Paper Mario series)]]}}
|<Pianta>|[[File:Pianta Token PMTTYDNS icon.png|16x16px|Pianta|link=Pianta token]]}}
|<Pianta>|[[File:Pianta Token PMTTYDNS icon.png|16x16px|Pianta|link=Pianta token]]}}
}}
|}
|-
! style="text-align:left;width:50px" | Effect
| {{{effect}}}
|-
! colspan="2" style="text-align:left" | Descriptions
|-
{{#if:{{{pm|}}}|
{{!}} colspan="2" style="background:#fff" {{!}} {{{pm}}} <small style="display:inline-block">(''[[Paper Mario]]'')</small>
}}
|-
{{#if:{{{ttyd|}}}|
{{!}} colspan="2" style="background:#fff" {{!}} {{{ttyd}}} <small style="display:inline-block">([[Paper Mario: The Thousand-Year Door|''The Thousand-Year Door''{{#if:{{{ttydns|}}}|, GameCube}}]])</small>
}}
|-
{{#if:{{{ttydns|}}}|
{{!}} colspan="2" style="background:#fff" {{!}} {{{ttydns}}} <small style="display:inline-block">([[Paper Mario: The Thousand-Year Door (Nintendo Switch)|''The Thousand-Year Door'', Switch]])</small>
}}
}}
|}<noinclude>
|}<noinclude>
Line 50: Line 65:
*Hide empty columns
*Hide empty columns
*Power (include Boots and Hammer icons)
*Power (include Boots and Hammer icons)
*Effect and descriptions
{{br}}
{{br}}
==Example==
==Example==
Line 57: Line 71:
|image_pm    = Anger's Power PM unused.png
|image_pm    = Anger's Power PM unused.png
|image_ttyd  = Unknown Badge TTYD.png
|image_ttyd  = Unknown Badge TTYD.png
|image_ttydns = Nostalgic Tunes PMTTYDNS icon.png
|bp          = 1
|bp          = 1
|bp_ttydns    = 0
|fp          = 2
|fp          = 2
|fp_addl_pm  = +2
|fp_addl_pm  = +2
|fp_addl      = *2
|fp_addl_ttyd = *2
|price_pm    = &mdash;
|price_pm    = &mdash;
|price_ttyd  = <Coin>100
|price_ttyd  = <Coin>100, <Star Piece>2, <Pianta>24
|price_ttydns = <Star Piece>2, <Pianta>24
|effect      = Lets Mario use Bogus Blast.
|pm          = Lets you do a Bogus Blast. Uses 2 FP. This attack is made up.
|ttyd        = Wear this to use Bogus Blast. 2 FP are required to use this attack, which is just made up to show how to use this template. Wearing two or more of these badges requires more FP for the move, but increases the Attack power.
}}
}}
This example would be generated with:
This example would be generated with:
Line 72: Line 88:
|image_pm    = Anger's Power PM unused.png
|image_pm    = Anger's Power PM unused.png
|image_ttyd  = Unknown Badge TTYD.png
|image_ttyd  = Unknown Badge TTYD.png
|image_ttydns = Nostalgic Tunes PMTTYDNS icon.png
|bp          = 1
|bp          = 1
|bp_ttydns    = 0
|fp          = 2
|fp          = 2
|fp_addl_pm  = +2
|fp_addl_pm  = +2
|fp_addl      = *2
|fp_addl_ttyd = *2
|price_pm    = &mdash;
|price_pm    = &mdash;
|price_ttyd  = <Coin>100
|price_ttyd  = <Coin>100, <Star Piece>2, <Pianta>24
|price_ttydns = <Star Piece>2, <Pianta>24
|effect      = Lets Mario use Bogus Blast.
|pm          = Lets you do a Bogus Blast. Uses 2 FP. This attack is made up.
|ttyd        = Wear this to use Bogus Blast. 2 FP are required to use this attack, which is just made up to show how to use this template. Wearing two or more of these badges requires more FP for the move, but increases the Attack power.
}}
}}
</pre>
</pre>

Revision as of 10:37, May 29, 2024

PM badge infobox
PM64 TTYD
Effect {{{effect}}}
Descriptions

Work-in-progress update to Template:PM badge infobox. See mb:threads/47694.

To do:

  • Hide empty columns
  • Power (include Boots and Hammer icons)

Example

User:AgentMuffin/PM badge infobox This example would be generated with:

{{PM badge infobox
|title        = Bogus Example
|image_pm     = Anger's Power PM unused.png
|image_ttyd   = Unknown Badge TTYD.png
|bp           = 1
|bp_ttydns    = 0
|fp           = 2
|fp_addl_pm   = +2
|fp_addl_ttyd = *2
|price_pm     = —
|price_ttyd   = <Coin>100, <Star Piece>2, <Pianta>24
|effect       = Lets Mario use Bogus Blast.
|pm           = Lets you do a Bogus Blast. Uses 2 FP. This attack is made up.
|ttyd         = Wear this to use Bogus Blast. 2 FP are required to use this attack, which is just made up to show how to use this template. Wearing two or more of these badges requires more FP for the move, but increases the Attack power.
}}