Template:PM badge infobox: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - "<br />" to "<br>") |
mNo edit summary |
||
(22 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox" style="background:#d8f3fb;border-color:#00f;table-layout:fixed | {| class="infobox" style="width:250px;background:#d8f3fb;border-color:#00f;table-layout:fixed" | ||
! style="background:#84d1ea;font-size:125%" | {{{title|{{PAGETITLE}}}}} | ! style="background:#84d1ea;font-size:125%" | {{{title|{{PAGETITLE}}}}} | ||
|- | |- | ||
Line 5: | Line 5: | ||
{| style="text-align:center;min-width:236px;width:236px;max-width:242px" | {| style="text-align:center;min-width:236px;width:236px;max-width:242px" | ||
! style="min-width:50px;width:50px;max-width:50px" | | ! style="min-width:50px;width:50px;max-width:50px" | | ||
! style="{{#if:{{{pm|}}}||display:none;}}background:#84d1ea;border-radius:1em 1em 0 0;font-size:smaller;min-width:50px;width:100px;max-width:100px" | [[Paper Mario | ! style="{{#if:{{{pm|}}}||display:none;}}background:#84d1ea;--darkbg:#333;border-radius:1em 1em 0 0;font-size:smaller;min-width:50px;width:100px;max-width:100px" | ''[[Paper Mario]]'' | ||
! style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#84d1ea;border-radius:1em 1em 0 0;font-size:smaller;min-width:50px;width:100px;max-width:100px" | [[Paper Mario: The Thousand-Year Door| | ! style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#84d1ea;--darkbg:#333;border-radius:1em 1em 0 0;font-size:smaller;min-width:50px;width:100px;max-width:100px" | ''[[Paper Mario: The Thousand-Year Door|The Thousand-Year Door]]'' | ||
|- style="vertical-align:middle" | |- style="vertical-align:middle" | ||
{{#if:{{{image_pm|}}}{{{image_ttyd|}}}| | {{#if:{{{image_pm|}}}{{{image_ttyd|}}}| | ||
Line 16: | Line 16: | ||
{{#if:{{{bp|}}}{{{bp_pm|}}}{{{bp_ttyd|}}}| | {{#if:{{{bp|}}}{{{bp_pm|}}}{{{bp_ttyd|}}}| | ||
! style="text-align:left;padding-inline:0" {{!}} [[File:Badge Point PMTTYDNS icon.png|16x16px|link=Badge Point]][[Badge Point| BP]] | ! style="text-align:left;padding-inline:0" {{!}} [[File:Badge Point PMTTYDNS icon.png|16x16px|link=Badge Point]][[Badge Point| BP]] | ||
{{!}} style="{{#if:{{{pm|}}}||display:none;}}background:#aee2f3" {{!}} {{{bp_pm|{{{bp}}}}}} | {{!}} style="{{#if:{{{pm|}}}||display:none;}}background:#aee2f3;--darkbg:#444" {{!}} {{{bp_pm|{{{bp}}}}}} | ||
{{!}} style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#aee2f3" {{!}} {{{bp_ttyd|{{{bp}}}}}}{{#if:{{{bp_ttydns|}}}|<small> (GCN)</small><br>{{{bp_ttydns}}}<small> [[Paper Mario: The Thousand-Year Door (Nintendo Switch)|(NS)]]</small>}} | {{!}} style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#aee2f3;--darkbg:#444" {{!}} {{{bp_ttyd|{{{bp}}}}}}{{#if:{{{bp_ttydns|}}}|<small> (GCN)</small><br>{{{bp_ttydns}}}<small> [[Paper Mario: The Thousand-Year Door (Nintendo Switch)|(NS)]]</small>}} | ||
}} | }} | ||
|- style="vertical-align:middle" | |- style="vertical-align:middle" | ||
Line 23: | Line 23: | ||
{{#replace: | {{#replace: | ||
! style="text-align:left;padding-inline:0" {{!}} [[File:Flower Point PMTTYDNS icon.png|16x16px|link=Flower Point]][[Flower Point| FP]] | ! style="text-align:left;padding-inline:0" {{!}} [[File:Flower Point PMTTYDNS icon.png|16x16px|link=Flower Point]][[Flower Point| FP]] | ||
{{!}} style="{{#if:{{{pm|}}}||display:none;}}background:#aee2f3" {{!}} {{{fp_pm|{{{fp}}}}}}{{#if:{{{fp_addl_pm|{{{fp_addl|}}}}}}|<small> {{hover|{{{fp_addl_pm|{{{fp_addl}}}}}}|per additional badge worn}}</small>}} | {{!}} style="{{#if:{{{pm|}}}||display:none;}}background:#aee2f3;--darkbg:#444" {{!}} {{{fp_pm|{{{fp}}}}}}{{#if:{{{fp_addl_pm|{{{fp_addl|}}}}}}|<small> {{hover|{{{fp_addl_pm|{{{fp_addl}}}}}}|per additional badge worn}}</small>}} | ||
{{!}} style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#aee2f3" {{!}} {{{fp_ttyd|{{{fp}}}}}}{{#if:{{{fp_addl_ttyd|{{{fp_addl|}}}}}}|<small> {{hover|{{{fp_addl_ttyd|{{{fp_addl}}}}}}|per additional badge worn}}</small>}}{{#if:{{{fp_ttydns|}}}{{{fp_addl_ttydns|}}}|<small> (GCN)</small><br>{{{fp_ttydns|{{{fp}}}}}}{{#if:{{{fp_addl_ttydns|{{{fp_addl|}}}}}}|<small> {{hover|{{{fp_addl_ttydns|{{{fp_addl}}}}}}|per additional badge worn}}</small>}}<small> [[Paper Mario: The Thousand-Year Door (Nintendo Switch)|(NS)]]</small>}} | {{!}} style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#aee2f3;--darkbg:#444" {{!}} {{{fp_ttyd|{{{fp}}}}}}{{#if:{{{fp_addl_ttyd|{{{fp_addl|}}}}}}|<small> {{hover|{{{fp_addl_ttyd|{{{fp_addl}}}}}}|per additional badge worn}}</small>}}{{#if:{{{fp_ttydns|}}}{{{fp_addl_ttydns|}}}|<small> (GCN)</small><br>{{{fp_ttydns|{{{fp}}}}}}{{#if:{{{fp_addl_ttydns|{{{fp_addl|}}}}}}|<small> {{hover|{{{fp_addl_ttydns|{{{fp_addl}}}}}}|per additional badge worn}}</small>}}<small> [[Paper Mario: The Thousand-Year Door (Nintendo Switch)|(NS)]]</small>}} | ||
|*|×}} | |*|×}} | ||
}} | }} | ||
Line 36: | Line 36: | ||
{{#replace: | {{#replace: | ||
{{#replace: | {{#replace: | ||
! style="text-align:left;padding-inline:0" {{!}} [[File:Attack PMTTYDNS icon.png|16x16px|link=Attack]][[ | {{#replace: | ||
{{!}} style="{{#if:{{{pm|}}}||display:none;}}background:#aee2f3" {{!}} {{{attack_pm|{{{attack}}}}}}{{#if:{{{attack_addl_pm|{{{attack_addl|}}}}}}|<small> {{hover|{{{attack_addl_pm|{{{attack_addl}}}}}}|per additional badge worn}}</small>}} | ! style="text-align:left;padding-inline:0" {{!}} [[File:Attack PMTTYDNS icon.png|16x16px|link=Attack]][[Power| Atk.]] | ||
{{!}} style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#aee2f3" {{!}} {{{attack_ttyd|{{{attack}}}}}}{{#if:{{{attack_addl_ttyd|{{{attack_addl|}}}}}}|<small> {{hover|{{{attack_addl_ttyd|{{{attack_addl}}}}}}|per additional badge worn}}</small>}}{{#if:{{{attack_ttydns|}}}{{{attack_addl_ttydns|}}}|<small> (GCN)</small><br>{{{attack_ttydns|{{{attack}}}}}}{{#if:{{{attack_addl_ttydns|{{{attack_addl|}}}}}}|<small> {{hover|{{{attack_addl_ttydns|{{{attack_addl}}}}}}|per additional badge worn}}</small>}}<small> [[Paper Mario: The Thousand-Year Door (Nintendo Switch)|(NS)]]</small>}} | {{!}} style="{{#if:{{{pm|}}}||display:none;}}background:#aee2f3;--darkbg:#444" {{!}} <span style="display:inline-block">{{{attack_pm|{{{attack}}}}}}</span>{{#if:{{{attack_addl_pm|{{{attack_addl|}}}}}}|<small> {{hover|{{{attack_addl_pm|{{{attack_addl}}}}}}|per additional badge worn}}</small>}} | ||
{{!}} style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#aee2f3;--darkbg:#444" {{!}} <span style="display:inline-block">{{{attack_ttyd|{{{attack}}}}}}</span>{{#if:{{{attack_addl_ttyd|{{{attack_addl|}}}}}}|<small> {{hover|{{{attack_addl_ttyd|{{{attack_addl}}}}}}|per additional badge worn}}</small>}}{{#if:{{{attack_ttydns|}}}{{{attack_addl_ttydns|}}}|<small> (GCN)</small><br><span style="display:inline-block">{{{attack_ttydns|{{{attack}}}}}}</span>{{#if:{{{attack_addl_ttydns|{{{attack_addl|}}}}}}|<small> {{hover|{{{attack_addl_ttydns|{{{attack_addl}}}}}}|per additional badge worn}}</small>}}<small> [[Paper Mario: The Thousand-Year Door (Nintendo Switch)|(NS)]]</small>}} | |||
|,|<br>}} | |,|<br>}} | ||
|*|×}} | |||
|<Boots>|[[File:Boots PMTTYDNS icon.png|16x16px|Boots|link=Boots]]}} | |<Boots>|[[File:Boots PMTTYDNS icon.png|16x16px|Boots|link=Boots]]}} | ||
|<Super Boots>|[[File:Super Boots PMTTYDNS icon.png|16x16px|Super Boots|link=Super Boots]]}} | |<Super Boots>|[[File:Super Boots PMTTYDNS icon.png|16x16px|Super Boots|link=Super Boots]]}} | ||
Line 53: | Line 55: | ||
{{#replace: | {{#replace: | ||
{{#replace: | {{#replace: | ||
! style="text-align:left;padding-inline:0" {{!}} {{hover|Price|Buy price. Sell prices (where possible) are halved.}} | ! style="text-align:left;padding-inline:0" {{!}} {{#if:{{{sell_price|}}}{{{sell_price_pm|}}}{{{sell_price_ttyd|}}}|Buy price|{{hover|Price|Buy price. Sell prices (where possible) are halved.}}}} | ||
{{!}} style="{{#if:{{{pm|}}}||display:none;}}background:#aee2f3" {{!}} {{{price_pm|{{{price}}}}}} | {{!}} style="{{#if:{{{pm|}}}||display:none;}}background:#aee2f3;--darkbg:#444" {{!}} {{{price_pm|{{{price}}}}}} | ||
{{!}} style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#aee2f3" {{!}} {{{price_ttyd|{{{price}}}}}}{{#if:{{{price_ttydns|}}}|<br><small>(GCN)</small><hr />{{{ | {{!}} style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#aee2f3;--darkbg:#444" {{!}} {{{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>}} | ||
|,|<br>}} | |||
|<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)]]}} | |||
|<Pianta>|[[File:Pianta Token PMTTYDNS icon.png|16x16px|Pianta|link=Pianta token]]}} | |||
}} | |||
|- style="vertical-align:middle" | |||
{{#if:{{{sell_price|}}}{{{sell_price_pm|}}}{{{sell_price_ttyd|}}}| | |||
{{#replace: | |||
{{#replace: | |||
{{#replace: | |||
{{#replace: | |||
! style="text-align:left;padding-inline:0" {{!}} Sell price | |||
{{!}} style="{{#if:{{{pm|}}}||display:none;}}background:#aee2f3;--darkbg:#444" {{!}} {{{sell_price_pm|{{{sell_price}}}}}} | |||
{{!}} style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#aee2f3;--darkbg:#444" {{!}} {{{sell_price_ttyd|{{{sell_price}}}}}}{{#if:{{{sell_price_ttydns|}}}|<br><small>(GCN)</small><hr>{{{sell_price_ttydns}}}<br><small>[[Paper Mario: The Thousand-Year Door (Nintendo Switch)|(NS)]]</small>}} | |||
|,|<br>}} | |,|<br>}} | ||
|<Coin>|[[File:Coin PMTTYDNS icon.png|16x16px|Coin|link=Coin]]}} | |<Coin>|[[File:Coin PMTTYDNS icon.png|16x16px|Coin|link=Coin]]}} | ||
Line 70: | Line 86: | ||
|- | |- | ||
| style="padding:0" | | | style="padding:0" | | ||
{| class="mw-collapsible | {| class="mw-collapsible mw-collapsed" style="width:100%" | ||
! style="background:#84d1ea" | Description(s) | ! style="background:#84d1ea" | Description(s) | ||
|- | |- | ||
{{#if:{{{pm|}}}| | {{#if:{{{pm|}}}| | ||
{{!}} style="background:#fff" {{!}} {{{pm}}} <small style="display:inline-block">(''[[Paper Mario]]'')</small> | {{!}} style="background:#fff" {{!}} ''{{{pm}}}'' <small style="display:inline-block">(''[[Paper Mario]]'')</small> | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{ttyd|}}}| | {{#if:{{{ttyd|}}}| | ||
{{!}} style="background:#fff" {{!}} {{{ttyd}}} <small style="display:inline-block">([[Paper Mario: The Thousand-Year Door|''The Thousand-Year Door''{{#if:{{{ttydns|}}}|, GameCube}}]])</small> | {{!}} style="background:#fff" {{!}} ''{{{ttyd}}}'' <small style="display:inline-block">([[Paper Mario: The Thousand-Year Door|''Paper Mario: The Thousand-Year Door''{{#if:{{{ttydns|}}}|, Nintendo GameCube}}]])</small> | ||
}} | }} | ||
|- | |- | ||
{{#if:{{{ttydns|}}}| | {{#if:{{{ttydns|}}}| | ||
{{!}} style="background:#fff" {{!}} {{{ttydns}}} <small style="display:inline-block">([[Paper Mario: The Thousand-Year Door (Nintendo Switch)|''The Thousand-Year Door'', Switch]])</small> | {{!}} style="background:#fff" {{!}} ''{{{ttydns}}}'' <small style="display:inline-block">([[Paper Mario: The Thousand-Year Door (Nintendo Switch)|''Paper Mario: The Thousand-Year Door'', Nintendo Switch]])</small> | ||
}} | }} | ||
|} | |} | ||
|}<noinclude> | |}<noinclude> | ||
==Documentation== | |||
Updated version of the PM badge infobox. See [[mb:threads/47694|this thread]]. | |||
For some fields, there are parameters that apply to all games (such as <code>bp</code>) and higher-priority versions for specific games (such as <code>bp_pm</code> and <code>bp_ttyd</code>). | |||
===Blank template=== | |||
<pre> | <pre> | ||
{{PM badge infobox | {{PM badge infobox | ||
|title | |title= | ||
|image_pm | |image_pm= | ||
|image_ttyd | |image_ttyd= | ||
|bp | |bp= | ||
|fp= | |||
|fp | |fp_addl= | ||
| | |attack= | ||
| | |attack_addl= | ||
| | |price= | ||
| | |sell_price= | ||
| | |effect= | ||
|pm= | |||
|effect | |ttyd= | ||
|pm | |ttydns= | ||
|ttyd | |||
|ttydns | |||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Infobox templates]] | ===Parameters=== | ||
</noinclude> | {|class="wikitable" | ||
!Parameter | |||
!Description | |||
|- | |||
|<code>title</code> | |||
|Badge name. Defaults to page title. | |||
|- | |||
|<code>image_64</code>, <code>image_ttyd</code> | |||
|Filename of badge sprite for each grid column. For ''The Thousand-Year Door'', the Nintendo Switch remake's sprites are preferred, since the majority are higher-quality versions of the same image. | |||
|- | |||
|<code>bp</code><br><small>(<code>_pm</code>, <code>_ttyd</code>, <code>_ttydns</code>)</small> | |||
|Badge Points required. | |||
|- | |||
|<code>fp</code><br><small>(<code>_pm</code>, <code>_ttyd</code>, <code>_ttydns</code>)</small> | |||
|Flower Points used. | |||
|- | |||
|<code>fp_addl</code><br><small>(<code>_pm</code>, <code>_ttyd</code>, <code>_ttydns</code>)</small> | |||
|Flower Points used per additional badge worn, in the format <code>+2</code> or <code>*2</code>. | |||
|- | |||
|<code>attack</code><br><small>(<code>_pm</code>, <code>_ttyd</code>, <code>_ttydns</code>)</small> | |||
|Base Attack power. If this scales with gear, use the format <code><Boots>1, <Super Boots>2, <Ultra Boots>3</code> or <code><Hammer>1, <Super Hammer>2, <Ultra Hammer>3</code>. | |||
|- | |||
|<code>attack_addl</code><br><small>(<code>_pm</code>, <code>_ttyd</code>, <code>_ttydns</code>)</small> | |||
|Attack power increased per additional badge worn, in the format <code>+2</code> or <code>*2</code>. | |||
|- | |||
|<code>price</code><br><small>(<code>_pm</code>, <code>_ttyd</code>, <code>_ttydns</code>)</small> | |||
|Price to buy the badge, in the format <code><Coin>1, <Star Piece>1, <Pianta>1</code>. | |||
|- | |||
|<code>sell_price</code><br><small>(<code>_pm</code>, <code>_ttyd</code>, <code>_ttydns</code>)</small> | |||
|Price to sell the badge, in the format <code><Coin>1, <Star Piece>1, <Pianta>1</code>. Used only if the sell price is not half the buy price. | |||
|- | |||
|<code>effect</code> | |||
|Laconic description of the badge's effect. Does not need to mention stats such as BP or FP that are already in the grid. | |||
|- | |||
|<code>pm</code>, <code>ttyd</code>, <code>ttydns</code> | |||
|Verbatim badge descriptions. '''Required to make the respective grid columns appear.''' | |||
|} | |||
[[Category:Infobox templates]]</noinclude> |
Latest revision as of 17:03, February 26, 2025
PM badge infobox | |
---|---|
| |
|
Documentation
Updated version of the PM badge infobox. See this thread.
For some fields, there are parameters that apply to all games (such as bp
) and higher-priority versions for specific games (such as bp_pm
and bp_ttyd
).
Blank template
{{PM badge infobox |title= |image_pm= |image_ttyd= |bp= |fp= |fp_addl= |attack= |attack_addl= |price= |sell_price= |effect= |pm= |ttyd= |ttydns= }}
Parameters
Parameter | Description |
---|---|
title
|
Badge name. Defaults to page title. |
image_64 , image_ttyd
|
Filename of badge sprite for each grid column. For The Thousand-Year Door, the Nintendo Switch remake's sprites are preferred, since the majority are higher-quality versions of the same image. |
bp ( _pm , _ttyd , _ttydns )
|
Badge Points required. |
fp ( _pm , _ttyd , _ttydns )
|
Flower Points used. |
fp_addl ( _pm , _ttyd , _ttydns )
|
Flower Points used per additional badge worn, in the format +2 or *2 .
|
attack ( _pm , _ttyd , _ttydns )
|
Base Attack power. If this scales with gear, use the format <Boots>1, <Super Boots>2, <Ultra Boots>3 or <Hammer>1, <Super Hammer>2, <Ultra Hammer>3 .
|
attack_addl ( _pm , _ttyd , _ttydns )
|
Attack power increased per additional badge worn, in the format +2 or *2 .
|
price ( _pm , _ttyd , _ttydns )
|
Price to buy the badge, in the format <Coin>1, <Star Piece>1, <Pianta>1 .
|
sell_price ( _pm , _ttyd , _ttydns )
|
Price to sell the badge, in the format <Coin>1, <Star Piece>1, <Pianta>1 . Used only if the sell price is not half the buy price.
|
effect
|
Laconic description of the badge's effect. Does not need to mention stats such as BP or FP that are already in the grid. |
pm , ttyd , ttydns
|
Verbatim badge descriptions. Required to make the respective grid columns appear. |