Template:Ss: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
mNo edit summary
LVL (talk | contribs)
Changed compact visuals
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><span style=" position:relative; bottom: 6px;Font-family: 'PT Serif', 'Palatino', 'Georgia', Serif; font-size: 14px; color: #E3BDFA;">[[File:Spirit scaling.png|link=Spirit Power#Spirit Power Scaling|{{{icon_size|25px}}}]][[Spirit Power#Spirit Power Scaling|<span style="color: #E3BDFA;text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);font-weight:bold;background-color: #533669; border-radius: 5px; padding: 2px 2px 0px 2px; margin-left: -7px;">''x''{{{1|}}}</span></span>]]</includeonly><noinclude>
<templatestyles src="Ss/styles.css" /><includeonly>{{#if: {{{compact|}}}
 
  | <span class="ss-compact" title="Spirit scaling: x{{{1|}}}">[[File:Spirit scaling.png|link=|{{{icon_size|25px}}}]]{{#if: {{{show_value|}}}|<span class="ss-value">x{{{1|}}}</span>}}</span>
==Example==
  | <span class="ss-wrapper" style="font-size: {{{2|14px}}};"><!--
<pre>30{{ss|0.5}}</pre>
--><span class="ss-icon">[[File:Spirit scaling.png|link=Spirit Power#Spirit Power Scaling|{{{icon_size|25px}}}]]</span><!--
 
-->[[Spirit Power#Spirit Power Scaling|<span class="ss-text">''x''{{{1|}}}</span>]]</span>
Outputs: 30{{ss|0.5}}
}}</includeonly><noinclude>{{Documentation}}</noinclude>
{{Infobox hero
| key= hero_orion
| font-size= 21px
| weapon_name = The Mourning Comes
| art = Grey Talon full.png
| card = Grey Talon card.png
 
| bullet_damage = {{#invoke:HeroData|get_hero_var|hero_orion|BulletDamage|3}}{{ss|0.1}}
 
| increase1_value = 1.8
| increase1_stat = Base Bullet Damage
| increase2_value = 3.4
| increase2_stat = Base Melee Damage
| increase3_value = 27
| increase3_stat = Base Health
}}
</noinclude>

Latest revision as of 15:16, 16 April 2026

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

This template displays a Spirit Power scaling indicator next to a value.

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

Examples

[edit source]
30{{Ss|0.1234}}m

Outputs: 30x0.1234m

30{{Ss|0.1234|12px}}m

Outputs: 30x0.1234m

{{Ss|0.1234|compact=yes}}

Outputs:

Displays a Spirit Power scaling indicator next to a value.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Scaling value1

The Spirit Power scaling value to display.

Numberrequired
Font size2

Font size of the scaling text.

Default
14px
Stringoptional
Icon sizeicon_size

Size of the Spirit Power icon.

Default
25px
Stringoptional
Compact modecompact

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

Stringoptional