如何添加 HTML select 列表到 MediaWiki 联系人页面?

How to add HTML select list to MediaWiki ContactPage?

我希望对 MediaWiki 扩展 ContactPage 的以下默认 PHP 配置的 HTML 输出进行细微更改,方法是添加一个 HTML [=33] =]列表。

这是我的 LocalSettings.php 文件中可用的全部默认 PHP 配置:

wfLoadExtension( 'ContactPage' );
$wgContactConfig['default'] = array(
    'RecipientUser' => 'WikiUser', // Must be the name of a valid account which also has a verified e-mail-address added to it.
    'SenderName' => 'Contact Form on ' . $wgSitename, // "Contact Form on" needs to be translated
    'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required
    'RequireDetails' => true, // Either "true" or "false" as required
    'IncludeIP' => false, // Either "true" or "false" as required
    'MustBeLoggedIn' => true, // Check if the user is logged in before rendering the form
    'AdditionalFields' => array(
        'Text' => array(
            'label-message' => 'emailmessage',
            'type' => 'textarea',
            'rows' => 20,
            'required' => true,  // Either "true" or "false" as required
        ),
    ),
        // Added in MW 1.26
    'DisplayFormat' => 'table',  // See HTMLForm documentation for available values.
    'RLModules' => array(),  // Resource loader modules to add to the form display page.
    'RLStyleModules' => array(),  // Resource loader CSS modules to add to the form display page.
);

我已经阅读了扩展程序的 README file,但我不清楚如何向代码中添加如下所示的 HTML select 列表:

<select name="fruit">
    <option value ="none">Nothing</option>
    <option value ="guava">Guava</option>
    <option value ="lychee">Lychee</option>
    <option value ="papaya">Papaya</option>
</select> 

作为一名非 PHP 程序员,我问,如何在 PHP 中包含这样一个 HTML select 列表?

ContactForm 扩展基于 MediaWikis HTMLForm 系统。
有关如何使用此系统添加不同类型字段的示例,请参见此处 mediawiki.org 上的 HTMLForm 教程:https://www.mediawiki.org/wiki/HTMLForm