Difference between revisions of "Template:Infobox conditional data bar"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <onlyinclude>{{#if:{{{ | + | <onlyinclude>{{#if:{{{value}}}| |
<tr> | <tr> | ||
<td>{{{1}}}</td> | <td>{{{1}}}</td> | ||
− | <td style="width:66%; background: linear-gradient(45deg,transparent {{{ | + | <td style="width:66%; background: linear-gradient(45deg,transparent {{{value}}}%,#000000d0 {{{value}}}%),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;">{{{text|{{{value}}}}}}</div></td> |
</tr> | </tr> | ||
|}}</onlyinclude><noinclude> | |}}</onlyinclude><noinclude> | ||
Line 9: | Line 9: | ||
<table class="infobox"> | <table class="infobox"> | ||
{{ Infobox default title | Strong man }} | {{ Infobox default title | Strong man }} | ||
− | {{ Infobox conditional data bar | Level | 43.2|color=yellow}} | + | {{ Infobox conditional data bar | Level | value=43.2|color=yellow}} |
− | {{ Infobox conditional data bar | Strongthness | 75}} | + | {{ Infobox conditional data bar | Strongthness | value=75}} |
− | {{ Infobox conditional data bar | Sped | 23}} | + | {{ Infobox conditional data bar | Sped | value=23}} |
− | {{ Infobox conditional data bar | Intelligonce | 0}} | + | {{ Infobox conditional data bar | Intelligonce | value=0}} |
</table> | </table> | ||
</pre> | </pre> | ||
Line 18: | Line 18: | ||
<table class="infobox"> | <table class="infobox"> | ||
{{ Infobox default title | Strong man }} | {{ Infobox default title | Strong man }} | ||
− | {{ Infobox conditional data bar | Level | 43.2|color=yellow}} | + | {{ Infobox conditional data bar | Level | value=43.2|color=yellow}} |
− | {{ Infobox conditional data bar | Srongthness | 75}} | + | {{ Infobox conditional data bar | Srongthness | value=75}} |
− | {{ Infobox conditional data bar | Sped | 23}} | + | {{ Infobox conditional data bar | Sped | value=23}} |
− | {{ Infobox conditional data bar | Intelligonce | 0}} | + | {{ Infobox conditional data bar | Intelligonce | value=0}} |
</table> | </table> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 23:34, 11 May 2019
{{{1}}}
{{{value}}}
Example use:
<table class="infobox"> {{ Infobox default title | Strong man }} {{ Infobox conditional data bar | Level | value=43.2|color=yellow}} {{ Infobox conditional data bar | Strongthness | value=75}} {{ Infobox conditional data bar | Sped | value=23}} {{ Infobox conditional data bar | Intelligonce | value=0}} </table>
becomes:
Strong man | |
---|---|
Level | 43.2 |
Srongthness | 75 |
Sped | 23 |
Intelligonce | 0 |