Difference between revisions of "Template:Bar10"

From PRIMUS Database
Jump to: navigation, search
(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 (fixed template usage from 5 to 10.)
 
(One intermediate revision by one other user not shown)
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 #666666;background:white; float:right;">
+
<div style="min-width:101px; display:inline-block; border:1px solid {{{boxcolor|black}}};background:white; padding:1px; float:{{{float|right}}};">
<div style="width: 100px; height:8px; border:1px solid white;background:white;">
+
<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:8px; overflow:hidden;">  
+
<table style="border-collapse:collapse;">
<UL style="margin:0px; padding:0px;">
+
<tr>
<li style="list-style-type: none;display: inline;"><span style="display: block;float: left;background:#009900;padding: 4px;text-decoration: none; font-size:6px;">&nbsp;</span></li>
+
<td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #009900; "></td>
<li style="list-style-type: none;display: inline;"><span style="display: block;float: left;background:#40A600;padding: 4px;text-decoration: none; font-size:6px;">&nbsp;</span></li>
+
<td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #40A600; "></td>
<li style="list-style-type: none;display: inline;"><span style="display: block;float: left;background:#80B300;padding: 4px;text-decoration: none; font-size:6px;">&nbsp;</span></li>
+
<td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #80B300; "></td>
<li style="list-style-type: none;display: inline;"><span style="display: block;float: left;background:#BFBF00;padding: 4px;text-decoration: none; font-size:6px;">&nbsp;</span></li>
+
<td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #BFBF00; "></td>
<li style="list-style-type: none;display: inline;"><span style="display: block;float: left;background:#FFCC00;padding: 4px;text-decoration: none; font-size:6px;">&nbsp;</span></li>
+
<td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #FFCC00; "></td>
<li style="list-style-type: none;display: inline;"><span style="display: block;float: left;background:#EBA300;padding: 4px;text-decoration: none; font-size:6px;">&nbsp;</span></li>
+
<td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #EBA300; "></td>
<li style="list-style-type: none;display: inline;"><span style="display: block;float: left;background:#D67A00;padding: 4px;text-decoration: none; font-size:6px;">&nbsp;</span></li>
+
<td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #D67A00; "></td>
<li style="list-style-type: none;display: inline;"><span style="display: block;float: left;background:#C25200;padding: 4px;text-decoration: none; font-size:6px;">&nbsp;</span></li>
+
<td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #C25200; "></td>
<li style="list-style-type: none;display: inline;"><span style="display: block;float: left;background:#AD2900;padding: 4px;text-decoration: none; font-size:6px;">&nbsp;</span></li>
+
<td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #AD2900; "></td>
<li style="list-style-type: none;display: inline;"><span style="display: block;float: left;background:#009900;padding: 4px;text-decoration: none; font-size:6px;">&nbsp;</span></li>
+
<td style="min-width:7px; height:8px; border:1px solid {{{boxcolor|black}}}; background: #990000; "></td>
</ul>
+
</tr>
</div></div></div>
+
</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
+
{{Bar10
 
| rating =
 
| rating =
 
| float =
 
| float =
 +
| boxcolor =
 
|}}
 
|}}
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>

Latest revision as of 16:37, 4 December 2014

Usage:
rating = Min 1, Max 10 (default 1)
float = left or right (default right)
boxcolor = the color of the surrounding grid elements

{{Bar10
| rating =
| float =
| boxcolor =
|}}