Hi Yury,

If I understand the question, you can already do that - the parameter you're looking for is called "target".

-Yaron

On Thu, Jun 21, 2012 at 10:18 AM, Yury Katkov <katkov.juriy@gmail.com> wrote:
Hi everyone! I discover to my surprise that #formlink parser function
doesn't have 'pagename' parameter.
Such a parameter is needed for at least three use-cases:
1) using #formlink inside the template. The template can include a
code like that:
{{#formlink:pagename=blabla{{{1}}} }}

2) using Magic Words inside the #formlink. The example can be like the following
{{#formlink:pagename=Report about {{PAGENAME}} on {{CURRENTDAY}} }}

3) Create new extensions a bit easier. I have created an extension
'WikiVote Create Page' that allows to deal with MediaWiki redlinks and
non-existant pages. In this extensions the administrator can create a
page full of formlinks (so called Creation Dialog) and then redirect
every redlink to this page. I need to somehow pass the redlink name to
my Creation Dialog.

Now I'm using #forminput with preloaded page name instead of
#formlink. It looks pretty ugly: a dozen of forminputs with the same
text inside the input.

Yaron and other SF contributors what do you think about adding
'pagename' parameter to #formlink?
-----
Yury Katkov

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel



--
WikiWorks MediaWiki Consulting http://wikiworks.com