diff --git a/mod/wiki/create_form.php b/mod/wiki/create_form.php index ce78ca47f0f..1f231a21ec8 100644 --- a/mod/wiki/create_form.php +++ b/mod/wiki/create_form.php @@ -44,6 +44,8 @@ class mod_wiki_create_form extends moodleform { } $mform->addElement('text', 'pagetitle', get_string('newpagetitle', 'wiki'), $textoptions); + $mform->addElement('static', 'format', get_string('format', 'wiki')); + $mform->addHelpButton('format', 'format', 'wiki'); foreach ($formats as $format) { if ($format == $defaultformat) { $attr = array('checked'=>'checked'); @@ -52,7 +54,9 @@ class mod_wiki_create_form extends moodleform { } else { $attr = array(); } + $mform->addElement('radio', 'pageformat', '', get_string('format'.$format, 'wiki'), $format, $attr); + } //hiddens diff --git a/mod/wiki/edit_form.php b/mod/wiki/edit_form.php index 05fbb3b9182..61c780466a6 100644 --- a/mod/wiki/edit_form.php +++ b/mod/wiki/edit_form.php @@ -57,8 +57,11 @@ class mod_wiki_edit_form extends moodleform { if ($format != 'html') { $mform->addElement('wikieditor', 'newcontent', get_string('content'), array('cols' => 50, 'rows' => 20, 'wiki_format' => $format)); + $mform->addHelpButton('newcontent', 'format'.$format, 'wiki'); } else { $mform->addElement('editor', 'newcontent_editor', get_string('content'), null, page_wiki_edit::$attachmentoptions); + $mform->addHelpButton('newcontent_editor', 'formathtml', 'wiki'); + } //hiddens diff --git a/mod/wiki/lang/en/wiki.php b/mod/wiki/lang/en/wiki.php index ff68c917674..4a93f38e88f 100644 --- a/mod/wiki/lang/en/wiki.php +++ b/mod/wiki/lang/en/wiki.php @@ -36,7 +36,7 @@ $string['defaultformat_help'] = 'This setting determines the default format used * HTML - The HTML editor is available * Creole - A common wiki markup language for which a small edit toolbar is available -* Nwiki - The markup language used in the contributed Nwiki module'; +* Nwiki - Mediawiki-like markup language used in the contributed Nwiki module'; $string['deletecomment'] = 'Deleting comment'; $string['deleteupload'] = 'Delete'; $string['deletedbegins'] = 'Deleted begins'; @@ -54,9 +54,18 @@ $string['firstpagetitle'] = 'First page name'; $string['firstpagetitle_help'] = 'Title of the first page of the wiki.'; $string['forceformat'] = 'Force format'; $string['forceformat_help'] = 'If the format is forced (checkbox ticked), there is no option to choose a format when editing a wiki page.'; +$string['format'] = 'Format'; +$string['format_help'] = 'Format used when editing wiki pages. + +* HTML - The HTML editor is available +* Creole - A common wiki markup language for which a small edit toolbar is available +* Nwiki - Mediawiki-like markup language used in the contributed Nwiki module'; $string['formathtml'] = 'HTML Format'; +$string['formathtml_help'] = 'HTML Format'; $string['formatcreole'] = 'Creole Format'; -$string['formatnwiki'] = 'NWIKI Format'; +$string['formatcreole_help'] = 'Creole Format'; +$string['formatnwiki'] = 'NWiki Format'; +$string['formatnwiki_help'] = 'NWiki Format'; $string['history'] = 'History'; $string['html'] = 'HTML'; $string['insertcomment'] = 'Insert comment';