Template:Approval: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{trim| | <includeonly>{{trim| | ||
{{#lvardef: direction | {{#sub:{{{2}}}|0|1}} }} | {{#lvardef: direction | {{#sub:{{{2|+}}}|0|1}} }} | ||
{{#lvardef: min-w | 26 }} | {{#lvardef: min-w | {{#if: {{{size|}}} | {{{size|}}} | 26}} }} | ||
{{#lvardef: max-h | 26 }} | {{#lvardef: max-h | {{#if: {{{size|}}} | {{{size|}}} | 26}} }} | ||
}}<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> {{Color|{{#switch:{{#lvar:direction}} |+= #3b8f1f |-= #cc3f49}} | {{{2}}} }}</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: {{#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> {{Color|{{#switch:{{#lvar:direction}} |+= #3b8f1f |-= #cc3f49}} | {{{2|+}}} }}</span></includeonly><noinclude>[[Category:Templates]] | ||
Use this template for approval ratings. | Use this template for approval ratings. | ||
Line 16: | Line 16: | ||
{{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}} | {{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> | <templatedata> | ||
{ | { | ||
Line 42: | Line 51: | ||
"example": "+1", | "example": "+1", | ||
"required": true | "required": true | ||
}, | |||
"size": { | |||
"description": "Add a custom size for the icon.", | |||
"example": "26" | |||
} | } | ||
} | } |
Revision as of 16:14, 26 November 2023
Use this template for approval ratings.
{{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}} = +1 +1 +1 +1 +1 +1 +1 +1 +1 +1
If the number is not specified: +
A custom size can also be added (default is 26):
* {{Approval|Jaheira|+1|size=75}} * {{Approval|Jaheira|size=25}}
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | NPC for whom the approval is for
| Unknown | required |
2 | 2 | Approval Adjustment
| Unknown | required |
size | size | Add a custom size for the icon.
| Unknown | optional |