Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It can be done. All the method described below was done working with Mediawiki 1.17.0.</p> <p>I'm asumming you're authenticated at least as a sysop of the wiki and that you have full access to the FTP folder and are able to modify the wiki files.</p> <p>You will need to modify the <strong><em>/includes/Preferences.php</em></strong> file. Go around line 200 and you'll find the following code:</p> <pre><code>$defaultPreferences['gender'] = array( 'type' =&gt; 'select', 'section' =&gt; 'personal/info', 'options' =&gt; array( wfMsg( 'gender-male' ) =&gt; 'male', wfMsg( 'gender-female' ) =&gt; 'female', wfMsg( 'gender-unknown' ) =&gt; 'unknown', ), 'label-message' =&gt; 'yourgender', 'help-message' =&gt; 'prefs-help-gender', ); </code></pre> <p>Add the new genders you'll need:</p> <pre><code>$defaultPreferences['gender'] = array( 'type' =&gt; 'select', 'section' =&gt; 'personal/info', 'options' =&gt; array( wfMsg( 'gender-male' ) =&gt; 'male', wfMsg( 'gender-female' ) =&gt; 'female', wfMsg( 'gender-transgender' ) =&gt; 'transgender', wfMsg( 'gender-noneofyourbusiness' ) =&gt; 'noneofyourbusiness', ), 'label-message' =&gt; 'yourgender', 'help-message' =&gt; 'prefs-help-gender', ); </code></pre> <p>Finally, you'll need to go to the <strong><em>MediaWiki:gender-transgender</em></strong> and <strong><em>MediaWiki:gender-noneofyourbusiness</em></strong> (assumming you added those two new genders) pages of your wiki and edit them with the text you'd like to see when selecting a gender option.</p> <p>That should be all. Enjoy!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload