User talk:User9669

Extension:TemplateTable

 * Is it possible to use the actual article's name instead of just "article"?


 * OK, I figured this out (use $page instead of "article"--quotes included) but now how do I get rid of the underscore (_) and replace it with a space ? -Eep² 12:04, 24 July 2007 (UTC)


 * OK, I figured that out too after some Google searching. I added this: $page = str_replace("_"," ",$page); before $output.= $page; -Eep² 12:35, 24 July 2007 (UTC)


 * How can the table cells be made into category links with the same name as the field? Or, better yet, take the template field values directly (which can be category links or whatever).


 * This would be difficult. If every table cell was a category name, you could wrap the output with an explicit link to the category.  Otherwise, how can you tell a category from plain text? Kainaw 19:11, 25 July 2007 (UTC)


 * Well, I use Extension:Semantic Forms which requires a template for form data entry. The template auto-categorizes fields into categories (via  Category: , as you can see in this game template--and mentioned below in the first bug bullet) but TemplateTable strips out the wiki markup and can't render and    markup inside fields, as you can see in this table. Can you make an option for TT to not do this (and to also render the field headers as they are specified in the template with wiki markup)? -Eep² 21:02, 25 July 2007 (UTC)


 * Can the table be sortable and specify which articles that use the template are included?


 * Done using the "class=sortable" command. -Eep² 12:39, 24 July 2007 (UTC)


 * Is it possible to evaluate surrounding/neighbor cells and, if they contain the same data, use colspan/rowspan accordingly?


 * The data for the cells is in an array. If you know the layout order, you can hard-code a check for other cells in the row.  However, checking rows above and below will be very difficult as it forgets each row after it is added. Kainaw 19:11, 25 July 2007 (UTC)


 * :/ Difficult, but not impossible? -Eep² 21:02, 25 July 2007 (UTC)


 * How can I get the articles to appear as columns and the fields as rows? -Eep² 12:39, 24 July 2007 (UTC)


 * You will have to store the whole thing as a 2-dimensional array as opposed to simply printing it out. Then, after filling the whole array, you can create the table.  The problem is that the query processes one row (an article), forgets about it, and gets the next row. Kainaw 19:11, 25 July 2007 (UTC)


 * I just looked at the code again - it DOES save each row in an array before producing the table. So, instead of parsing it page by page, parse it field by field. Kainaw 19:21, 25 July 2007 (UTC)


 * How? I really don't have that much PHP experience... -Eep² 21:02, 25 July 2007 (UTC)


 * Hello? I still need to be able to do columns vs. rows--how can fields be parsed? Also, I've been playing with the code and have managed to get links for the headers and cells but the links always appear as if wiki pages already exist for them, instead of having the red "?" next to them. I'd rather be able to pull in the formatting of the template though so I don't have to force all cells to be links or categories... —Eep² 20:23, 2 September 2007 (UTC)


 * What you are trying to do is take a simple table to a completely different level. In other words - you are developing a completely new extension.  This extension is for those who want a simple table of values and a link to the article. Kainaw 15:31, 11 September 2007 (UTC)


 * No, I'm simply trying to enhance TemplateTable to the point of making it more usable while remaining simple and easy to use... I would appreciate your help in getting table output in columns vs. rows (as an option) please... -Eep² 68.127.103.25 11:19, 13 September 2007 (UTC)


 * I don't believe that you understand. When you state "I'm simply trying to enhance TemplateTable", it implies that you are doing something.  What code have you provided?  What it appears you mean to say is, "I am trying to force you to take time away from your work and family to write your extension the way I want it to work because I don't want to do the work myself."  If you cannot understand what you appear to be asking, then it is a waste of time to continue answering. Kainaw 13:52, 13 September 2007 (UTC)

Bugs

 * The template header data don't show if specified explicitly. I have a table with these fields: "Website", "Year", "Genre", "Publisher", "Developer", "Engine", and "Character". If fields aren't specified in the  </tt> tag, all the headers show fine as lowercase, except the "website" field which has some wiki markup ( </tt>) that gets truncated to  {{PAGENAME </tt> in one row and  {{w </tt> (short for the full template call of  {{w|}} </tt>. But if I leave out the "website" field in the  </tt> tag, no data shows up in any of the fields (except for the header names and "article"). :/ Note that if I remove the template from the "website" field, all the other headers appear in the table. See the various tables at http://www.tnlc.com/wiki/index.php?title=comparison_table


 * Have to re-edit the page in order to get the templatetable.php</tt> script to recompile. :/ -Eep² 12:00, 24 July 2007 (UTC)


 * This is noted on the page. It is the cache that needs to be flushed.  I cannot find a way to force it to flush when a change is made to a template that a ttable looks at. Kainaw 19:11, 25 July 2007 (UTC)


 * There may be a way but I'm not sure. -Eep² 21:02, 25 July 2007 (UTC)


 * Links ( wiki </tt>,  [wiki] </tt>, <a href="http://HTML.com/">HTML</a></tt>, or http://plain-text.com</tt>) don't work (get parsed by MediaWiki) in table text (between  </tt>). —Eep² 20:44, 2 September 2007 (UTC)