Extension talk:SimpleTable/Archive 2

About this board

Structured Discussions boards are read-only on this wiki as of March 2025.

Previous discussion was archived at Extension talk:SimpleTable/Archive on 4 July 2020.

An older comment can also be found at Extension talk:SimpleTable/1.2a

Older mediawiki support?

1
109.253.170.3 (talkcontribs)

This is a great extension which I heavily relied on. Upgraded to MW 1.30 recently only to discover it's not supported for this extension. It's a shame. Would really appreciate if it were adapted to older MW versions as well

Registration method stops other extensions like Maps working

2
Vicarage (talkcontribs)

With mediawiki 1.35 there is some clash with the way this extension registers itself with other extensions like Maps. I have rewritten it to use extension.json and a new Hook approach. See https://github.com/jrbray1/SimpleTable where you will need extension.json and SimpleTable.php, and add to LocalSettings.php

wfLoadExtension( 'SimpleTable' );

I don't understand php or mediawiki internals, so the solution is fragile

Tgschaef (talkcontribs)

I troubleshot this down to here as well. Thanks for beating me to this and fixing this. I used your repository master to get this crucial extension working again with Maps parser extensions.

Only allowing one column to wrap

1
Vicarage (talkcontribs)

In my attempts to have tables with columns not wrapping their text (See https://www.mediawiki.org/wiki/Topic:Vt0oqcj6dvqqyl6d), I came up with a solution for SimpleTable.php, a change to convertTable so only the last column wraps


                if ($col < sizeof($fields)-1) {
                  $wikitab .= $cbar . ' <span style="white-space: nowrap;">' . $field . "</span>\n";
                } else {
                  $wikitab .= $cbar . " " . $field . "\n";
                }

Maintaining again

1
Vicarage (talkcontribs)

I like SimpleTable a lot, so I've made a copy at https://github.com/jrbray1/SimpleTable and added my changes for a newbarbar (||) separator and table collapsing. Once I've got the hang of things I may offer to maintain it properly.

There are no older topics