Difference between revisions of "Template:Infobox conditional data bar"

From Dwaia Wiki
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,red {{{2}}}%,transparent {{{2}}}%),black;">{{{2}}}</td>
+
   <td style="width:66%; background: linear-gradient(45deg,transparent {{{2}}}%,black {{{2}}}%),linear-gradient(black 20%,transparent 20%, transparent 80%, black 80%),linear-gradient(blue,cyan 35%,white 50%,cyan 65%,blue);">{{{2}}}</td>
 
  </tr>
 
  </tr>
 
|}}</onlyinclude><noinclude>
 
|}}</onlyinclude><noinclude>

Revision as of 22:48, 11 May 2019

{{{1}}} {{{2}}} Example use:

<table class="infobox">
{{ Infobox default title    | Strong man }}
{{ Infobox conditional data bar | Strongthness | 75}}
{{ Infobox conditional data bar | Sped | 23}}
{{ Infobox conditional data bar | Intelligonce | 0}}
</table>

becomes:

Strong man
Srongthness 75
Sped 23
Intelligonce 0