Using the variables extension, I want to change the background color of a cell in a table. So far I've done this:
{{#vardefine:green|<span style="background:Green; color:White">text</span>}}
The problem is that, when I add {{#var:green}} to the cell, only the text itself has a green background. Ideally, I want the whole cell to have a background color, like it does if I use this:
| bgcolor="#ff00ff" | test
or this
| style="background:silver" |silver
in the cell.
Does anyone know how to solve this?