Last modified: 2012-01-23 04:59:43 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 T34891, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32891 - Displaying alternate information in autocomplete dropdowns
Displaying alternate information in autocomplete dropdowns
Status: RESOLVED DUPLICATE of bug 23557
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-09 07:00 UTC by badon
Modified: 2012-01-23 04:59 UTC (History)
1 user (show)

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


Attachments

Description badon 2011-12-09 07:00:58 UTC
In my application of Semantic Forms, pages are given serial numbers that give no indication of what is on the page. However, there is a property on each page that contains descriptive text. I would like to have my autocompletes and dropdowns show alternate information in the dropdowns, perhaps like this:

{{{field 
| Some field 
| input type=combobox 
| existing values only 
| values from category=Some category 
| autocomplete alternate={{#ask: [[Category:Some category]] | ?Alternate autocomplete property}}
}}}

I plan on using that for text values such that some obscure serial number will be translated to something human readable. For example, let's say the page names are RGB color values. Instead of showing the numerical values in the dropdown, I could have it instead show color names like "red", "green", or "blue".

If we wanted to take this a step further, supporting query templates might allow me to show images of things that are blue in the dropdown. Such capability makes it possible to select not just text values in a dropdown, but also visual items that represent the text values.
Comment 1 badon 2012-01-14 01:12:20 UTC
It appears this feature is available in Semantic Forms Inputs, when combined with Semantic Treeview or perhaps some other tree view extension, like TreeAndMenu:

http://www.mediawiki.org/wiki/Extension:Semantic_Forms_Inputs#Menuselect 

"If you use wiki-internal links, the link text will be shown in the menu while the name of the target article will be sent back to the form."

It appears it was broken until version 0.5, from December 2011:

http://www.mediawiki.org/wiki/Extension:Semantic_Forms_Inputs/Version_History

I can add SFI to my list of things to test, and if I come up with a way to do it, we can close this enhancement, and I'll produce some documentation for it.
Comment 2 badon 2012-01-23 04:59:43 UTC

*** This bug has been marked as a duplicate of bug 23557 ***

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


Navigation
Links