Author: mediawiki
Description:
Small patch to enable additional formlink mode
Yaron,
On a project I'm working on, the page name of a page created with a form is set to a concatenation of the Current User and the Current date stamp.
I couldn't figure out a way to do this with formlink, so I created this small patch.
Basically, if the formlink query string begins with a slash (/), the query string is treated as the page name.
This allowed me to do something like:
{{#formlink:DK_Report_Compilation|Create DK Report Compilation|button|/{{CURRENTUSER}}-{{#time: Y m d H:i:s}}}}
This resulted in Special:AddData being invoked in the mode Special:AddData/FORM_NAME/TARGET_NAME and gave me the flexibility to use magic words in specifying the target page name.
Unless there is a better way to do what I'm trying to do using the existing code, hope you find this useful.
Thanks,
Joel
Version: unspecified
Severity: enhancement
Attached: