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

From Dwaia Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<onlyinclude>{{#if:{{{value}}}|
+
<onlyinclude>{{#if:{{{value|}}}|
 
  <tr>
 
  <tr>
 
   <td>{{{1}}}</td>
 
   <td>{{{1}}}</td>

Revision as of 00:13, 12 May 2019


Example use:

<table class="infobox">
{{ Infobox default title    | Strong man }}
{{ Infobox conditional data bar | Level | value=43.2|color=yellow|text=storng|width=5000px}}
{{ 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
storng
Srongthness
75
Sped
23
Intelligonce
0