Template:TooltipBox: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style ="background: linear-gradient(to bottom, {{#if:{{{long|}}}|#1B1A1999,|}} #1B1A1999, #1B1A1999, #40295199);
<includeonly><div class="bg3wiki-tooltip-box bg3wiki-tooltip-gradient-common" style="overflow: hidden;">{{#if: {{{image|}}} |
    box-shadow:
<div class="nomobile">[[File:{{{image}}}|frameless|right|{{{size|100}}}px]]</div>
    rgba(0, 0, 0, 0.14) 3px 3px 6px 0px inset,
}}
    rgba(0, 0, 0, 0.14) -3px -3px 6px 1px inset;
<dl><dt>{{{1}}}</dt>
    border: 0.15rem solid #785000;
<dd style="margin-top: 10px;">{{{2}}}</dd>
    border-radius: 10px;
</dl>{{#if: {{{3|}}} | {{blank}}
    padding: 15px;
<div style="margin-top: 10px;>{{{3}}}</div>
    padding-top: 5px;
}}
overflow: hidden;">{{#if:{{{image|}}}|<span class="nomobile">[[File:{{{image}}}|frameless|right|{{{size|100}}}px]]</span>|}}<h4>{{{1}}}</h4>
{{clear}}
{{{2}}}{{clear}}</div><br><noinclude>[[Category:Templates]]
</div></includeonly><noinclude>{{Documentation|content=
 
Optional parameters include {{InfoBlob|image}} for direct image links and {{InfoBlob|size}} to adjust image size. As well as {{InfoBlob|<nowiki>long=1</nowiki>}} to have a longer dark gradient. The version with integrated SAI is [[Template:Feature box]].
Optional parameters include {{InfoBlob|image}} for direct image links and {{InfoBlob|size}} to adjust image size. As well as {{InfoBlob|<nowiki>long=1</nowiki>}} to have a longer dark gradient. The version with integrated SAI is [[Template:Feature box]].


== Example ==
{{Template demo
| style = list
| <nowiki>
{{TooltipBox|{{SAI|Repelling Protocol|w=30}}|image=Generic Control.webp|size=100|
{{TooltipBox|{{SAI|Repelling Protocol|w=30}}|image=Generic Control.webp|size=100|
{{DamageInfo|2d8|Thunder}}
{{DamageInfo|2d8|Thunder}}
Expel a wave of force to push assailants back {{Distance|m=9|ft=27}} and knock them {{Cond|Prone}}.}}
Expel a wave of force to push assailants back {{Distance|m=9|ft=27}} and knock them {{Cond|Prone}}.
 
| {{Recharge|Short rest}}
<pre><nowiki>{{TooltipBox|{{SAI|Repelling Protocol|w=30}}|image=Generic Control.webp|size=100|
}}</nowiki>
| <nowiki>{{TooltipBox|{{SAI|Repelling Protocol|w=30}}|image=Generic Control.webp|size=100|
{{DamageInfo|2d8|Thunder}}
{{DamageInfo|2d8|Thunder}}
Expel a wave of force to push assailants back {{Distance|m=9|ft=27}} and knock them {{Cond|Prone}}.}}</nowiki></pre>
Expel a wave of force to push assailants back {{Distance|m=9|ft=27}} and knock them {{Cond|Prone}}.}}</nowiki>
 
| <nowiki>{{TooltipBox|Longer gradient|This one will have a longer black gradient. Add {{InfoBlob|<nowiki>|long=1}}
{{TooltipBox|Longer gradient|This one will have a longer black gradient. Add {{InfoBlob|<nowiki>|long=1</nowiki>}}
* For
* For
* Very
* Very
* Long
* Long
* Lists|long=1}}
* Lists|long=1}}
</nowiki>
}}
}}
[[Category:Templates]]
</noinclude>

Latest revision as of 22:47, 19 January 2025

Template documentation

Optional parameters include image for direct image links and size to adjust image size. As well as long=1 to have a longer dark gradient. The version with integrated SAI is Template:Feature box.

Example

Markup
{{TooltipBox|{{SAI|Repelling Protocol|w=30}}|image=Generic Control.webp|size=100|
{{DamageInfo|2d8|Thunder}}
Expel a wave of force to push assailants back {{Distance|m=9|ft=27}} and knock them {{Cond|Prone}}.
| {{Recharge|Short rest}}
}}
Renders as
Repelling Protocol Repelling Protocol
2d8 (2~16) Damage TypesThunder

Expel a wave of force to push assailants back 9 m / 30 ft and knock them Prone Prone.

Recharge: Short rest
Markup
{{TooltipBox|{{SAI|Repelling Protocol|w=30}}|image=Generic Control.webp|size=100|
{{DamageInfo|2d8|Thunder}}
Expel a wave of force to push assailants back {{Distance|m=9|ft=27}} and knock them {{Cond|Prone}}.}}
Renders as
Repelling Protocol Repelling Protocol
2d8 (2~16) Damage TypesThunder
Expel a wave of force to push assailants back 9 m / 30 ft and knock them Prone Prone.
Markup
{{TooltipBox|Longer gradient|This one will have a longer black gradient. Add {{InfoBlob|<nowiki>|long=1}}
* For
* Very
* Long
* Lists|long=1}}
Renders as
Longer gradient
This one will have a longer black gradient. Add <nowiki>
  • For
  • Very
  • Long
  • Lists