Last modified: 2011-03-13 18:04:59 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24303, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22303 - New property type - function
New property type - function
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-28 13:14 UTC by z.pekar
Modified: 2011-03-13 18:04 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description z.pekar 2010-01-28 13:14:56 UTC
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]]
Comment 1 Markus Krötzsch 2010-03-03 16:09:04 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links