Difference between revisions of "Template:PandaBar"

From PRIMUS Database
Jump to: navigation, search
(Created page with "<noinclude>Category:Template Sub Pages<!--please do not delete or overwrite--></noinclude> <div style="min-width:101px; display:inline-block; border:1px solid {{{boxcolor|...")
 
m
 
(2 intermediate revisions by the same 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="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 {{{bordercolor|black}}};">  
<div style="width:{{{rating|1}}}0px; max-width:100px; height:12px; overflow:hidden; border-right:0px solid {{{boxcolor|black}}};">  
+
 
<table style="border-collapse:collapse;">
 
<table style="border-collapse:collapse;">
 
<tr>
 
<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 {{{bordercolor|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 {{{bordercolor|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 {{{bordercolor|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 {{{bordercolor|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 {{{bordercolor|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 {{{bordercolor|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 {{{bordercolor|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 {{{bordercolor|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 {{{bordercolor|black}}}; background: #AD2900; "></td>
<td style="min-width:7px;  height:8px; border:1px solid {{{boxcolor|black}}}; background: #990000; "></td>
+
<td style="min-width:7px;  height:8px; border:1px solid {{{bordercolor|black}}}; background: #990000; "></td>
 
</tr>
 
</tr>
 
</table>
 
</table>
</div></div>
+
</div>
 
<noinclude>
 
<noinclude>
{{PandaBar{{{power|0}}}}}
 
 
'''Usage:'''<br>
 
'''Usage:'''<br>
 
rating = Min 1, Max 10 (default 1)<br>
 
rating = Min 1, Max 10 (default 1)<br>
float = left or right (default right)<br>
+
bordercolor = the color of the border
boxcolor = the color of the surrounding grid elements
+
 
<pre>
 
<pre>
{{Bar10
+
{{PandaBar
 
| rating =
 
| rating =
| float =
+
| bordercolor =
| boxcolor =
+
 
|}}
 
|}}
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>

Latest revision as of 00:02, 23 January 2020

Usage:
rating = Min 1, Max 10 (default 1)
bordercolor = the color of the border

{{PandaBar
| rating =
| bordercolor =
|}}