Jump to content

Extension talk:SimpleTable

About this board

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

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

Reply to "Older mediawiki support?"

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.

Reply to "Registration method stops other extensions like Maps working"

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";
                }
Reply to "Only allowing one column to wrap"
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.

Reply to "Maintaining again"
There are no older topics