Bug 295720 - Add borders to wiki tables
Summary: Add borders to wiki tables
Status: RESOLVED FIXED
Alias: None
Product: www.kde.org
Classification: Websites
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kde-www mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-10 21:03 UTC by Nicolás Alvarez
Modified: 2012-04-17 11:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolás Alvarez 2012-03-10 21:03:59 UTC
The CSS stylesheet in the Chihuahua mediawiki theme is explicitly disabling borders in tables and their cells, in chihuahua/content.css lines 82-93. Line 95 looks like it enables borders if the table has a border="1" attribute, but this only adds a border around the whole table and not around individual cells.

The only way for a wiki editor to add cell borders to a table is to set inline CSS on *every single individual cell*. This obviously isn't feasible.

Tables without borders separating cells are pretty hard to read, especially in large tables, or tables with lots of empty cells where you want to visually match a non-empty cell in the middle to the corresponding row and column headers.

I suggest removing the [border=1] rule (it seems silly to have special behavior on that single value for the attribute), and making "table.wikitable td" have a visible border. I leave it to the designers to decide the color and other stylings. I'm also fine if only .wikitable tables get those borders and other tables don't ('wikitable' is the correct class to use for "content" tables).
Comment 1 Ingo Malchow 2012-04-01 21:42:48 UTC
whoops, overread the mediawiki part...
Comment 2 Anne Wilson 2012-04-02 07:15:45 UTC
Could we not have another table class for cases where bordered cells are
desirable?
On Apr 1, 2012 10:42 PM, "Ingo Malchow" <imalchow@kde.org> wrote:
>
> https://bugs.kde.org/show_bug.cgi?id=295720
>
> Ingo Malchow <imalchow@kde.org> changed:
>
>           What    |Removed                     |Added
>
----------------------------------------------------------------------------
>          Component|templates                   |general
>           Assignee|imalchow@kde.org            |kde-www@kde.org
>            Product|bugs.kde.org                |www.kde.org
>
> --- Comment #1 from Ingo Malchow <imalchow@kde.org> ---
> whoops, overread the mediawiki part...
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
> _______________________________________________
> kde-www mailing list
> kde-www@kde.org
> https://mail.kde.org/mailman/listinfo/kde-www
Comment 3 Frederik Schwarzer 2012-04-17 11:02:24 UTC
Yes, please, pretty please with a cherry on top ... please.
:D
Although I would rather make the bordered table the default and if needed have another table without boders for cases where it is needed.
Comment 4 Ingo Malchow 2012-04-17 11:39:17 UTC
Sidenote:
Always impressive to see such layout wishes when the theme is already - what? - 2 years old and has reached its end of life, while an entire new one is on its way ;)
But well, guess the sites itself got more popular over time.

Anyway, fix is done now. As PovAddict suggested, the fix is done for class="wikitable", nothing more, no need to set border="1". If you don't want borders, leave .wikitable out.
Reason is, much of the navigation or list of features with images etc are done with tables as well, where a border is not wished. That was the initial reason to entirely remove it. Because, we are talking about 5 different wikis. At least as far as i remember after such a long time. :P

Hope that fullfills most needs.

Cheerio,
Ingo