Template:TCG Rainbow color light: Difference between revisions

m
no edit summary
(negate choosing Darkness (instead will choose Colorless))
mNo edit summary
Line 1: Line 1:
<noinclude>{|
<noinclude>{|
! {{e|{{#switch: {{#expr: {{#time: U}} mod 10}}|0=Colorless|1=Fighting|2=Fire|3=Grass|4=Lightning|5=Psychic|6=Water|7=Colorless|8=Metal|9=Fairy|Rainbow}}}}
! {{e|{{#switch: {{#expr: {{#time: U}} mod 10}}|0=Colorless|1=Fighting|2=Fire|3=Grass|4=Lightning|5=Psychic|6=Water|7=Dragon|8=Metal|9=Fairy|Rainbow}}}}
! style="background:#{{tcg rainbow color light}}; color:#000000" | <small>[[Rainbow Energy (TCG)|<span style="color:#000000">Rainbow</span>]] color light:
! style="background:#{{tcg rainbow color light}}; color:#000000" | <small>[[Rainbow Energy (TCG)|<span style="color:#000000">Rainbow</span>]] color light:
|<span style="color:#{{tcg rainbow color light}}">'''</noinclude>{{tcg {{#switch: {{#expr: {{#time: U}} mod 10}}|0=Colorless|1=Fighting|2=Fire|3=Grass|4=Lightning|5=Psychic|6=Water|7=Colorless|8=Metal|9=Fairy|Black}} color light}}<noinclude>'''</span>
|<span style="color:#{{tcg rainbow color light}}">'''</noinclude>{{tcg {{#switch: {{#expr: {{#time: U}} mod 10}}|0=Colorless|1=Fighting|2=Fire|3=Grass|4=Lightning|5=Psychic|6=Water|7=Dragon|8=Metal|9=Fairy|Black}} color light}}<noinclude>'''</span>
|}
|}


This template will randomly select one of the 10 TCG type colors to use, with a 10% chance for each.
This template will randomly select one of the 11 TCG type colors to use, with a 9.09% chance for each.
* However, it currently will not choose the Darkness color, due to legibility problems. Colorless will have a 20% chance for now.
* However, it currently will not choose the Darkness color, due to legibility problems, giving each of the remaining 10 colours a 10% chance to be picked.


[[Category:Type color templates|TCG Rainbow]]</noinclude>
[[Category:Type color templates|TCG Rainbow]]</noinclude>