Extension talk:PropertyTable2
Latest comment: 10 years ago by Weiserma in topic PHP warning in error.log
Compatible with MediaWiki 1.16
editI'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? 83.247.29.30 08:10, 6 August 2010 (UTC)
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)
Conditional rows?
editIf I'm using this within a template, some parameters may not be passed, i.e.
TEMPLATE:
{{#properties: 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)
- 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)
PHP warning in error.log
editNotice: Undefined index: class in /home/wiki/extensions/PropertyTable2.php on line 66