Template:Approval: Difference between revisions
Jump to navigation
Jump to search
Tag: Undo |
m (var -> lvar, simplify a few unnecessary variables) |
||
Line 1: | Line 1: | ||
<includeonly>{{trim| | <includeonly>{{trim| | ||
{{# | {{#lvardef: direction | {{#sub:{{{2}}}|0|1}} }} | ||
{{#lvardef: min-w | 26 }} | |||
{{#lvardef: max-h | 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: {{# | |||
Use this template for approval ratings. | Use this template for approval ratings. | ||