Template:Approval: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
Line 4: Line 4:
{{#vardefine: text | {{{2}}} }}
{{#vardefine: text | {{{2}}} }}
{{#vardefine: direction | {{#sub:{{{2}}}|0|1}} }}
{{#vardefine: direction | {{#sub:{{{2}}}|0|1}} }}
{{#vardefine: min-w | 26 }}
{{#vardefine: min-w | 24 }}
{{#vardefine: max-h | 26 }}
{{#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 = {{{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.