Difference between revisions of "Template:Infobox conditional data bar"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
<tr> | <tr> | ||
<td>{{{1}}}</td> | <td>{{{1}}}</td> | ||
− | <td style="width:66%; background: linear-gradient(45deg,transparent {{{2}}}%, | + | <td style="width:66%; background: linear-gradient(45deg,transparent {{{2}}}%,#000000d0 {{{2}}}%),linear-gradient(#00000080, transparent 35%,#ffffff80 50%,transparent 65%,#00000080),{{{color|cyan}}};clip-path: polygon(0% 20%, 100% 20%, 100% 80%, 0% 80%);"><div style="mix-blend-mode: exclusion;">{{{2}}}</div></td> |
</tr> | </tr> | ||
|}}</onlyinclude><noinclude> | |}}</onlyinclude><noinclude> |
Revision as of 23:19, 11 May 2019
{{{1}}}
{{{2}}}
Example use:
<table class="infobox"> {{ Infobox default title | Strong man }} {{ Infobox conditional data bar | Level | 43.2|color=yellow}} {{ Infobox conditional data bar | Strongthness | 75}} {{ Infobox conditional data bar | Sped | 23}} {{ Infobox conditional data bar | Intelligonce | 0}} </table>
becomes:
Strong man | |
---|---|
Level | 43.2 |
Srongthness | 75 |
Sped | 23 |
Intelligonce | 0 |