Template:PI: Difference between revisionsGive feedback
Jump to navigation
Jump to search
mNo edit summary |
Gammaton32 (talk | contribs) moved icon to the left |
||
| (17 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><span | <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> | |||
| <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> | |||
}}</includeonly><noinclude>{{Documentation}}</noinclude> | |||
</noinclude> | |||
Latest revision as of 16:14, 11 May 2026
This template uses CSS found at PI/styles.css.
This template displays a Boon scaling indicator next to a value.
Usage
[edit source]{{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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Scaling value | 1 | The Boon scaling value to display. | Number | required |
| Font size | 2 | Font size of the scaling text.
| String | optional |
| Compact mode | compact | Set to 'yes' to show only the icon with a tooltip on hover instead of the full indicator. | String | optional |