DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:exttab1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plugin:exttab1 [2012-04-22 07:00]
2001:4dd0:ff00:e05::2 old revision restored
plugin:exttab1 [2018-05-06 15:56] (current)
Klap-in
Line 6: Line 6:
 email      : werner.flamme@ufz.de email      : werner.flamme@ufz.de
 type       : Syntax type       : Syntax
-lastupdate : 2006-12-02+lastupdate : 2016-02-11
 compatible : 2006-11-06 and later compatible : 2006-11-06 and later
 depends ​   : depends ​   :
 conflicts ​ : conflicts ​ :
-similar ​   : exttab2 +similar ​   : exttab2, exttab3 
-tags       : MediaWiki, tables+tags       : MediaWiki, tables, !obsolete 
 + 
 +downloadurl:​ https://​github.com/​wernerflamme/​dwexttab1/​archive/​master.zip 
 +bugtracker : https://​github.com/​wernerflamme/​dwexttab1/​issues/​ 
 +sourcerepo : https://​github.com/​wernerflamme/​dwexttab1/​
 ---- ----
  
  
-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 it'​s ​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.+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://​www.mediawiki.org/​wiki/​Help:​Tables]] and modified my code after each sample so that the result looked like a table ;-). I did not do so much -- just visited [[http://​www.mediawiki.org/​wiki/​Help:​Tables]] and modified my code after each sample so that the result looked like a table ;-).
  
 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 // 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:​exttab2]] or [[plugin:​exttab3]] ;-) --- // [[w.flamme@web.de| Werner Flamme]] 2013-03-23 //
  
 ===== Example ===== ===== Example =====
 +
 When you want to see the results (on a sample page) in my wiki: look at [[http://​www.wernerflamme.name/​doku.php?​id=users:​werner:​exttab1_en|my wiki]]. When you want to see the results (on a sample page) in my wiki: look at [[http://​www.wernerflamme.name/​doku.php?​id=users:​werner:​exttab1_en|my wiki]].
- 
  
 ===== Source ===== ===== Source =====
-You see the source code on page [[plugin:​exttab1:​source|exttab1:​source]]. 
  
 +You see the source code on page [[plugin:​exttab1:​source|exttab1:​source]].
  
 ===== Installation ===== ===== Installation =====
 +
 Just  Just 
    * create the folder //​lib/​plugins/​exttab1/​ //     * create the folder //​lib/​plugins/​exttab1/​ // 
    * and copy the [[plugin:​exttab1:​source|source code]] to //​lib/​plugins/​exttab1/​syntax.php//​    * and copy the [[plugin:​exttab1:​source|source code]] to //​lib/​plugins/​exttab1/​syntax.php//​
  
 +Or use the plugin manager and enter the URL mentioned at the top of this page
  
 ===== Usage ===== ===== Usage =====
 +
 Infos about the supported syntax can be found in [[http://​www.mediawiki.org/​wiki/​Help:​Tables]]. Infos about the supported syntax can be found in [[http://​www.mediawiki.org/​wiki/​Help:​Tables]].
  
Line 51: Line 58:
 ===== Updates ===== ===== Updates =====
 Today I extended the code to insert %%<​thead>​%% and %%<​tbody>​%% tags at the right places. ​ --- //​[[werner.flamme@ufz.de|Werner Flamme]] 2006-12-02 15:30 CET// Today I extended the code to insert %%<​thead>​%% and %%<​tbody>​%% tags at the right places. ​ --- //​[[werner.flamme@ufz.de|Werner Flamme]] 2006-12-02 15:30 CET//
 +
 +On //​2016-01-22//​ I received a pull request for PHP7 signature. This request has been pulled in on //​2016-01-23//,​ but the date has to be set to today, since it must match the change date of this page due to disappearing from [[devel:​badextensions]] :-\ --- //​[[werner.flamme@ufz.de|Werner Flamme]] 2016-02-10 07:43 CET//
  
 ===== Discussion ===== ===== Discussion =====
Line 81: Line 90:
  
 >> You can also just put an '​@'​ before ''​p_render''​. Doesn'​t solve the problem, but suppresses the 5 lines of warning on each page ;-)  --- //​[[unixprog@gmail.com|konstantin baierer]] 2006-12-16 21:01// >> You can also just put an '​@'​ before ''​p_render''​. Doesn'​t solve the problem, but suppresses the 5 lines of warning on each page ;-)  --- //​[[unixprog@gmail.com|konstantin baierer]] 2006-12-16 21:01//
 +
 +>>>​ I removed the ampersand sign in the p_render function call in the github version... ​ --- // [[w.flamme@web.de| Werner Flamme]] 2013-03-23 11:16 CET //
  
 Thanks for the useful plugin. I've found that backlinks are not detected for links inside an <​exttab1>​ tag --- // [[schickb@hotmail.com| Brad Schick]] 2006-11-14 0:33 PST // Thanks for the useful plugin. I've found that backlinks are not detected for links inside an <​exttab1>​ tag --- // [[schickb@hotmail.com| Brad Schick]] 2006-11-14 0:33 PST //
Line 142: Line 153:
  
 > 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 ''​%%__parseDisplayDat%%''​ by adding them to ''​$allowedTags''​ (maybe as quad backslash) --- //​[[werner.flamme@ufz.de|Werner Flamme]] 2008-07-03 11:25 CEST// > 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 ''​%%__parseDisplayDat%%''​ by adding them to ''​$allowedTags''​ (maybe as quad backslash) --- //​[[werner.flamme@ufz.de|Werner Flamme]] 2008-07-03 11:25 CEST//
 +
 +
 +Hello Werner, I have released the [[plugin:​exttab3|exttab3]] plugin ​
 +which has further developed from [[plugin:​exttab2]].
 +There is indeed no new additional feature in extended tables, ​
 +of which mediawiki-like syntax is fully translated to call instuctions ​
 +in the //​handle()//​ method in the exttab3.
 +The //​render()//​ method simply converts those instructions to table html.
 +This approach might be consistent better with DokuWiki parser process.
 + --- //​[[user>​s.sahara|s.sahara]] 2014/03/31 12:29//
 +
 +> Hi, thank you very much! Your plugin looks good, I'll see if I can use it on my own site :-) --- //​[[werner.flamme@ufz.de|Werner Flamme]] 2014/03/31 17:43 CEST//
plugin/exttab1.1335070857.txt.gz · Last modified: 2012-04-22 07:00 by 2001:4dd0:ff00:e05::2