Template:PI: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
mNo edit summary
moved icon to the left
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><span style="z-index: +1;position:relative; bottom: 6px;left:16px;Font-family: 'PT Serif', 'Palatino', 'Georgia', Serif; font-size: 14px; color: #FFEFD7;">[[Level#Boons from Patron|<span style="color: #FFEFD7;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.3);font-weight:bold;background-color:rgba(33, 33, 29, 0.7); border-radius: 5px; padding: 2px 2px 0px 2px; margin-left: -17px;">+{{{1|}}}]]<span style="z-index: -1;position:relative; bottom:6px;left:-10px;">[[File:Boon icon.png|link=Level#Boons from Patron|21px]]</span></span></span></includeonly><noinclude>
<templatestyles src="PI/styles.css" /><includeonly>{{#if: {{{compact|}}}
 
  | <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>
==Example==
  | <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>
<pre>550{{PI|20}}</pre>
}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
Outputs: 550{{PI|12345}}%
 
</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