Jump to content

Extension talk:PropertyTable2

Add topic
From mediawiki.org
Latest comment: 9 years ago by Weiserma in topic PHP warning in error.log

Compatible with MediaWiki 1.16[edit]

I've just upgraded to MediaWiki 1.16.0. Version 1.2.0-GB (2007-12-27) of this extension doesn't work anymore with this newer version of MediaWiki. Is this a known problem? And if so are there plans to update this extension? 08:10, 6 August 2010 (UTC)Reply

I'm having the same problem. Just moved to a new job and now all my templates that I brought with me no longer work :(

sorry for late :-( Had some problems.
you're right. Due to the new way to work with parser, this extension result not compatible with 1.16 and above. I'm working on to update, in the meanwhile I provided a code snippet that works (tested) on MW 1.17.
sorry for the inconvenience. --GB 20:55, 31 July 2011 (UTC)Reply

Conditional rows?[edit]

If I'm using this within a template, some parameters may not be passed, i.e.


Name = {{{name|}}}
Address = {{{addr|na}}}
Phone number ={{{phone|}}}

Then in some other pages:

{{MyTemplate | name=one | addr = two | phone = 3 }}
{{MyTemplate | phone = 3 }}
{{MyTemplate | name=one | addr = two }}

In cases where values are missing, it would be nice if the corresponding row of the table could be hidden. MW code to do this is very messy.

--Dmb 01:07, 2 July 2010 (UTC)Reply

mmm... I think that your request is nice, but this must be an option (some people prefers that all the keys are reported, regardless that exist a corresponding value or not). Anyway, because after long time I'm working on @class parameter for CSS, I will take a look for your request too... --GB 22:06, 5 July 2010 (UTC)Reply

PHP warning in error.log[edit]

Notice: Undefined index: class in /home/wiki/extensions/PropertyTable2.php on line 66

--Mark Weiser (talk) 15:47, 15 October 2014 (UTC)Reply