Manual:Hooks/EditFormPreloadText

Details

 * $text: text to prefill edit form with
 * $title: title of new page (Title Object)

Example
To prefill page text when creating "A_New_Page" with "please enter text for A New Page"

$wgHooks['EditFormPreloadText'][] = array('prefill');

function prefill(&$textbox, &$title) { $title_str = $title->getText; $textbox = "please enter text for $title_str"; return true; }