New property type - function
Closed, DeclinedPublic

Description

Author: z.pekar

Description:
Defining properties by functions, for example Triangle's square (something like that):

[[Height::1..3]]
[[Length::4..6]]
[[Square::0.5*Height*Length; 3]] where 3 is amount of values(/points) that should be generated from the intervals provided by arguments (in this case for Height - 1,2,3 and for Length - 4,5,6). If there were 5 instead of 3, the arguments were: Height - 1, 1.5, 2, 2.5, 3; and for Length - 4, 4.5, 5, 5.5, 6.

This should mean smth. like this:

[[Height::1;2;3]]
[[Length::4;5;6]]
[[Square::2;5;9]]

Now following queries should find this page (among others):

[[Square::2]]

[[Square::5]]

[[Height::2]]

[[Square::9]]
[[Height::3]]
[[Length::6]]

While these queries shouldn't:

[[Square::17]]

[[Square::5]]

[[Height::3]]

[[Square::9]]
[[Height::3]]
[[Length::5]]


Version: unspecified
Severity: enhancement

bzimport set Reference to bz22303.
bzimport created this task.Via LegacyJan 28 2010, 1:14 PM
mkroetzsch added a comment.Via ConduitMar 3 2010, 4:09 PM

This is clearly beyond the intended functionality of SMW. Such a feature could possibly be realised by means of templates with ParserFunctions, or by a completely new MediaWiki extension. But it is not a kind of feature that SMW provides.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.