Extension talk:SimpleTable/Archive

Allow Wiki Text in Dataset
I have modified the script to allow wiki text within the dataset and properly handle the parse reference so it does not conflict with other extensions.

--- (Smcnaught) 20:12, 28 July 2006 (UTC) - I am also available on irc.chekmate.org #MediaWiki

Thanks for your contribution -- that's a big improvement (wish I'd thought of it!). As you'll see, I've moved your version to the main page, and also uploaded an improved version, which also includes your change. Cheers, JohanTheGhost 15:31, 12 April 2007 (UTC)

Quoted strings containing separator literals
I haven't tested this extension yet - though I've wanted one like it for a long time. Does it deal well with quoted strings that contain delimiters? For example:  "field, 1", "field, 2" "field 3", "field 4" Along the same lines, if it does handle quoted strings containing separator literals, does it support quote escaping, or would the user just have to put in &amp;quot;. --Jimbojw 16:05, 12 April 2007 (UTC)


 * No, it doesn't handle quoted delimiters yet; with the most recent enhancement, the idea is that you can pick a non-clashing delimiter.


 * Having said that, being able to handle quoted delimiters in the style exported by Excel (eg.) would be useful -- I'll look into it. JohanTheGhost 16:45, 19 April 2007 (UTC)


 * OK, the Excel CSV format encloses any values which contain commas in double quotes; double quotes are escaped by doubling them. So,   becomes  .  This is pretty repugnant from a parsing point of view...  I think the simplest thing is to use tab-separated data, and convert tabs to spaces in your data.  JohanTheGhost 17:38, 19 April 2007 (UTC)

column/row headings
Since most tables usually have column headings (sometimes also row headings), it's be nice if there was an option for this. A simple parameter in the TAB tag (heading=column and/or heading=row) could tell the parser to format the first row/column accordingly. I'll look into it myself when I get around to it, though that might take a few weeks. -- FND 18:44, 12 April 2007 (UTC)

Move to MediaWiki.org
Why is this at Meta - doesn't it belong at MediaWiki.org? -- FND 18:44, 12 April 2007 (UTC)
 * Dude, read the box on the article page! JohanTheGhost 16:41, 19 April 2007 (UTC)#
 * Sorry; I guess I meant why you didn't create it there in the first place, but that's probably because things were different when this page was first started... -- FND 17:38, 19 April 2007 (UTC)
 * That's right; TabbedData appeared in May 06, the "new extensions on MW.org" notice appeared in August. JohanTheGhost 20:02, 19 April 2007 (UTC)

name misleading
As mentioned on MediaWiki-l, the current name of this extension makes it a bit hard to immediately grasp its purpose. The term "tabbed" is reminiscent of things like "tabbed browsing", which might be misleading. "Tabular Data" has been suggested as an alternative, though something like "CSV-Data Tables" might be a more telling name. -- FND 09:52, 13 April 2007 (UTC)


 * Agreed -- moving it would be a hassle, though. Maybe one day -- maybe after it gets moved to MW.org.  JohanTheGhost 16:47, 19 April 2007 (UTC)


 * So, now that I've made Sayuri move the page, let's talk business... How about something like xSV Data Tables ("xSV" because "CSV" would be too limiting)? It doesn't sound very fancy, but at least it reflects the purpose!? -- FND 14:29, 26 June 2007 (UTC)


 * Hmmm... I really prefer "TabularData", or "SimpleTable". JohanTheGhost 15:13, 26 June 2007 (UTC)


 * "SimpleTable" sounds nice - though "TabularData" might be a more telling name... -- FND 16:05, 26 June 2007 (UTC)


 * "SimpleTable" it is -- I like simple... ;-) JohanTheGhost 20:21, 26 June 2007 (UTC)


 * Great! :) -- FND 13:40, 28 June 2007 (UTC)

modification: column headings
I've changed and added a few lines of code to allow column headings using the "HEAD" parameter. Unfortunately, I do not know how to make TortoiseSVN create a patch from two local files, so I'll have to post the full code. (Disclaimer: I'm not an experienced coder, and don't know very much about PHP - so the quality of my changes might be questionable... ) -- FND 12:53, 19 April 2007 (UTC)


 * Nice job! I've moved it into the main version, and added "head=top" and "head=left".  I've deleted your posted version from here to make the page easier to navigate, but it is still available in the history. JohanTheGhost 17:25, 19 April 2007 (UTC)


 * Looks good - I can't test it here, but I'll update as soon as I'm in the office again!
 * Just one question: Why don't you use SWITCH/CASE instead of IF ... ELSE?
 * -- FND 18:16, 19 April 2007 (UTC)


 * With only two cases, it makes the code more compact, and it's not any slower. JohanTheGhost 19:58, 19 April 2007 (UTC)


 * Well, I guess it's a matter of personal preference...
 * I just tested it, and it works like a charm! (A nice addition would be to be able to specify both TOP and LEFT as headings, but I guess that's rarely needed.)
 * -- FND 08:23, 25 April 2007 (UTC)
 * Done, as of version 1,2 -- "head=topleft". JohanTheGhost 20:22, 26 June 2007 (UTC)
 * Good job! (I almost overlooked the update though; the revision history should have a timestamp too.) -- FND 13:40, 28 June 2007 (UTC)

No borders in SimpleTable v1.2
I am using Mediawiki 1.10 on a Apache/2.2.3 (Ubuntu) PHP/5.2.1 Server. I installed SimpleTable v1.2.Everithing is ok except the tables have no borders I tried all kinds of separations and I still get the same result.Can you please help? If you need any additional info, please post here so I can provide you with what you need


 * Yes, same problem here. no borders, "no pretty format". How to do this? --Nyks 17:22, 31 August 2007 (UTC)


 * The table doesn't have borders by default. If you want borders, you have to add the relevant markup to the   tag; for example

. ..
 * If your wiki has the "wikitable" CSS class defined, then this should work:


 * That wasn't very clear in the main page; I've now clarified it. Sorry for the confusion. JohanTheGhost 21:02, 18 September 2007 (UTC)


 * Thanks for the info. btw, perhaps a small border would be nice as default for this extension :) --Nyks 02:29, 19 September 2007 (UTC)

Table Captions and row/cell classes.
I love this extension!

I like to use SimpleTables with the sortable class to make my tables sort. It would be great to be able to assign a class to arbitrary rows to use the sortbottom and unsortable classes.

Thanks.

Please add sep=semicolon
It often seems to be necessary to have the semicolon as an additional separator. This is often used in Germany, because we use the comma as the decimal separator (instead of the point). Adding the following line to the $separators array provides this feature: 'semicolon' => '/;/', I'd like to see this in the next official version of this great extension. --Rrosenfeld 12:50, 15 October 2007 (UTC)


 * Me too! When writing/editing by hand using the semicolon is the easiest one. Using tab it can't be entered by hand (cursor jumps to next inputfield), space and comma is often used in text and bar is used in Wiki-Links . I'm using your extension in our company intranet-mediawiki and i'm using semicolon as default-sep. --84.57.26.228 07:31, 9 January 2008 (UTC) aka. de:User:Folke