/** * Make a nice little form so the user can enter a title and so forth * in normal output mode * * @return string */ private function makeForm() { global $wgScript; $self = parent::getTitleFor('Contributors'); $target = is_object($this->target) ? $this->target->getPrefixedText() : ''; $form = '<form method="get" action="' . htmlspecialchars($wgScript) . '">'; $form .= Html::Hidden('title', $self->getPrefixedText()); $form .= '<fieldset><legend>' . wfMsgHtml('contributors-legend') . '</legend>'; $form .= '<table><tr>'; $form .= '<td><label for="target">' . wfMsgHtml('contributors-target') . '</label></td>'; $form .= '<td>' . Xml::input('target', 40, $target, array('id' => 'target')) . '</td>'; $form .= '</tr><tr>'; $form .= '<td> </td>'; $form .= '<td>' . Xml::submitButton(wfMsg('contributors-submit')) . '</td>'; $form .= '</tr></table>'; $form .= '</fieldset>'; $form .= '</form>'; return $form; }