Template:PI: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
No edit summary
moved icon to the left
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><span style="z-index: +1;position:relative; bottom: 6px;left:16px;Font-family: 'Retail Demo Regular', 'PT Serif', 'Palatino', serif; font-size: {{{2|14px}}}; color: #FFEFD7;">[[Boon|<span style="color: #FFEFD7;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.6);font-weight:bold;background-color:rgba(33, 33, 29, 0.6); border-radius: 5px; padding: 2px 2px 0px 2px; margin-left: -17px;">+{{{1|}}}]]<span style="z-index: -1;opacity:0.7;position:relative; bottom:5px;left:-6px;">[[File:Boon icon.png|link=Boon|20px]]</span></span></span></includeonly><noinclude>
<templatestyles src="PI/styles.css" /><includeonly>{{#if: {{{compact|}}}
{{Infobox hero
  | <span class="pi-compact" title="Boon scaling: +{{{1|}}} per Boon">[[File:Boon scaling.png|14px|link=]]{{#if: {{{show_value|}}}|<span class="pi-value">+{{{1|}}}</span>}}</span>
| key = hero_bebop
  | <span class="pi-wrapper" style="font-size: {{{2|14px}}};"><span class="pi-icon">[[File:Boon scaling.png|link=Boon|16px]]</span>[[Boon|<span class="pi-text">+{{{1|}}}</span>]]</span>
| weapon_name = Humble Pie
}}</includeonly><noinclude>{{Documentation}}</noinclude>
| art = Bebop full.png
| card = Bebop card.png
|has_max_range=true
|max_range= 32{{PI|2}}
| no_spirit_resist=true
|max_health = {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|MaxHealth|3}}{{PI|41}}
|bullet_damage= {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|BulletDamage|3}}{{PI|0.29}}
|light_melee= {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|LightMeleeDamage|3}}{{PI|2.67}}
|heavy_melee= {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|HeavyMeleeDamage|3}}{{PI|4.91}}
|bullet_resist= {{#invoke:HeroData|get_hero_var|{{#var:hero_key_or_en}}|BulletResist|3}}{{PI|1.25}}
|no_summary=true
}}
==Example==
<pre>123{{PI|12345}}m</pre>
Outputs: 123{{PI|12345}}m
<pre>123{{PI|12345|12px}}m</pre>
Outputs: 123{{PI|12345|12px}}m
 
</noinclude>

Latest revision as of 16:14, 11 May 2026

Template documentation [view] [edit] [history] [purge]
CSS3 logo.svg
This template uses CSS found at PI/styles.css.

This template displays a Boon scaling indicator next to a value.

{{PI|value}}
{{PI|value|font_size}}
{{PI|value|compact=yes}}

Examples

[edit source]
123{{PI|12345}}m

Outputs: 123+12345m

123{{PI|12345|12px}}m

Outputs: 123+12345m

{{PI|1.5|compact=yes}}

Outputs:

Displays a Boon scaling indicator next to a value.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Scaling value1

The Boon scaling value to display.

Numberrequired
Font size2

Font size of the scaling text.

Default
14px
Stringoptional
Compact modecompact

Set to 'yes' to show only the icon with a tooltip on hover instead of the full indicator.

Stringoptional