Template:Approval: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
m (Now has an effect on alt text)
No edit summary
Line 1: Line 1:
<includeonly>{{trim|
<includeonly>{{trim|
{{#vardefine: icon | Portrait {{{1}}}.png }}
{{#vardefine: icon | {{{1}}} Approval.png }}
{{#vardefine: link | {{{1}}} }}
{{#vardefine: link | {{{1}}} }}
{{#vardefine: text | {{{2}}} }}
{{#vardefine: text | {{{2}}} }}
{{#vardefine: direction | {{#sub:{{{2}}}|0|1}} }}
{{#vardefine: direction | {{#sub:{{{2}}}|0|1}} }}
{{#vardefine: min-w | 24 }}
{{#vardefine: min-w | 32 }}
{{#vardefine: max-h | 24 }}
{{#vardefine: max-h | 32 }}
}}<span style="display: inline-flex; align-items: center;"><span style="display: inline-flex; align-items: center; justify-content: center; min-width: {{#var:min-w}}px; height: {{#var:max-h}}px;">{{icon | {{#var:icon}} | link = {{#var:link}} | caption = {{{1}}} {{#switch:{{#var:direction}} |+= approves|-= disapproves}} | h = {{#var:max-h}} }}</span>&nbsp;{{Color|{{#switch:{{#var:direction}} |+= #3b8f1f |-= #cc3f49}}|{{#var:text}}}}</span></includeonly><noinclude>[[Category:Templates]]
}}<span style="display: inline-flex; align-items: center;"><span style="display: inline-flex; align-items: center; justify-content: center; min-width: {{#var:min-w}}px; height: {{#var:max-h}}px;">{{icon | {{#var:icon}} | link = {{#var:link}} | caption = {{{1}}} {{#switch:{{#var:direction}} |+= approves|-= disapproves}} | h = {{#var:max-h}} }}</span>&nbsp;{{Color|{{#switch:{{#var:direction}} |+= #3b8f1f |-= #cc3f49}}|{{#var:text}}}}</span></includeonly><noinclude>[[Category:Templates]]
Use this template for approval ratings.
Use this template for approval ratings.

Revision as of 10:18, 1 September 2023

Use this template for approval ratings.

{{Approval|Wyll|+1}} = Wyll approves +1

{{Approval|Halsin|+5}} = Halsin approves +5

{{Approval|Jaheira|+2}} = Jaheira approves +2

{{Approval|Lae'zel|-1}} = Lae'zel disapproves -1