Difference between revisions of "Template:Bar10"
From PRIMUS Database
(Created page with "<noinclude>Category:Template Sub Pages<!--please do not delete or overwrite--></noinclude> <div style="display: inline-block; border:1px solid #666666;background:white; fl...") |
m (update to fix incorrect display of rating) |
||
Line 1: | Line 1: | ||
<noinclude>[[Category:Template Sub Pages]]<!--please do not delete or overwrite--></noinclude> | <noinclude>[[Category:Template Sub Pages]]<!--please do not delete or overwrite--></noinclude> | ||
− | <div style="display: inline-block; border:1px solid | + | <div style="min-width:101px; display:inline-block; border:1px solid {{{boxcolor|black}}};background:white; padding:1px; float:{{{float|right}}};"> |
− | + | <div style="width:{{{rating|1}}}0px; max-width:100px; height:12px; overflow:hidden; border-right:1px solid {{{boxcolor|black}}};"> | |
− | <div style="width:{{{rating| }}}0px; max-width:100px; height: | + | <table style="border-collapse:collapse;"> |
− | < | + | <tr> |
− | < | + | <td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #009900; "></td> |
− | < | + | <td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #40A600; "></td> |
− | < | + | <td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #80B300; "></td> |
− | < | + | <td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #BFBF00; "></td> |
− | < | + | <td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #FFCC00; "></td> |
− | < | + | <td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #EBA300; "></td> |
− | < | + | <td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #D67A00; "></td> |
− | < | + | <td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #C25200; "></td> |
− | < | + | <td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #AD2900; "></td> |
− | < | + | <td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #990000; "></td> |
− | </ | + | </tr> |
− | + | </table> | |
+ | </div></div> | ||
<noinclude> | <noinclude> | ||
'''Usage:'''<br> | '''Usage:'''<br> | ||
− | rating = Min 1, Max 10<br> | + | rating = Min 1, Max 10 (default 1)<br> |
− | float = left or right (default right) | + | float = left or right (default right)<br> |
+ | boxcolor = the color of the surrounding grid elements | ||
<pre> | <pre> | ||
{{Bar5 | {{Bar5 | ||
| rating = | | rating = | ||
| float = | | float = | ||
+ | | boxcolor = | ||
|}} | |}} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> |
Revision as of 16:57, 2 December 2014
Usage:
rating = Min 1, Max 10 (default 1)
float = left or right (default right)
boxcolor = the color of the surrounding grid elements
{{Bar5 | rating = | float = | boxcolor = |}}