Last modified: 2009-06-26 12:07: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 T17906, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15906 - Using #ask in a #formlink
Using #ask in a #formlink
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-09 03:36 UTC by Patrick
Modified: 2009-06-26 12:07 UTC (History)
0 users

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


Attachments

Description Patrick 2008-10-09 03:36:02 UTC
I am trying to use an inline query (#ask) within a #formlink, something like this:

{{ #formlink: Project|Create project|link|Project[Number prefix]={{ #ask: [[Category:Year-Letter mapping]] [[Year::{{ #time: Y | {{CURRENTYEAR}} }}]] | ?Letter | link=none | format=template | template=One string | limit=1 }}{{ #time: m }} }}

I know it looks ugly and all, but it would be great to get this Year-Letter mapping, that we need for project numbers, to be done by software.

The output of that link could be:

https://server/wiki/index.php/Special:AddData/Project?Project[Number prefix]=[[SMW::off]]C[[SMW::on]]10

So year 2008 maps to letter C, the month number being inserted is 10, which is all ok. But: Obviously the '[[SMW::off]]' and '[[SMW::on]]' parts should not appear in the URL. Can this be resolved?
Comment 1 Patrick 2008-10-09 03:38:00 UTC
Forgot to mention: I also tried to put the #ask query into a template for less uglyness, with the same result.
Comment 2 Patrick 2009-06-26 12:07:43 UTC
Not specific to Semantic Forms, rather an issue with SMW.

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


Navigation
Links