Hi,

I would also look into the ArrayExtension
(http://www.mediawiki.org/wiki/Extension:ArrayExtension)

If you have something like 
[[HeightLength::1;4]]
[[HeightLength::2;5]]

you can extract and assign a HeightArray and a LengthArray by queries (see
examples on extension page).

Unfortunately the ArrayExtension doesn't implement the array_map function but it
shouldn't be too difficult to add something like #arraymap which would use PHP's
array_map() function with the given parameters.

And than something along the line
{{#arraydefine:SquareArray|
{{#arraymap:HeightArray|LengthArray|'function($l,$h){return(0.5*$h*$l);}' }}
would return an array of the results.

Cheers,
Gu

Quoting Zeev Pekar <z.pe...@gmail.com>:

> Hi,
> 
> I've just added an enhancement request:
> https://bugzilla.wikimedia.org/show_bug.cgi?id=22303
> 
> Do you think it is interesting enough so that SMW developers will
> implement it? If yes, how long might it take? If no, could you please
> tell me, whether it is hard to implement such extension and which areas
> should I take a look at if I have to implement it myself (I'm new to
> SMW)?
> 
> thank you in advance,
> Zeev
> 
> 
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
> 





------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to