On 3/8/10 5:10 PM, Tech Geek wrote:
So I am trying to achieve the same thing as the OP of this thread wanted [1].
Basically, to get "green" color for "yes" and "red" color for "no" in the cells just like a standard comparison table on the Internet Wikipedia [2]. So I defined my table (simpliefied example) in the wiki page as follow:
{| cellspacing="0" cellpadding="3" border="1" class="wikitable sortable" |- ! A ! B |- | {{Yes}} | {{No}} |}
Obviously nothing happened with the above code i.e. I did not get any green or red background color in the cell. In an expected manner wiki engine displayed "Yes" and "No" with a "wanted link".
Now I am not sure if I have to create Templates called Template:Yes and Template:No? And if I do have to create these templates, what should be the content of those templates?
I am using MediaWiki 1.12 version.
[1] http://www.mail-archive.com/mediawiki-l@lists.wikimedia.org/msg03986.html
[2] http://en.wikipedia.org/wiki/Comparison_of_issue_tracking_systems#Input_Inte...
Thanks _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
{| cellspacing="0" cellpadding="3" border="1" class="wikitable sortable" |- ! A ! B |- | style="background-color:green" | {{Yes}} | style="background-color:red" | {{No}} |}
Essentially, you can use HTML attributes here.
- Trevor