Template:Approval: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>{{trim|
<includeonly>{{trim|
{{#vardefine: icon | Portrait {{{1}}}.png }}
{{#lvardef: direction | {{#sub:{{{2|+}}}|0|1}} }}
{{#vardefine: link | {{{1}}} }}
{{#lvardef: min-w | {{#if: {{{size|}}} | {{{size|}}} | 26}} }}
{{#vardefine: text | {{{2}}} }}
{{#lvardef: max-h | {{#if: {{{size|}}} | {{{size|}}} | 26}} }}
{{#vardefine: direction | {{#sub:{{{2}}}|0|1}} }}
}}<span style="display: inline-flex; align-items: center;"><span style="display: inline-flex; align-items: center; justify-content: center; min-width: {{#lvar:min-w}}px; height: {{#lvar:max-h}}px;">{{icon | {{{1}}} Approval.png | link = {{{1}}} | caption = {{{1}}} {{#switch:{{#lvar:direction}} |+= approves|-= disapproves}} | h = {{#lvar:max-h}}}}</span>&nbsp;{{Color|{{#switch:{{#lvar:direction}} |+= #3b8f1f |-= #cc3f49}} | {{{2|+}}} }}</span></includeonly><noinclude>[[Category:Templates]]
{{#vardefine: min-w | 24 }}
{{#vardefine: max-h | 24 }}
}}<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 = {{#var:text}} | 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.


Line 17: Line 14:
{{InfoBlob|<nowiki>{{Approval|Lae'zel|-1}}</nowiki>}} = {{Approval|Lae'zel|-1}}
{{InfoBlob|<nowiki>{{Approval|Lae'zel|-1}}</nowiki>}} = {{Approval|Lae'zel|-1}}


{{InfoBlob|<nowiki>{{Approval|Laezel|+1}}</nowiki>}} = {{Approval|Laezel|+1}} doesn't matter how you spell her
{{InfoBlob|<nowiki>{{Approval|Astarion|+1}} {{Approval|Gale|+1}} {{Approval|Karlach|+1}} {{Approval|Laezel|+1}} {{Approval|Shadowheart|+1}} {{Approval|Wyll|+1}} {{Approval|Halsin|+1}} {{Approval|Minthara|+1}} {{Approval|Minsc|+1}} {{Approval|Jaheira|+1}}</nowiki>}} = {{Approval|Astarion|+1}} {{Approval|Gale|+1}} {{Approval|Karlach|+1}} {{Approval|Laezel|+1}} {{Approval|Shadowheart|+1}} {{Approval|Wyll|+1}} {{Approval|Halsin|+1}} {{Approval|Minthara|+1}} {{Approval|Minsc|+1}} {{Approval|Jaheira|+1}}
 
If the number is not specified: {{Approval|Shadowheart}}
 
A custom size can also be added (default is 26):
<pre>
* {{Approval|Jaheira|+1|size=75}}
* {{Approval|Jaheira|size=25}}
</pre>
* {{Approval|Jaheira|+1|size=75}}
* {{Approval|Jaheira|size=25}}
 
== Template data ==
<templatedata>
{
"params": {
"1": {
"description": "NPC for whom the approval is for",
"example": "Wyll",
"suggestedvalues": [
"Astarion",
"Jaheira",
"Minsc",
"Minthara",
"Gale",
"Halsin",
"Wyll",
"Shadowheart",
"Karlach",
"Laezel"
],
"required": true
},
"2": {
"description": "Approval Adjustment",
"example": "+1",
"required": true
},
"size": {
"description": "Add a custom size for the icon.",
"example": "26"
}
}
}
</templatedata>
</noinclude>

Latest revision as of 16:14, 26 November 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

{{Approval|Astarion|+1}} {{Approval|Gale|+1}} {{Approval|Karlach|+1}} {{Approval|Laezel|+1}} {{Approval|Shadowheart|+1}} {{Approval|Wyll|+1}} {{Approval|Halsin|+1}} {{Approval|Minthara|+1}} {{Approval|Minsc|+1}} {{Approval|Jaheira|+1}} = Astarion approves +1 Gale approves +1 Karlach approves +1 Laezel approves +1 Shadowheart approves +1 Wyll approves +1 Halsin approves +1 Minthara approves +1 Minsc approves +1 Jaheira approves +1

If the number is not specified: Shadowheart approves +

A custom size can also be added (default is 26):

* {{Approval|Jaheira|+1|size=75}}
* {{Approval|Jaheira|size=25}}
  • Jaheira approves +1
  • Jaheira approves +

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
11

NPC for whom the approval is for

Suggested values
Astarion Jaheira Minsc Minthara Gale Halsin Wyll Shadowheart Karlach Laezel
Example
Wyll
Unknownrequired
22

Approval Adjustment

Example
+1
Unknownrequired
sizesize

Add a custom size for the icon.

Example
26
Unknownoptional