Documented. The message is used as default value for the input box, and $1 appears as is.
$1
$1 in the input box will be replaced by page title.
Cool Shirayuki, thank you for your help! Wonder why I did not do this. Cheers