Difference between revisions of "Template:ratings"
m |
m |
||
| Line 1: | Line 1: | ||
<span>{{#switch:{{{1|}}} | <span>{{#switch:{{{1|}}} | ||
|WFY={{#if:{{{link|}}}|[[Who Funds You?]]|}} {{#if:{{{yr|}}}|({{{yr}}}) |}}<img src="http://wikipolitiks.local/Images/Ratings-Who-Funds-You-{{{2}}}.svg" width="20" height="20"/> | |WFY={{#if:{{{link|}}}|[[Who Funds You?]]|}} {{#if:{{{yr|}}}|({{{yr}}}) |}}<img src="http://wikipolitiks.local/Images/Ratings-Who-Funds-You-{{{2}}}.svg" width="20" height="20"/> | ||
| + | |WFY={{#switch:{{{type|}}} | ||
| + | |Org= | ||
| + | |WFY=<img src="http://wikipolitiks.local/Images/Ratings-Who-Funds-You-{{{band}}}.svg" width="20" height="20"/> {{img|{{{png}}}|{{pw}}}|{{{ph}}}|float=none|ml=8px}} [[{{{org}}}]] | ||
| + | }} | ||
|IM={{#switch:{{{type|}}} | |IM={{#switch:{{{type|}}} | ||
|Org={{img|Influence-Map-IM.svg|25|25|float=none}} [[InfluenceMap]] <span style="background-color:{{{perf-col}}}; color:white; padding:1px; text-align:center; font-size:115%;"> {{{perf-band}}} </span><sup>[1]</sup> | |Org={{img|Influence-Map-IM.svg|25|25|float=none}} [[InfluenceMap]] <span style="background-color:{{{perf-col}}}; color:white; padding:1px; text-align:center; font-size:115%;"> {{{perf-band}}} </span><sup>[1]</sup> | ||
Revision as of 12:03, 12 October 2018
[edit] Documentation
Template to create various ratings.
Original pics are in Transparency-Ratings-ink.svg
Usage
See below for individual template usage. Organisations using this template are:
{{ratings
|TIUK - Transparency Intl UK [ A B C D E ]
|WFY - Who Funds You [ A B C D E ]
|IM - InfluenceMap [A ... F] Uses eg. B+, A-, etc.
|TPY - Transparify [ 5 4 3 2 1 0 X ]
|EC - Ethical Consumer [ 0=#000000; 1=#1A1A1A; 2=#343434; ... ]
mid-points from Color Blender: https://meyerweb.com/eric/tools/color-blend/
}}
Transparency International UK
- TI-UK page output: see TI-UK page; done "by hand".
- Org's page output, in Info box: Corporate Political Engagement Rating:
{{ratings|TIUK|perf-col=#225f89|perf-band=A|org=Name-of-company}}
Transparify
- TFY page output:
{{ratings|TPY|type=tpy|band=5|org=Amnesty International|png=Amnesty-International.svg|pw=57|ph=20}}
- Org's page output, in Info box: Transparency Rating:
{{ratings|TPY|type=org|band=5|org=Amnesty International}}<sup>[1]<sup>
Who Funds You
- WFY page output:
{{ratings|WFY|type=wfy|band=A|org=Centre for Labour and Social Studies|png=Centre-for-Labour-and-Social-Studies.svg|pw=29|ph=20}}
- Org's page output, in Info box: Transparency Rating:
{{ratings|WFY|type=org|band=A|org=Centre for Labour and Social Studies}}<sup>[1]<sup>
InfluenceMap
This template uses a simple lookup table Template:IM-Lookup to return the band colour.
- IM page output:
{{ratings|IM|type=im|org=Amazon.com Inc|perf-band=A|png=Amazon.svg|pw=66|ph=20}}
- Org's page output, in Info box: Climate Policy Rating:
{{ratings|IM|type=org|perf-band=A|org=Amazon.com Inc}}
Ethical Consumer
- EC page output:
- {{ratings|EC|type=ec|org=Amazon.com Inc|perf-col=#000000|perf-band=0/20|png=Amazon.svg|pw=66|ph=20}}
- {{ratings|EC|type=ec|org=Amazon.com Inc|perf-col=#000000|perf-band=0/20|img=Amazon.svg|sz=66x20px}}
- Org's page output, in Info box:
{{ratings|EC|type=org|perf-col=#000000|perf-band=0/20|org=Amazon.com Inc}}