Template:Spell slot: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{trim| {{#lvardef: min-w | {{#if: {{{w|}}} | {{{w}}} | {{#if: {{{size|}}} | {{{size}}} | 40 }} }} }} {{#lvardef: max-w | {{{w|}}} }} {{#lvardef: max-h | {{#if: {{{h|}}} | {{{h}}} | {{#if: {{{size|}}} | {{{size}}} | 40 }} }} }} }}{{#if: {{{block|}}} | <span style="display: inline-flex; align-items: center; {{#if: {{{gap|}}} | gap: {{{gap}}}px; }}"> }}<span style=" display: inline-flex; align-items: center; justify-content: center; min-width: {{#lvar:...")
 
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{trim|
<includeonly>{{trim|
{{#lvardef: min-w | {{#if: {{{w|}}} | {{{w}}} | {{#if: {{{size|}}} | {{{size}}} | 40 }} }} }}
{{#lvardef: min-w | {{#if: {{{w|}}} | {{{w}}} | {{#if: {{{size|}}} | {{{size}}} | 30 }} }} }}
{{#lvardef: max-w | {{{w|}}} }}
{{#lvardef: max-w | {{{w|}}} }}
{{#lvardef: max-h | {{#if: {{{h|}}} | {{{h}}} | {{#if: {{{size|}}} | {{{size}}} | 40 }} }} }}
{{#lvardef: max-h | {{#if: {{{h|}}} | {{{h}}} | {{#if: {{{size|}}} | {{{size}}} | 30 }} }} }}
}}{{#if: {{{block|}}}
}}{{#if: {{{block|}}}
| <span style="display: inline-flex; align-items: center; {{#if: {{{gap|}}} | gap: {{{gap}}}px; }}">
| <span style="display: inline-flex; align-items: center; {{#if: {{{gap|}}} | gap: {{{gap}}}px; }}">
Line 13: Line 13:
"><span style="vertical-align: middle;">{{icon
"><span style="vertical-align: middle;">{{icon
| {{#switch:{{{1}}}|cantrip=Cantrips Icon.png|0=Cantrips Icon.png|{{{2}}} Level {{{1}}} Spell Slots.png}}
| {{#switch:{{{1}}}|cantrip=Cantrips Icon.png|0=Cantrips Icon.png|{{{2}}} Level {{{1}}} Spell Slots.png}}
| size = {{{w|24}}}
| w = {{#lvar:max-w}}
| w = {{#lvar:max-w}}
| h = {{#lvar:max-h}}
| h = {{#lvar:max-h}}
| block = true
}}</span></span>{{#if: {{{block|}}}
}}</span></span>{{#if: {{{block|}}}
| </span>
| </span>
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{shortcut|SpellSlot}}
Adds spell slot icon.
Adds spell slot icon.


Examples: {{SpellSlot|cantrip}}{{SpellSlot|1|4}} {{SpellSlot|2|3}} {{SpellSlot|3|2}} {{SpellSlot|5|1}} {{SpellSlot|5|1|w=24|h=24}} {{SpellSlot|6|1|w=24}} {{SpellSlot|0|h=24}}
Examples: {{SpellSlot|cantrip}}{{SpellSlot|1|4}} {{SpellSlot|2|3}} {{SpellSlot|3|2}} {{SpellSlot|5|1}} {{SpellSlot|5|1|w=24|h=24}} {{SpellSlot|6|1|w=40}} {{SpellSlot|0|h=24}} {{SpellSlot|2 Warlock|2}}


{{InfoBlob|<nowiki>{{SpellSlot|cantrip}}{{SpellSlot|1|4}} {{SpellSlot|2|3}} {{SpellSlot|3|2}} {{SpellSlot|5|1}} {{SpellSlot|5|1|w=24|h=24}} {{SpellSlot|6|1|w=24}} {{SpellSlot|0|h=24}}</nowiki>}}
{{InfoBlob|<nowiki>{{SpellSlot|cantrip}}{{SpellSlot|1|4}} {{SpellSlot|2|3}} {{SpellSlot|3|2}} {{SpellSlot|5|1}} {{SpellSlot|5|1|w=24|h=24}} {{SpellSlot|6|1|w=24}} {{SpellSlot|0|h=24}} {{SpellSlot|2 Warlock|2}}</nowiki>}}
[[Category:Templates]]

Latest revision as of 22:37, 31 January 2024

Shortcut

Adds spell slot icon.

Examples: Cantrips Icon.png4 Level 1 Spell Slots.png 3 Level 2 Spell Slots.png 2 Level 3 Spell Slots.png 1 Level 5 Spell Slots.png 1 Level 5 Spell Slots.png 1 Level 6 Spell Slots.png Cantrips Icon.png 2 Level 2 Warlock Spell Slots.png

{{SpellSlot|cantrip}}{{SpellSlot|1|4}} {{SpellSlot|2|3}} {{SpellSlot|3|2}} {{SpellSlot|5|1}} {{SpellSlot|5|1|w=24|h=24}} {{SpellSlot|6|1|w=24}} {{SpellSlot|0|h=24}} {{SpellSlot|2 Warlock|2}}