plugin:exttab1
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
plugin:exttab1 [2008-07-22 18:44] โ 82.224.163.148 | plugin:exttab1 [2018-05-06 15:56] โ Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Extended Table Syntax Plugin ====== | ||
+ | ---- plugin ---- | ||
+ | description: | ||
+ | author | ||
+ | email : werner.flamme@ufz.de | ||
+ | type : Syntax | ||
+ | lastupdate : 2016-02-11 | ||
+ | compatible : 2006-11-06 and later | ||
+ | depends | ||
+ | conflicts | ||
+ | similar | ||
+ | tags : MediaWiki, tables, !obsolete | ||
+ | |||
+ | downloadurl: | ||
+ | bugtracker : https:// | ||
+ | sourcerepo : https:// | ||
+ | ---- | ||
+ | |||
+ | |||
+ | After I saw that the wish for the Wikimedia way of table syntax became so urgent that there was even a bounty given to to its adoption ;-) to DokuWiki -- and I want to use this syntax by myself, too -- I finally decided to give it a try. Here you see the result. | ||
+ | I did not do so much -- just visited [[http:// | ||
+ | |||
+ | Anyone feel free to modify the code โ and please tell me what and why you did so that I can be happy about these modifications in my own wiki :-) --- // [[w.flamme@web.de| Werner Flamme]] 2006-10-16 // | ||
+ | |||
+ | I added the code at github.com to offer better access. Maybe someone still uses this plugin instead of the (better working) [[plugin: | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | When you want to see the results (on a sample page) in my wiki: look at [[http:// | ||
+ | |||
+ | ===== Source ===== | ||
+ | |||
+ | You see the source code on page [[plugin: | ||
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | Just | ||
+ | * create the folder // | ||
+ | * and copy the [[plugin: | ||
+ | |||
+ | Or use the plugin manager and enter the URL mentioned at the top of this page | ||
+ | |||
+ | ===== Usage ===== | ||
+ | |||
+ | Infos about the supported syntax can be found in [[http:// | ||
+ | |||
+ | > You may use the syntax mentioned on that MediaWiki page when you put an ''< | ||
+ | |||
+ | If I try to put H1...H6 into the tables, the formatting chaos will overwhelm me ;-). Hunting for the correct nesting of HR, TD, and CAPTION tags was quite a game... Maybe the fact that the alignment does not always work correctly is caused by the template. Following the produced code it should be aligned correctly :-/ BTW, you should add some formatting info into the CSS files you use for the '' | ||
+ | |||
+ | ==== Warning ==== | ||
+ | Please be careful with this plugin! When you use the formatting abilities, these pieces of HTML or CSS are neither parsed nor checked. The plugin trusts you to write clean code! ;-) The plugin just looks whether there are 2 parts of the line -- if yes, the first part is used as formatting info, and the second becomes content. When you mix it up, you may get strange looking pages :-/ | ||
+ | |||
+ | And: I plan not to change this, because it will slow down the rendering process enormously... | ||
+ | |||
+ | |||
+ | ===== Updates ===== | ||
+ | Today I extended the code to insert %%< | ||
+ | |||
+ | On // | ||
+ | |||
+ | ===== Discussion ===== | ||
+ | |||
+ | Werner, is there any way that normal dokuwiki syntax would work from within the tables? Currently only HTML seems to work. For example, the following is not functional: | ||
+ | < | ||
+ | {| width=80% align=center | ||
+ | |align=center|[[page|{{wiki: | ||
+ | |} | ||
+ | </ | ||
+ | --- // [[eslachance@gmail.com| Eric-Sebastien Lachance]] 2006-10-17 05:44 EST // | ||
+ | |||
+ | > Eric-Sebastien, | ||
+ | |||
+ | >> Correcting myself (or being more precise): your example works with the 2 modifications of the code I just added: first, function '' | ||
+ | |||
+ | >>> | ||
+ | |||
+ | >>>> | ||
+ | |||
+ | >>>>> | ||
+ | < | ||
+ | If you would like to pass it by reference, modify the declaration of p_render(). | ||
+ | If you would like to enable call-time pass-by-reference, | ||
+ | | ||
+ | | ||
+ | --- // [[eslachance@gmail.com| Eric-Sebastien Lachance]] 2006-10-23 3:58 EST // | ||
+ | |||
+ | > Thank you Eric-Sebastien 8-o. The warning you show is a good example of the internal changes of PHP. In order to always provide enough work for PHP programmers ;-), the PHP coordinators create new standards, additional parameters or change some conventions. Like " | ||
+ | |||
+ | >> You can also just put an ' | ||
+ | |||
+ | >>> | ||
+ | |||
+ | Thanks for the useful plugin. I've found that backlinks are not detected for links inside an < | ||
+ | > Brad, that is correct since the content of < | ||
+ | |||
+ | Plugin not working with (2006-11-06) version of DokuWiki. | ||
+ | |||
+ | > Hi anonymous user, would you please give some details? The plugin worked with the devel versions before this stable version and it works with the current devel. So I am curious why it will not work with DokuWiki-2006-11-06. Any errors in apache.log, phperror.log or elsewhere? | ||
+ | |||
+ | I installed the plugin as described and it shows correctly on the plugin-page of my DokuWiki. But the only thing I see are some of the first letters in plain text i.E. '' | ||
+ | |||
+ | {| | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | I'm using the current stable xampplite-win32-1.6.0a under WinXP SP2. I've tried it with the stable DokuWiki 2006-11-06 and with the newest dev-snapshot of Dokuwiki 2007-03-14: Both return the same bogus way. Nothing shows up in the error.log of apache, unfortunately I can't seem to bring xampp to write a phperror.log. Contact me if you want me to test something. --- // | ||
+ | |||
+ | > Mike, did you put the < | ||
+ | |||
+ | >> Nope, I didn't use ''< | ||
+ | |||
+ | I tried your plugin and it works, but when I open the page with Firefox Browser, the Table will not display centered. | ||
+ | align=" | ||
+ | With IE Browser it will be ok :?: --- //Heiko 2007-06-18 09:13 CET// | ||
+ | |||
+ | > Heiko, I can confirm that align=" | ||
+ | |||
+ | Hello. | ||
+ | [[hitchcockninja@gmail.com|Hitchcock]] | ||
+ | |||
+ | > Hitchcock, AFAIK this will not work. Following the way the data is parsed, I must look for the first character in a line. If this is not a "table formatting" | ||
+ | > Maybe you find a way to work it out -- you're welcome ;-) --- // | ||
+ | |||
+ | Hello, First nice work. but i get a problem with the the links working where i set my own name e.x. [[http:// | ||
+ | |||
+ | > Thanks :-) Jan-Philipp, | ||
+ | |||
+ | I appear to have found a generation problem in the syntax.php function _handleHeaderLine($linedata) line ~277 (my source lines might not match). | ||
+ | example failing code | ||
+ | < | ||
+ | {| | ||
+ | !class=" | ||
+ | !test1 | ||
+ | |} | ||
+ | </ | ||
+ | will generate code with the class in the text block instead of in the column header format block. | ||
+ | --- // | ||
+ | |||
+ | > Hi verci, AFAIK the HTML source and the content are separated by '' | ||
+ | |||
+ | Hello, I have used your code for a while. I like it, but it doesn' | ||
+ | --- // | ||
+ | |||
+ | > Hi disorder chang, you did much better work than I did! Congratulations! And thank you for taking my code as footstep ;-) --- // | ||
+ | |||
+ | Hi! is there a possibility to have multiline cells in the table? I tried linebreaks after | but it only shows the first line (works in Wikimedia). | ||
+ | |||
+ | > Hi Benny, I'm sorry :-( but it is not. I'm parsing the input line by line, so this won't work. Maybe you better try the [[exttab2]] plugin? Or you try to include the linebreak signs (double backslash) in function '' | ||
+ | |||
+ | |||
+ | Hello Werner, I have released the [[plugin: | ||
+ | which has further developed from [[plugin: | ||
+ | There is indeed no new additional feature in extended tables, | ||
+ | of which mediawiki-like syntax is fully translated to call instuctions | ||
+ | in the // | ||
+ | The // | ||
+ | This approach might be consistent better with DokuWiki parser process. | ||
+ | --- // | ||
+ | |||
+ | > Hi, thank you very much! Your plugin looks good, I'll see if I can use it on my own site :-) --- // |
plugin/exttab1.txt ยท Last modified: 2023-10-30 22:47 by Klap-in