Template:PM badge infobox/new: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
m (changed link from Attack to Power to not link to a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{| class="infobox" style="background:#d8f3fb;border-color:#00f;table-layout:fixed;width:250px"
{| 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 37: Line 37:
{{#replace:
{{#replace:
{{#replace:
{{#replace:
! style="text-align:left;padding-inline:0" {{!}} [[File:Attack PMTTYDNS icon.png|16x16px|link=Attack]][[Attack| Atk.]]
! style="text-align:left;padding-inline:0" {{!}} [[File:Attack PMTTYDNS icon.png|16x16px|link=Attack]][[Power| Atk.]]
{{!}} style="{{#if:{{{pm|}}}||display:none;}}background:#aee2f3" {{!}} <span style="display:inline-block">{{{attack_pm|{{{attack}}}}}}</span>{{#if:{{{attack_addl_pm|{{{attack_addl|}}}}}}|<small>&nbsp;{{hover|{{{attack_addl_pm|{{{attack_addl}}}}}}|per additional badge worn}}</small>}}
{{!}} style="{{#if:{{{pm|}}}||display:none;}}background:#aee2f3" {{!}} <span style="display:inline-block">{{{attack_pm|{{{attack}}}}}}</span>{{#if:{{{attack_addl_pm|{{{attack_addl|}}}}}}|<small>&nbsp;{{hover|{{{attack_addl_pm|{{{attack_addl}}}}}}|per additional badge worn}}</small>}}
{{!}} style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#aee2f3" {{!}} <span style="display:inline-block">{{{attack_ttyd|{{{attack}}}}}}</span>{{#if:{{{attack_addl_ttyd|{{{attack_addl|}}}}}}|<small>&nbsp;{{hover|{{{attack_addl_ttyd|{{{attack_addl}}}}}}|per additional badge worn}}</small>}}{{#if:{{{attack_ttydns|}}}{{{attack_addl_ttydns|}}}|<small>&nbsp;(GCN)</small><br><span style="display:inline-block">{{{attack_ttydns|{{{attack}}}}}}</span>{{#if:{{{attack_addl_ttydns|{{{attack_addl|}}}}}}|<small>&nbsp;{{hover|{{{attack_addl_ttydns|{{{attack_addl}}}}}}|per additional badge worn}}</small>}}<small>&nbsp;[[Paper Mario: The Thousand-Year Door (Nintendo Switch)|(NS)]]</small>}}
{{!}} style="{{#if:{{{ttyd|}}}{{{ttydns|}}}||display:none;}}background:#aee2f3" {{!}} <span style="display:inline-block">{{{attack_ttyd|{{{attack}}}}}}</span>{{#if:{{{attack_addl_ttyd|{{{attack_addl|}}}}}}|<small>&nbsp;{{hover|{{{attack_addl_ttyd|{{{attack_addl}}}}}}|per additional badge worn}}</small>}}{{#if:{{{attack_ttydns|}}}{{{attack_addl_ttydns|}}}|<small>&nbsp;(GCN)</small><br><span style="display:inline-block">{{{attack_ttydns|{{{attack}}}}}}</span>{{#if:{{{attack_addl_ttydns|{{{attack_addl|}}}}}}|<small>&nbsp;{{hover|{{{attack_addl_ttydns|{{{attack_addl}}}}}}|per additional badge worn}}</small>}}<small>&nbsp;[[Paper Mario: The Thousand-Year Door (Nintendo Switch)|(NS)]]</small>}}
Line 72: Line 72:
|-
|-
| style="padding:0" |
| style="padding:0" |
{| class="mw-collapsible {{#if:{{{effect|}}}|mw-collapsed}}" style="width:100%"
{| class="mw-collapsible mw-collapsed" style="width:100%"
! style="background:#84d1ea" | Description(s)
! style="background:#84d1ea" | Description(s)
|-
|-

Latest revision as of 12:31, October 22, 2024

new
Paper Mario The Thousand-Year Door
Effect {{{effect}}}
Description(s)

Documentation

Update to Template:PM badge infobox. See mb:threads/47694.

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/new
|title=
|image_pm=
|image_ttyd=
|bp=
|fp=
|fp_addl=
|attack=
|attack_addl=
|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
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.