“模板:FAQ”的版本间差异

来自广财百科
跳到导航 跳到搜索
L>Shirayuki
(anchors)
 
(导入1个版本)
 

2020年10月30日 (五) 01:19的最新版本

<languages /> {{#switch:<translate></translate> | = {{#switch:<translate></translate> | =

{{#ifeq:{{#titleparts:faq en getlanguagesubpage|}}
 }}
getlanguagesubpage|}}

}}|{{#ifeq:{{#invoke:template translation|getlanguagesubpage|}}|en

{{#ifeq:{{#titleparts:faq en getlanguagesubpage|}}
 }}
getlanguagesubpage|}}

}}|⧼lang⧽}}}}

ar|arc|arz|azb|bcc|bgn|bqi|ckb|dv|en-rtl|fa|fa-af|glk|he|khw|kk-arab|kk-cn|ks|ks-arab|ku-arab|lki|lrc|luz|mzn|nqo|pnb|prd|ps|sd|sdh|skr-arab|ug|ug-arab|ur|ydd|yi

={{#if:||{{#if:left|left|rtl}}}}

#default

={{#if:||{{#if:right|right|ltr}}}} }}"

<translate> Need immediate help</translate>    <translate> Immediate help</translate>

<translate>

  • <tvar|mediawiki-l>mediawiki-l</>, the MediaWiki [[<tvar|ml>Special:MyLanguage/mailing lists</>|mailing list]].</translate>

<translate>

  • <tvar|mw>#mediawiki</> - the [[<tvar|irc>Special:MyLanguage/MediaWiki on IRC</>|IRC]] channel.

</translate>

  • <translate> [[<tvar|1>Project:Support desk</>|Support desk]]</translate>
<translate> For more information about the above, please see <tvar|communication>{{#ifeq:Communication|

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Communication/Page display title/{{#ifeq:|

getLanguageSubpage|}}|en {{#ifeq:{{#titleparts:FAQ en getLanguageSubpage|}}
 }}
getLanguageSubpage|}}

}}|

zh-cn getLanguageSubpage|}}|en {{#ifeq:{{#titleparts:FAQ en getLanguageSubpage|}}
 }}
getLanguageSubpage|}}

}}

}}
getLanguageSubpage|}}|en {{#ifeq:{{#titleparts: en getLanguageSubpage|}}
 }}
getLanguageSubpage|}}

}}|

zh-cn getLanguageSubpage|}}|en {{#ifeq:{{#titleparts: en getLanguageSubpage|}}
 }}
getLanguageSubpage|}}

}}

}}

}}

{{#if: getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Communication/Page_display_title}}|noshift=}} }}
 }}
{{#if: Communication communication
 }}

}}}}{{#ifeq:Communication|

}} </>.</translate>

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Help box|noshift=1}}

}}

<translate> Frequently asked questions (FAQ) about MediaWiki usage.</translate> <translate> If your question is neither answered here nor in the [[<tvar|1>Special:MyLanguage/Manual:Contents</>|MediaWiki documentation]], then please ask for help in our [[<tvar|2>Special:MyLanguage/MediaWiki on IRC</>|IRC channels]] or in the [[<tvar|3>Project:Support desk</>|Support desk]].</translate> <translate> Any questions?</translate>

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:FAQ header|noshift=1}}

}}

{{#switch:<translate></translate> | =

<translate> shortcut:</translate> {{#if: FAQ | {{#if: |
}} FAQ }}{{#if: |
[[|']] }}{{#if: |
[[|'
]] }}{{#if: |
[[|']] }}{{#if: |
[[|'
]] }}

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Shortcut|noshift=1}}

}} <translate>

The basics

What are the differences between MediaWiki, Wikimedia, Wikipedia and wiki?

This is a common question; please see <tvar|1>{{#ifeq:Differences between Wikipedia, Wikimedia, MediaWiki, and wiki|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Differences between Wikipedia, Wikimedia, MediaWiki, and wiki/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Differences between Wikipedia, Wikimedia, MediaWiki, and wiki/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Differences between Wikipedia, Wikimedia, MediaWiki, and wiki
   |Differences between Wikipedia, Wikimedia, MediaWiki, and wiki
 }}

}}}}{{#ifeq:Differences between Wikipedia, Wikimedia, MediaWiki, and wiki|

 |

}} </> for a detailed answer.

I want to use a MediaWiki instance to (blank). Am I allowed to?

</translate> <translate> MediaWiki is free software: this means that you may use it for any purpose without legal hindrance.</translate> <translate> Furthermore, its licensing conditions apply solely to the software itself.</translate> <translate> This means that although many wikis license their content under a permissive license, you are not obliged to license the content submitted to your wiki in any particular way.</translate> <translate> Of course, as a project founded to support sites like Wikipedia, we encourage you to license the texts you write under a free license, but, in short, you are not required to.</translate>

<translate> If you wish to alter or amend the software itself, in general, you are permitted to, but there are some restrictions and you should consult the full text of the GNU GPL version 2 for details.</translate> <translate> Because MediaWiki is provided free of charge, there is no warranty, to the extent permitted by applicable law.</translate>

{{#if:installation|{{#if:Installation_and_configuration|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

Installation and configuration

Where do I download MediaWiki?

</translate> <translate> [[<tvar|1>Special:MyLanguage/Download</>|Click here to download the latest stable release of MediaWiki.]] Files are supplied in a .tar.gz archive.</translate> <translate> MediaWiki can also be [[<tvar|1>Special:MyLanguage/Download from Git</>|obtained directly from our Git]] repository.</translate>

<translate>

How to install MediaWiki?

</translate> <translate> Installing MediaWiki takes around 10 to 30 minutes, and involves uploading/copying files, and running the installer script to configure the software.</translate> <translate> See <tvar|1>{{#ifeq:Manual:Installation guide|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Installation guide/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Installation guide/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Installation guide
   |Manual:Installation guide
 }}

}}}}{{#ifeq:Manual:Installation guide|

 |

}} </>, where you will also find the minimum system requirements.</translate>

<translate>

How do I install MediaWiki using a package?

</translate> <translate> Many Linux distributions provide MediaWiki in a packaged format for that distribution.</translate> <translate> The MediaWiki development team refers you to your Linux distribution for assistance with installing, configuring or using them.</translate> <translate> The individual communities and companies who maintain such packages should provide installation instructions.</translate>

<translate> Be warned that third-party distributions may be older versions, so pay close attention to compatibility information for directions and extensions.</translate>

<translate> See also:</translate> {{#ifeq:Software bundles|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Software bundles/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Software bundles/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Software bundles
   |Software bundles
 }}

}}}}{{#ifeq:Software bundles|

 |

}}

<translate>

Can I install more than one wiki on a server using MediaWiki?

It is possible to install more than one wiki on a server provided that:

  • You install multiple instances of MediaWiki (such as with a software bundle like the Bitnami MediaWiki Stack); in different directories – one for each wiki

Or

  • You use a different database for each wiki

Or

  • You use a different database prefix for each wiki (for Postgres, you can achieve a similar effect by using different schemas and users)

For information on the latter two options, see <tvar|1>{{#ifeq:Manual:$wgDBname|

 |

}}{{#if:$wgDBname|$wgDBname|$wgDBname}}{{#ifeq:Manual:$wgDBname|

 |

}} </> and <tvar|2>{{#ifeq:Manual:$wgDBprefix|

 |

}}{{#if:$wgDBprefix|$wgDBprefix|$wgDBprefix}}{{#ifeq:Manual:$wgDBprefix|

 |

}} </> respectively.

For more information on setting up a wiki family (wikifarm), see <tvar|1>{{#ifeq:Manual:Wiki family|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Wiki family/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Wiki family/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Wiki family
   |Manual:Wiki family
 }}

}}}}{{#ifeq:Manual:Wiki family|

 |

}} </>.

For information on an alternative way of setting up more than one wiki using the same server, database and source, see [<tvar|url>http://www.steverumberg.com/wiki/index.php/WikiHelp</> Steve Rumberg's] ([<tvar|url2>http://web.archive.org/web/20070715020649/http://www.steverumberg.com/wiki/index.php/WikiHelp</> archived version]) excellent exposé and additional comments from users. </translate>

{{#if:How do I install an existing wiki, like Wikipedia or Wiktionary?|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

How do I install an existing wiki, like Wikipedia or Wiktionary?

The main (but not necessarily the easiest) method is to import. See [[<tvar|1>#Wiki importing</>|Wiki importing]], below.

(Non-MediaWiki methods, such as Xowa and Kiwix can be found at w:Wikipedia:Database download).

Does MediaWiki require shell access?

</translate> <translate> Shell access (SSH) is not required for installing MediaWiki, but it is highly recommended.</translate> <translate> Without shell access, it may even be difficult for you to get a backup of your wiki, or to upgrade to a new version.</translate> <translate> Some maintenance tasks are not possible at all without shell access.</translate> <translate> Many major extensions work best with shell access.</translate>

<translate>

How do I install extensions?

</translate> <translate> See <tvar|1>{{#ifeq:Manual:Extensions|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Extensions/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Extensions/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Extensions
   |Manual:Extensions
 }}

}}}}{{#ifeq:Manual:Extensions|

 |

}} </> for information about installing and writing extensions.</translate> <translate> See <tvar|1>{{#ifeq:分类:Extensions|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:分类|分类:}}Extensions/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:分类|分类:}}Extensions/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Extensions
   |Category:Extensions
 }}

}}}}{{#ifeq:分类:Extensions|

 |

}} </> to find existing extensions.</translate>

<translate>

How do I add extra namespaces?

See [[<tvar|1>Special:MyLanguage/Manual:Using_custom_namespaces#Creating_a_custom_namespace</>| Creating a custom namespace]].

How do I enable uploading?

</translate> <translate> File uploads are an often-used feature of MediaWiki, but are disabled by default in all current release versions.</translate> <translate> To enable them, first make the upload directory (default <tvar|1>images</>) writable by the web server (chmod -R 777 ./images or allow the Apache user to write to it, etc.) then set <tvar|2>{{#ifeq:Manual:$wgEnableUploads|

 |

}}{{#if:$wgEnableUploads|$wgEnableUploads|$wgEnableUploads}}{{#ifeq:Manual:$wgEnableUploads|

 |

}} </> to <tvar|3>true</> in LocalSettings.php.</translate> <translate> If you get a "failed to mkdir" error when you try to upload, it probably means that there's a permissions problem.</translate>

<translate> See also:</translate> {{#ifeq:Manual:Configuring file uploads|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Configuring file uploads/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Configuring file uploads/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Configuring file uploads
   |Manual:Configuring file uploads
 }}

}}}}{{#ifeq:Manual:Configuring file uploads|

 |

}}

<translate>

How do I allow uploading of additional formats?

</translate> <translate> MediaWiki requires that allowed file upload formats are specified using the <tvar|1>{{#ifeq:Manual:$wgFileExtensions|

 |

}}{{#if:$wgFileExtensions|$wgFileExtensions|$wgFileExtensions}}{{#ifeq:Manual:$wgFileExtensions|

 |

}} </> configuration directive.</translate> <translate> Usually this directive is situated in LocalSettings.php in the root of your MediaWiki installation.</translate>

<translate> For example, to extend uploading to PDF files, add the following to LocalSettings.php:</translate>

<syntaxhighlight lang="php"> $wgFileExtensions[] = 'pdf'; </syntaxhighlight>

<translate> To extend uploading to more than one type of file, use the following syntax</translate>

<syntaxhighlight lang="php"> $wgFileExtensions = array_merge( $wgFileExtensions, [ 'pdf', 'txt', 'mp3' ] ); </syntaxhighlight>

<translate> See also:</translate> {{#ifeq:Manual:Configuring file uploads|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Configuring file uploads/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Configuring file uploads/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Configuring file uploads
   |Manual:Configuring file uploads
 }}

}}}}{{#ifeq:Manual:Configuring file uploads|

 |

}}

<translate>

How do I enable embedded math formulas?

MediaWiki allows embedded math formulas.</translate> <translate> See <tvar|1>{{#ifeq:Extension:Math|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:Math/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:Math/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Extension:Math
   |Extension:Math
 }}

}}}}{{#ifeq:Extension:Math|

 |

}} </> for complete setup instructions.</translate>

<translate>

How do I set the timezone for my MediaWiki?

</translate>

<translate> See <tvar|1>{{#ifeq:Manual:Timezone|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Timezone/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Timezone/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Timezone
   |Manual:Timezone
 }}

}}}}{{#ifeq:Manual:Timezone|

 |

}} </></translate>

{{#if:How do I purge a cached page?|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

How do I purge a cached page?

To purge a cached page, such as when making changes to the navigation bar, add &action=purge to the end of the page's dynamic URL.

E.g. </translate> https://www.mediawiki.org/w/index.php?title=Main_Page&action=purge

<translate> Or ?action=purge to the end of the page's short form URL:</translate>

<translate> E.g.</translate> https://www.mediawiki.org/wiki/Main_Page?action=purge

<translate> See also:</translate> {{#ifeq:Manual:Purge|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Purge/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Purge/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Purge
   |Manual:Purge
 }}

}}}}{{#ifeq:Manual:Purge|

 |

}} , {{#ifeq:Manual:Parameters to index.php|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Parameters to index.php/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Parameters to index.php/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Parameters to index.php
   |Manual:Parameters to index.php
 }}

}}}}{{#ifeq:Manual:Parameters to index.php|

 |

}}

{{#if:How do I completely disable caching?|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

How do I completely disable caching?

Add in your LocalSettings.php file the following lines: </translate>

{{#ifeq:Manual:$wgEnableParserCache|
 |

}}{{#if:$wgEnableParserCache|$wgEnableParserCache|$wgEnableParserCache}}{{#ifeq:Manual:$wgEnableParserCache|

 |

}} = false; // deprecated method

{{#ifeq:Manual:$wgParserCacheType|
 |

}}{{#if:$wgParserCacheType|$wgParserCacheType|$wgParserCacheType}}{{#ifeq:Manual:$wgParserCacheType|

 |

}} = CACHE_NONE;

{{#ifeq:Manual:$wgCachePages|
 |

}}{{#if:$wgCachePages|$wgCachePages|$wgCachePages}}{{#ifeq:Manual:$wgCachePages|

 |

}} = false;

{{#if:"File is corrupt or has an invalid extension"|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

"File is corrupt or has an invalid extension"

</translate> <translate> Some users have reported that after adding a file format to the allowed extensions list, an error is encountered.</translate> <translate> The text of the error is similar to the following:</translate>

<translate> The file is corrupt or has an incorrect extension. Please check the file and upload again.</translate>

<translate> Possible solutions:</translate>

<translate>

  • Set the value of <tvar|1>{{#ifeq:Manual:$wgMimeDetectorCommand|
 |

}}{{#if:$wgMimeDetectorCommand|$wgMimeDetectorCommand|$wgMimeDetectorCommand}}{{#ifeq:Manual:$wgMimeDetectorCommand|

 |

}} </>, e.g. under Unix or Linux, this would be</translate>

  • $wgMimeDetectorCommand = "file --brief --mime";

<translate>

  • Compile/install the fileinfo PHP extension </translate>
    • Fedora - yum install php-pecl-Fileinfo
<translate> See also:</translate> {{#ifeq:Manual:Mime type detection|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Mime type detection/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Mime type detection/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Mime type detection
   |Manual:Mime type detection
 }}

}}}}{{#ifeq:Manual:Mime type detection|

 |

}}

{{#if:Initial user was not created by installer|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

Initial user was not created by installer or it is not an administrator

Sometimes, the installer fails to create the default user, or the user table is lost for some reason.</translate> <translate> There are a couple of options for solving this:</translate>

maintenance/createAndPromote.php

<translate>

  • Execute <tvar|1>{{#ifeq:Manual:createAndPromote.php|
 |

}}{{#if:maintenance/createAndPromote.php|maintenance/createAndPromote.php|maintenance/createAndPromote.php}}{{#ifeq:Manual:createAndPromote.php|

 |

}} --username</> <new user name> <tvar|2>--password</> <password for that user> from the shell.</translate> <translate> Append --bureaucrat to command line if you want that user to become a bureaucrat, in addition to becoming an administrator.</translate>

<translate> This will create a new user and promote them to an administrator.</translate> <translate> For help, run the script with the parameter --help.</translate>

<translate>

Alter the database

<translate>

  • Check the user ID [[<tvar|1>Special:MyLanguage/API:Userinfo#Example</>|via API]].</translate>

<translate>

  • Execute the following SQL statement against the database:</translate>
    • INSERT INTO user_groups ( ug_user, ug_group ) VALUES ( <id>, 'bureaucrat' ), ( <id>, 'sysop' );
<translate> <tvar|1><id></> above should be replaced with the appropriate user ID which you can see on the user's preference page.</translate>
<translate> Note: if <tvar|1>$wgDBprefix</> is defined in LocalSettings.php, prepend its value to the table name.</translate> <translate> For example, if $wgDBprefix is "XYZ", then the table name to use is XYZuser_groups</translate>

<translate>

Temporarily let everyone assign rights to promote your initial user

</translate> {{#switch:<translate></translate> | =

{{#if: <translate> You should not let outsiders access your wiki while you do this, if you use this method.</translate> <translate> This method may leave your wiki temporarily vulnerable to attack while you do the procedure.</translate>|

}}<translate> Warning</translate> <translate> Warning:</translate> {{#if: <translate> You should not let outsiders access your wiki while you do this, if you use this method.</translate> <translate> This method may leave your wiki temporarily vulnerable to attack while you do the procedure.</translate>|<translate> You should not let outsiders access your wiki while you do this, if you use this method.</translate> <translate> This method may leave your wiki temporarily vulnerable to attack while you do the procedure.</translate>

}}

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Warning|noshift=1}}

}}

<translate> This method essentially involves letting all users temporarily modify user permissions in order to promote one user</translate> <translate>

  • Register a new account using the regular method (Special:UserLogin).</translate> <translate> Be logged in using that account.</translate>

<translate>

  • Add the following line to the bottom of LocalSettings.php</translate>
    • $wgGroupPermissions['user']['userrights'] = true;

<translate>

  • Go to special:userrights and add the user you just created to the Administrator and Bureaucrat groups.</translate>

<translate>

  • Remove the</translate> $wgGroupPermissions['user']['userrights'] = true; <translate> line from your LocalSettings.php .</translate> <translate> This step is very important, as until you remove it anyone can alter permissions, which is bad.</translate>

<translate>

How do I reset a user's MediaWiki password?

</translate>

<translate> See <tvar|1>{{#ifeq:Manual:Resetting passwords|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Resetting passwords/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Resetting passwords/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Resetting passwords
   |Manual:Resetting passwords
 }}

}}}}{{#ifeq:Manual:Resetting passwords|

 |

}} </></translate>

<translate>

How can I create interwiki links in my wiki?

</translate>

<translate> See <tvar|1>{{#ifeq:Manual:Interwiki|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Interwiki/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Interwiki/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Interwiki
   |Manual:Interwiki
 }}

}}}}{{#ifeq:Manual:Interwiki|

 |

}} </></translate>

<translate>

How do I make my base URLs shorter?

</translate>

<translate> (i.e. <tvar|1>/wiki/Article_Name</> as opposed to /w/index.php?title=Article_Name)</translate>

<translate> See <tvar|1>{{#ifeq:Manual:Short URL|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Short URL/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Short URL/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Short URL
   |Manual:Short URL
 }}

}}}}{{#ifeq:Manual:Short URL|

 |

}} </></translate>

<translate>

How do I organize pages into subdirectories like /wiki/subdir/PageName?

</translate>

<translate> See <tvar|1>{{#ifeq:Manual:$wgNamespacesWithSubpages|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:$wgNamespacesWithSubpages/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:$wgNamespacesWithSubpages/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:$wgNamespacesWithSubpages
   |Manual:$wgNamespacesWithSubpages
 }}

}}}}{{#ifeq:Manual:$wgNamespacesWithSubpages|

 |

}} {{#invoke:Int|renderIntMessage|and|lang=}}{{#invoke:Int|renderIntMessage|word-separator|lang=}}{{#ifeq:帮助:Subpages|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:帮助|帮助:}}Subpages/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:帮助|帮助:}}Subpages/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Subpages
   |Help:Subpages
 }}

}}}}{{#ifeq:帮助:Subpages|

 |

}} </></translate>

<translate>

Is downloading and using all of MediaWiki.org free?

</translate> <translate> Yes, it is free in the sense of Free software.</translate> <translate> See <tvar|1>{{#ifeq:广财百科:Copyrights|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:广财百科|广财百科:}}Copyrights/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:广财百科|广财百科:}}Copyrights/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Copyrights
   |Project:Copyrights
 }}

}}}}{{#ifeq:广财百科:Copyrights|

 |

}} </> for licensing issues regarding the written content of this site.</translate>

{{#if:How do I administrate/manage user rights?|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

How do I administrate/manage user rights?

</translate>

{{#if:How do I administrate/manage my users?|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate> See <tvar|1>{{#ifeq:Manual:User rights|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:User rights/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:User rights/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:User rights
   |Manual:User rights
 }}

}}}}{{#ifeq:Manual:User rights|

 |

}} </> for general information.</translate> <translate> See <tvar|1>{{#ifeq:Manual:Preventing access|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Preventing access/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Preventing access/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Preventing access
   |Manual:Preventing access
 }}

}}}}{{#ifeq:Manual:Preventing access|

 |

}} </> for methods and strategies for restricting access.</translate>

{{#if:How do I stop anonymous users from editing any page?|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

How do I stop anonymous users from editing any page?

</translate> <translate> The recommended method is by changing the value of the <tvar|1>{{#ifeq:Manual:$wgGroupPermissions|

 |

}}{{#if:$wgGroupPermissions|$wgGroupPermissions|$wgGroupPermissions}}{{#ifeq:Manual:$wgGroupPermissions|

 |

}} </> configuration option.</translate> <translate> Edit <tvar|1>{{#ifeq:LocalSettings.php|

 |

}}{{#if:LocalSettings.php|LocalSettings.php|LocalSettings.php}}{{#ifeq:LocalSettings.php|

 |

}} </> and add the line:</translate>

<syntaxhighlight lang="php"> $wgGroupPermissions['*']['edit'] = false; </syntaxhighlight>

<translate> If you use <tvar|1>{{#ifeq:Extension:AbuseFilter|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:AbuseFilter/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:AbuseFilter/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Extension:AbuseFilter
   |Extension:AbuseFilter
 }}

}}}}{{#ifeq:Extension:AbuseFilter|

 |

}} </>, any admin can also disable IP editing temporarily as needed.</translate>

<translate> See also:</translate> {{#ifeq:Manual:Preventing access|
 |

}}{{#if:<translate> Preventing access</translate>|<translate> Preventing access</translate>|<translate> Preventing access</translate>}}{{#ifeq:Manual:Preventing access|

 |

}} , {{#ifeq:Manual:User rights|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:User rights/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:User rights/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:User rights
   |Manual:User rights
 }}

}}}}{{#ifeq:Manual:User rights|

 |

}}

<translate>

How do I stop anonymous users from reading any page?

  • Add this to the bottom of LocalSettings.php:

</translate>

<syntaxhighlight lang="php"> $wgGroupPermissions['*']['read'] = false; </syntaxhighlight>

<translate> See also <tvar|1>{{#ifeq:Manual:$wgWhitelistRead|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:$wgWhitelistRead/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:$wgWhitelistRead/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:$wgWhitelistRead
   |Manual:$wgWhitelistRead
 }}

}}}}{{#ifeq:Manual:$wgWhitelistRead|

 |

}} </>.</translate> <translate> See [[<tvar|1>Special:MyLanguage/Manual:Preventing access#Restrict viewing of all pages</>|Manual:Preventing access#Restrict viewing of all pages]] for more information.</translate>

<translate>

How do I restrict account creation?

  • Add this to the bottom of LocalSettings.php:

</translate>

<syntaxhighlight lang="php"> $wgGroupPermissions['*']['createaccount'] = false; </syntaxhighlight>

<translate> See [[<tvar|1>Special:MyLanguage/Manual:Preventing access#Restrict account creation</>|Manual:Preventing access#Restrict account creation]] for more information.</translate>

<translate>

How do I require an email address be specified at registration?

</translate>

<translate> See <tvar|1>{{#ifeq:Manual:$wgEmailConfirmToEdit|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:$wgEmailConfirmToEdit/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:$wgEmailConfirmToEdit/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:$wgEmailConfirmToEdit
   |Manual:$wgEmailConfirmToEdit
 }}

}}}}{{#ifeq:Manual:$wgEmailConfirmToEdit|

 |

}} </></translate>

<translate>

How do I put MediaWiki into Read Only mode?

</translate>

{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|MW version}}|noshift=}} |version=1.5|comment=and after|gerrit change=}}

<translate> See <tvar|1>{{#ifeq:Manual:$wgReadOnly|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:$wgReadOnly/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:$wgReadOnly/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:$wgReadOnly
   |Manual:$wgReadOnly
 }}

}}}}{{#ifeq:Manual:$wgReadOnly|

 |

}} </></translate>

<translate>

How do I change default user preferences?

</translate> {{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|MW version}}|noshift=}} |version=1.4|comment=and after|gerrit change=}} <translate> The MediaWiki default user preferences are in <tvar|1>{{#ifeq:Manual:DefaultSettings.php|

 |

}}{{#if:DefaultSettings.php|DefaultSettings.php|DefaultSettings.php}}{{#ifeq:Manual:DefaultSettings.php|

 |

}} </></translate> <translate> Don't edit that file, just use it for reference. </translate>

<translate> Say if you want to hide minor edits in recent changes by default.</translate> <translate> <tvar|1>DefaultSettings.php</> says:</translate>

<syntaxhighlight lang=php> $wgDefaultUserOptions = [

       ...

'hideminor' => 0,

       ...

] </syntaxhighlight>

<translate> To change the preference, put this in your LocalSettings.php:</translate>

<syntaxhighlight lang=php> $wgDefaultUserOptions["hideminor"] = 1; </syntaxhighlight>

<translate> To change the default namespaces to be searched, in any version of MediaWiki, set {{#ifeq:Manual:$wgNamespacesToBeSearchedDefault|

 |

}}{{#if:$wgNamespacesToBeSearchedDefault|$wgNamespacesToBeSearchedDefault|$wgNamespacesToBeSearchedDefault}}{{#ifeq:Manual:$wgNamespacesToBeSearchedDefault|

 |

}} in LocalSettings.php to an array mapping namespace indexes to boolean values.</translate> <translate> For example, to search the main namespace and the category namespace, use:</translate>

<syntaxhighlight lang=php> $wgNamespacesToBeSearchedDefault = array(

   NS_MAIN => true,
   NS_CATEGORY => true,

); </syntaxhighlight>

<translate> In some cases, after you change a default user preference, you may also want to change the user preferences of all existing user accounts.</translate>

<translate> If so, use the {{#ifeq:Manual:userOptions.php|

 |

}}{{#if:userOptions.php|userOptions.php|userOptions.php}}{{#ifeq:Manual:userOptions.php|

 |

}} script in the Maintenance directory.</translate> <translate> Use the "--dry" option for the first run, assess the impact and go from there. (--dry does not write the database)</translate>

php userOptions.php --dry --nowarn hideminor --old 0 --new 1

<translate> Also, always backup your database before making these kinds of changes (you do not need to if you are just using --dry).</translate>

<translate> See also:</translate> {{#ifeq:Manual:$wgDefaultUserOptions|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:$wgDefaultUserOptions/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:$wgDefaultUserOptions/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:$wgDefaultUserOptions
   |Manual:$wgDefaultUserOptions
 }}

}}}}{{#ifeq:Manual:$wgDefaultUserOptions|

 |

}}

<translate>

How can I make MediaWiki run faster?

</translate>

<translate> See:</translate> {{#ifeq:Manual:Performance tuning|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Performance tuning/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Performance tuning/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Performance tuning
   |Manual:Performance tuning
 }}

}}}}{{#ifeq:Manual:Performance tuning|

 |

}}

<translate>

How do I enable a drop-down list of search suggestions?

</translate>

<translate> See <tvar|1>{{#ifeq:Manual:Enabling autocomplete in search box|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Enabling autocomplete in search box/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Enabling autocomplete in search box/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Enabling autocomplete in search box
   |Manual:Enabling autocomplete in search box
 }}

}}}}{{#ifeq:Manual:Enabling autocomplete in search box|

 |

}} </></translate>

<translate>

Upgrading

</translate>

<translate> See <tvar|1>{{#ifeq:Manual:Upgrading|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Upgrading/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Upgrading/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Upgrading
   |Manual:Upgrading
 }}

}}}}{{#ifeq:Manual:Upgrading|

 |

}} </></translate>

<translate>

Moving

Is it possible to move my wiki to a different machine?

</translate> <translate> Yes.</translate> <translate> It should be.</translate> <translate> In essence, you will be backing up your old installation and then "restoring" it onto the new machine.</translate> <translate> Finally, you will have to make additional modifications to update the wiki configuration so that everything points to the new location.</translate>

<translate>

How do I move my wiki to a different server?

Follow the instructions at Manual:Moving a wiki.

Changing the interface

</translate>

{{#if:How do I change the logo?|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

How do I change the logo?

The logo that appears in the top left of each page is determined by the {{#ifeq:Manual:$wgLogo|

 |

}}{{#if:$wgLogo|$wgLogo|$wgLogo}}{{#ifeq:Manual:$wgLogo|

 |

}} configuration line in the {{#ifeq:Manual:LocalSettings.php|

 |

}}{{#if:LocalSettings.php|LocalSettings.php|LocalSettings.php}}{{#ifeq:Manual:LocalSettings.php|

 |

}} file.

There are two ways to change the logo:</translate>

  1. <translate> Upload a picture to your wiki using the normal file uploading interface.</translate> <translate> This allows the logo to be replaced easily, so you may want to protect the page if you use this method.</translate>
    <translate> Then add the $wgLogo line to LocalSettings.php, for example:</translate>
    <syntaxhighlight lang="php">$wgLogo = "{$wgUploadPath}/6/62/mylogo.png";</syntaxhighlight>
  2. <translate> Upload an image to your server by other means (such as FTP).</translate>
    <translate> Add the $wgLogo line to LocalSettings.php, for example:</translate>
    <syntaxhighlight lang="php">$wgLogo = "{$wgScriptPath}/mylogo.jpg";</syntaxhighlight>
    <translate> (In this example, the image is in the same folder as the LocalSettings.php file.)</translate>

<translate> If you want to change the logo in only specific pages, override #p-logo css's background-image property or use third party extension like <tvar|1>{{#ifeq:Extension:LogoFunctions|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:LogoFunctions/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:LogoFunctions/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Extension:LogoFunctions
   |Extension:LogoFunctions
 }}

}}}}{{#ifeq:Extension:LogoFunctions|

 |

}} </>.</translate>

{{#switch:<translate></translate> | =

{{#if: <translate> Do not simply overwrite the default logo installed with MediaWiki</translate> (/resources/assets/wiki.png); <translate> this file will be overwritten when you upgrade.</translate>|

}}<translate> Caution!</translate> <translate> Caution:</translate> {{#if:<translate> Do not simply overwrite the default logo installed with MediaWiki</translate> (/resources/assets/wiki.png); <translate> this file will be overwritten when you upgrade.</translate>| <translate> Do not simply overwrite the default logo installed with MediaWiki</translate> (/resources/assets/wiki.png); <translate> this file will be overwritten when you upgrade.</translate>

| }}

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Caution|noshift=1}}

}} {{#switch:<translate></translate> | =

{{#if: {{#if:<translate> A good size for a square logo is 135x135px or 150x150px, but the logo need not be square, especially if it contains text below an image.</translate> <translate> The maximum logo size in Vector is ~160x160px, while MonoBook's is ~155x155px.</translate> <translate> A logo that is too large will be cut off.</translate>|<translate> A good size for a square logo is 135x135px or 150x150px, but the logo need not be square, especially if it contains text below an image.</translate> <translate> The maximum logo size in Vector is ~160x160px, while MonoBook's is ~155x155px.</translate> <translate> A logo that is too large will be cut off.</translate>|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />

<translate> A good size for a square logo is 135x135px or 150x150px, but the logo need not be square, especially if it contains text below an image.</translate> <translate> The maximum logo size in Vector is ~160x160px, while MonoBook's is ~155x155px.</translate> <translate> A logo that is too large will be cut off.</translate>
 | <translate> Note</translate> <translate> Note:</translate> }}

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}

}}

<translate>

How do I edit the wiki's CSS?

</translate> <translate> You shouldn't edit the CSS files (such as <tvar|1>common.less</>) directly, because it will make upgrading harder if you need to apply your customizations each time you upgrade the software.</translate> <translate> Instead you need to edit a wiki page called MediaWiki:Common.css if you want to apply your CSS changes for all skins, or a wiki page called MediaWiki:Vector.css if you want to apply the customizations only for the Vector skin.</translate>

<translate> The content of the MediaWiki:Common.css and MediaWiki:Vector.css pages always overrides the default CSS styles specified in the skin files.</translate>

<translate>

How do I hide the left vertical navigation toolbar?

In other words, how do you make the main content div take up 100% of the display, hiding the logo, toolbox, navigation and search engine?

To hide it permanently, copy and paste the following into the MediaWiki:Common.css page: </translate>

<syntaxhighlight lang="css">

  1. column-content { margin: 0 0 .6em 0; }
  2. content { margin: 2.8em 0 0 0; }
  3. p-logo, .generated-sidebar, #p-lang, #p-tb, #p-search { display:none; }
  4. p-cactions { left: .1em; }

</syntaxhighlight>

<translate> To instead hide the toolbar when the user presses F11, enter this in your wiki's MediaWiki:Common.js:</translate>

<syntaxhighlight lang="javascript"> document.onkeydown = function( e ) { if( e == null ) e = event if( testKey( e, 122 ) ) { //F11 appendCSS('#column-content {margin: 0 0 .6em 0;} #content {margin: 2.8em 0 0 0;} #p-logo, .generated-sidebar, #p-lang, #p-tb, #p-search {display:none;} #p-cactions {left: .1em;} #footer {display:none;}'); return false; } }

function testKey( e, intKeyCode ) { if( window.createPopup ) return e.keyCode == intKeyCode else return e.which == intKeyCode } </syntaxhighlight>

<translate>

How do I hide the categories at the bottom of each page?

You can hide display of the categories on each page by modifying your MediaWiki:Common.css and adding: </translate>

<syntaxhighlight lang="css">.catlinks { display: none; }</syntaxhighlight>

<translate>

Can I customize the logo in the top left corner? If so, how?

</translate> <translate> The logo is a portlet block without a pBody section.</translate> <translate> It is identified by the p-logo id.</translate> <translate> The background image is specified by the {{#ifeq:Manual:$wgLogo|

 |

}}{{#if:$wgLogo|$wgLogo|$wgLogo}}{{#ifeq:Manual:$wgLogo|

 |

}} variable, which is defined in {{#ifeq:Manual:DefaultSettings.php|

 |

}}{{#if:DefaultSettings.php|DefaultSettings.php|DefaultSettings.php}}{{#ifeq:Manual:DefaultSettings.php|

 |

}} .</translate> <translate> This location is relative to the web server root and not the system root.</translate> <translate> Redefine this in {{#ifeq:Manual:LocalSettings.php|

 |

}}{{#if:LocalSettings.php|LocalSettings.php|LocalSettings.php}}{{#ifeq:Manual:LocalSettings.php|

 |

}} to change the image.</translate> <translate> If set wrong there will be no image on the page; check your web server error log and adjust accordingly.</translate> <translate> However the size of the p-logo will need to be big enough for the logo if it is not to be clipped.</translate> <translate> This is set in the stylesheet (main.css in Monobook), under the p-logo style, the default setting is:</translate>

<syntaxhighlight lang="css">

  1. p-logo {

z-index: 3; position: absolute; /*needed to use z-index */ top: 0; left: 0; height: 155px; width: 12em; overflow: visible; } </syntaxhighlight>

<translate> Note, if you are using a different sized logo, and want to change the CSS, please do not modify any of the core MediaWiki stylesheets.</translate> <translate> Instead add to the on-wiki css page (MediaWiki:Monobook.css for monobook, MediaWiki:Vector.css for vector. MediaWiki:Common.css will also work for all skins)</translate>

<translate>

Note that a tag is on top of the logo so if you are trying to reduce the size of the logo's portlet you will also need to change the #p-logo a and #p-logo a:hover rules.</translate> <translate> The default setting for these is:</translate>

<syntaxhighlight lang="css">

  1. p-logo a,
  2. p-logo a:hover {

display: block; height: 200px; width: 12.2em; background-repeat: no-repeat; background-position: 35% 50% !important; text-decoration: none; } </syntaxhighlight>

<translate>

How do I customize the link-URL of the site-logo in the top left corner of all pages that activates when the site-logo is clicked upon?

</translate> <translate> By default, clicking the site-logo takes you to the main site-page.</translate> <translate> If you want to change which internal site-page is the "main" site-page, edit MediaWiki:Mainpage.</translate>

<translate> To make the link of the site-logo link externally to any other arbitrary URL, you can add a hook to your LocalSettings.php to override the mainpage href which is used by the logo.</translate>

<syntaxhighlight lang=php> /* Change the main page url used in things like the logo to an absolute url */ $wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL'; function lfChangeMainPageURL( $sk, &$tpl ) { $tpl->data['nav_urls']['mainpage']['href'] = "http://www.your-desired-url.com/"; // Point the main page url to an absolute url return true; }

/* Change the main page url used in things like the logo to a url of another page on the wiki */ $wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL'; function lfChangeMainPageURL( $sk, &$tpl ) { $tpl->data['nav_urls']['mainpage']['href'] = Title::newFromText('ThePage')->getLocalURL(); // Point the main page url to a wiki page's url return true; } </syntaxhighlight>

{{#if:How do I change the icon in the browser's address line (favicon)?|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

How do I change the icon in the browser's address line (favicon)?

  • Simply upload your favicon.ico to the root of your domain/subdomain, make sure file name is in lower case and its name is favicon.ico</translate>

<translate>

  • Alternatively edit the {{#ifeq:Manual:$wgFavicon|
 |

}}{{#if:$wgFavicon|$wgFavicon|$wgFavicon}}{{#ifeq:Manual:$wgFavicon|

 |

}} setting in LocalSettings.php and add</translate> $wgFavicon = "$wgScriptPath/path/to/your/favicon.ico";

<translate> See <tvar|1>{{#ifeq:Manual:$wgFavicon|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:$wgFavicon/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:$wgFavicon/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:$wgFavicon
   |Manual:$wgFavicon
 }}

}}}}{{#ifeq:Manual:$wgFavicon|

 |

}} </> for more details.</translate>

<translate> Tip: The favicon image should be either 16 x 16 pixels or 32 x 32 pixels.</translate>

<translate>

Rewrite Rule

</translate> <translate> If you are using a rewrite rule in .htaccess to remove "index.php" from the URL, you will also need to add an exception for .ico files.</translate> <translate> Simply add the following rule to your .htaccess:</translate>

RewriteRule .*\.ico$ - [L]

<translate> This rule must appear before the index.php rule.</translate>

<translate>

Case sensitivity

</translate> <translate> When uploading the favicon file, be sure the filename is in lowercase. (That is, "favicon.ico", not "Favicon.ico".)</translate> <translate> A lot of servers (e.g., those on UNIX-like operating systems) will not be able to find the file unless its name is in lowercase.</translate>

<translate>

How do I customize the navigation bar?

</translate> <translate> The contents of the navigation bar which appears to the left of each page using the Vector or the Monobook skin are determined by the MediaWiki:Sidebar page there on your wiki.</translate> <translate> For information on customising these, please see Manual:Interface/Sidebar.</translate>

<translate>

How do I put a text message (sitenotice) on every page?

Put a text in the MediaWiki:Sitenotice page. It will be displayed on top of every article page. </translate>

<translate> You can also add text to MediaWiki:Anonnotice to create a message that only displays for logged-out users.</translate> <translate> It is often a good idea to transclude the site notice on the anon notice to make sure that logged-out users still get the information on the site notice.</translate>

{{#if:How do I change which page is the main page?|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

How do I change which page is the main page?

</translate> <translate> By default, MediaWiki looks for a page with the title Main Page and serves this as the default page.</translate> <translate> This can be changed by altering the contents of MediaWiki:Mainpage to point to a different title.</translate> <translate> If this does not change the 'Main Page' link included on the sidebar at install time, edit MediaWiki:Sidebar.</translate>

<translate>

How do I change the Main Page title?

Simply click on the "Move" tab, and move the page to the desired page title.

Usually you also want to [[<tvar|1>#How do I change which page is the main page?</>|change which page is the configured as "main page"]].

How do I hide the main page title?

</translate> <translate> MediaWiki does not have a built-in option to hide the main page title (see {{#switch:<translate></translate> | = {{#if: T8129

 |[[phabricator:{{#ifeq:T|T||T}}T8129|<translate> task <tvar|1>{{#ifeq:T|T||T}}T8129</></translate>]]
 |<translate> Phabricator task number not specified</translate>
 }}

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Phabricator|noshift=1}}

}}), but you can use CSS to hide the title.</translate> <translate> Alternatively, you can use the <tvar|1>{{#ifeq:Extension:NoTitle|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:NoTitle/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:0
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:NoTitle/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:0
   |Extension:NoTitle
   |Extension:NoTitle
 }}

}}}}{{#ifeq:Extension:NoTitle|

 |

}} </> extension.</translate>

<translate> Add the following to MediaWiki:Common.css on your wiki:</translate>

<syntaxhighlight lang="css"> body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; } </syntaxhighlight>

<translate> If your main page uses a localized name or you have renamed the main page you need to change the page-Main_Page part. You can find a correct parameter by viewing HTML source of the main page and searching for the body tag. </translate>

<translate> For example, if your language is Lojban, the body tag looks like this:</translate>

<syntaxhighlight lang="html"> <body class="mediawiki ltr sitedir-ltr ns-4 ns-subject page-uikipedi_as_ralju skin-vector action-view"> </syntaxhighlight>

<translate> Therefore you should put this line in your MediaWiki:Common.css instead:</translate>

<syntaxhighlight lang="css"> body.page-uikipedi_as_ralju.action-view h1.firstHeading, body.page-uikipedi_as_ralju.action-submit h1.firstHeading { display: none; } </syntaxhighlight>

<translate> If you would like to hide the title of a "Main Page" in a specific namespace like "Help:Main_Page" add the following to MediaWiki:Common.css on your wiki:</translate>

<syntaxhighlight lang="css"> body.page-Help_Main_Page.action-view h1.firstHeading, body.page-Help_Main_Page.action-submit h1.firstHeading { display: none; } </syntaxhighlight>

Note the difference: body.page-Help_Main_Page in comparison to body.page-Help:Main_Page. The latter will not work.

<translate> If this doesn't work, you may be using a skin that doesn't support this, or you moved your main page without updating MediaWiki:Mainpage, or you have a really old MediaWiki version.</translate>

<translate> If the skin uses a different element for the title than a h1 element with class firstHeading, you'll need to find the appropriate CSS selector to apply for that skin.</translate>

<translate>

How can I hide the table of contents?

</translate> <translate> The table of contents (TOC) is automatically shown once there are four or more headings in the article.</translate> <translate> There are multiple ways to hide it.</translate>

<translate> For one page</translate>
<translate> Place the magic word __NOTOC__ in the page's wikitext.</translate>
<translate> For all pages</translate>
<translate> Install <tvar|1>{{#ifeq:Extension:NoTOC|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:NoTOC/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:NoTOC/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Extension:NoTOC
   |Extension:NoTOC
 }}

}}}}{{#ifeq:Extension:NoTOC|

 |

}} </></translate>

<translate> or</translate>
<translate> Add the following rule to MediaWiki:Common.css:</translate> <syntaxhighlight lang="css">.toc, #toc { display: none; }</syntaxhighlight>
<translate> Per user</translate>
<translate> Users can add the same CSS rule to their common.css personal stylesheet.</translate>

<translate>

How do I change the interface text?

</translate> <translate> Interface text is altered using the MediaWiki namespace.</translate> <translate> For each deviation from the default in the site language there is a page MediaWiki:Englishmessagename, and for each deviation from the default in each other language a page MediaWiki:Englishmessagename/languagecode.</translate> <translate> (Since release 1.9 there are no pages for messages equal to the default.).</translate> <translate> On creation of a page the edit box autofills with the default.</translate> <translate> When creating a page to override the default it is useful to first save the default version, to allow diffs with it.</translate> <translate> See also <tvar|1>{{#ifeq:帮助:System message|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:帮助|帮助:}}System message/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:帮助|帮助:}}System message/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |System message
   |Help:System message
 }}

}}}}{{#ifeq:帮助:System message|

 |

}} </>.</translate>

<translate>

<translate>

  • To switch off the MediaWiki namespace, see the {{#ifeq:Manual:$wgUseDatabaseMessages|
 |

}}{{#if:$wgUseDatabaseMessages|$wgUseDatabaseMessages|$wgUseDatabaseMessages}}{{#ifeq:Manual:$wgUseDatabaseMessages|

 |

}} configuration setting</translate> <translate>

How do I change the interface language?

To change the default interface language, alter the value of {{#ifeq:Manual:$wgLanguageCode|

 |

}}{{#if:$wgLanguageCode|$wgLanguageCode|$wgLanguageCode}}{{#ifeq:Manual:$wgLanguageCode|

 |

}} in LocalSettings.php, for example </translate>

<syntaxhighlight lang="php">$wgLanguageCode = "fr";</syntaxhighlight>

<translate> You may also need to bypass your browser's cache to see the changes.</translate>

<translate> The new default interface language will be applied to all users who haven't ever customised it.</translate>

<translate> If you want to provide users the possibility to create and choose pages and interface elements in languages other than the default one of the wiki, you need the <tvar|1>{{#ifeq:Extension:Translate|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:Translate/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:0
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:Translate/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:0
   |Extension:Translate
   |Extension:Translate
 }}

}}}}{{#ifeq:Extension:Translate|

 |

}} </> extension, which can make your wiki multilingual.</translate>


<translate> If you want to change the language settings for all existing users, use the <tvar|1>{{#ifeq:Manual:userOptions.php|

 |

}}{{#if:userOptions.php|userOptions.php|userOptions.php}}{{#ifeq:Manual:userOptions.php|

 |

}} </> [[<tvar|2>Special:MyLanguage/Manual:Maintenance scripts</>|maintenance script]].</translate> <translate> For instance, to have all users with English set use French instead, run:</translate>

<syntaxhighlight lang="php"> php userOptions.php language --old en --new fr </syntaxhighlight>

<translate>

How do I remove the article/edit etc tabs?

For a little more control see: User:Subfader/Hide_page_tabs

Edit MediaWiki:Common.css on your wiki, and add this:</translate>

<syntaxhighlight lang="css">li#ca-edit { display: none; }</syntaxhighlight>

<translate> See the page source for the various #ca-* ids used in the content tabs.</translate>

{{#switch:<translate></translate> | = {{#if: {{#if:1>{{#ifeq:Manual:User rights|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:User rights/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:User rights/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:User rights
   |Manual:User rights
 }}

}}}}{{#ifeq:Manual:User rights|

 |

}} </>.</translate>|1>{{#ifeq:Manual:User rights|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:User rights/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:User rights/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:User rights
   |Manual:User rights
 }}

}}}}{{#ifeq:Manual:User rights|

 |

}} </>.</translate>|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />

 | <translate> Note</translate> <translate> Note:</translate> }}

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}

}}

<translate>

How do I add/remove tabs throughout my wiki?

See <tvar|1>{{#ifeq:Manual:User group CSS and JavaScript|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:User group CSS and JavaScript/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:User group CSS and JavaScript/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:User group CSS and JavaScript
   |Manual:User group CSS and JavaScript
 }}

}}}}{{#ifeq:Manual:User group CSS and JavaScript|

 |

}} </> or write your own extension (See: <tvar|2>{{#ifeq:Manual:Hooks/SkinTemplateNavigation|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Hooks/SkinTemplateNavigation/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Hooks/SkinTemplateNavigation/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Hooks/SkinTemplateNavigation
   |Manual:Hooks/SkinTemplateNavigation
 }}

}}}}{{#ifeq:Manual:Hooks/SkinTemplateNavigation|

 |

}} </>):

For example, to remove the talk tab and then add a tab that always goes to the main page you would save this code in</translate> extensions/AR-Tabs.php:

{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|MW version}}|noshift=}} |version=1.21|comment=and after|gerrit change=}} <syntaxhighlight lang="php"> <?php if( !defined( 'MEDIAWIKI' ) ){ die( "This is not a valid access point.\n" ); }

$wgHooks['SkinTemplateNavigation'][] = 'replaceTabs'; function replaceTabs( &$skin, &$links) { // Remove the talk action unset( $links['namespaces']['talk'] ); $maintitle = Title::newFromText( wfMessage( 'mainpage' )->inContentLanguage()->text() ); // Add an additional link $links['namespaces']['main'] = array( 'class' => false, // false or 'selected', defines whether the tab should be highlighted 'text' => wfMessage( 'sitetitle' )->text(), // what the tab says 'href' => $maintitle->getFullURL(), // where it links to 'context' => 'main', ); return true; } </syntaxhighlight>

<translate> and then add</translate>

<syntaxhighlight lang="php">require_once("extensions/AR-Tabs.php");</syntaxhighlight>

<translate> to the bottom of LocalSettings.php</translate>

<translate>

How do I remove a tab on only one page?

</translate> {{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|MW version}}|noshift=}} |version=1.9|comment=and after|gerrit change=}} <translate> For example, to remove the Discussion (talk) page tab from the Main Page, on the MediaWiki:Common.css page add:</translate> <syntaxhighlight lang="css"> body.page-Main_Page li#ca-talk { display: none !important; } </syntaxhighlight>

<translate> To modify <tvar|1>MediaWiki:Common.css</> you must be an <tvar|2>{{#ifeq:Manual:interface administrator|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:interface administrator/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:0
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:interface administrator/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:0
   |Manual:interface administrator
   |Manual:interface administrator
 }}

}}}}{{#ifeq:Manual:interface administrator|

 |

}} </>.</translate>

<translate> See also:</translate> {{#ifeq:Manual:Hide page tabs|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Hide page tabs/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Hide page tabs/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Hide page tabs
   |Manual:Hide page tabs
 }}

}}}}{{#ifeq:Manual:Hide page tabs|

 |

}}

<translate>

How do I remove a tab on all pages

</translate> {{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|MW version}}|noshift=}} |version=1.9|comment=and after|gerrit change=}} <translate> For example, to remove the Discussion (talk) page tab on all wikipages, on the MediaWiki:Common.css page add:</translate>

<syntaxhighlight lang="css">

  1. ca-talk { display:none!important; }

</syntaxhighlight>

<translate> Other tabs to remove are #ca-history, #ca-viewsource, #ca-view (Read tab), #ca-nstab-main (Page tab).</translate>

<translate> Other drop down menu items you can remove are #ca-watch, #ca-move, #ca-delete.</translate>

<translate> To modify <tvar|1>MediaWiki:Common.css</> you must be an <tvar|2>{{#ifeq:Manual:interface administrator|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:interface administrator/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:0
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:interface administrator/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:0
   |Manual:interface administrator
   |Manual:interface administrator
 }}

}}}}{{#ifeq:Manual:interface administrator|

 |

}} </>.</translate>

<translate> ===How do I remove the "Talk for this IP" link at the top right (e.g. when <tvar|1>{{#ifeq:Manual:$wgDisableAnonTalk|

 |

}}{{#if:$wgDisableAnonTalk|$wgDisableAnonTalk|$wgDisableAnonTalk}}{{#ifeq:Manual:$wgDisableAnonTalk|

 |

}} </> is true)?===

One option is to hide the link using the following CSS in the wiki page MediaWiki:Common.css in your wiki: </translate>

<syntaxhighlight lang="css">

  1. p-personal #pt-anonuserpage {
   display: none;

} </syntaxhighlight>

<translate> Another option is, inside your LocalSettings.php file, to use the PersonalUrls hook to remove the link to the talk page of anonymous users:</translate>

<syntaxhighlight lang=php> $wgHooks['PersonalUrls'][] = 'lfRemoveAnonUserpageLink'; function lfRemoveAnonUserpageLink( &$personal_urls, $title ) { unset( $personal_urls['anonuserpage'] ); return true; } </syntaxhighlight>

<translate>

How do I remove the "Create an Account or Login" link at the top right of the screen?

To remove the login / create account links from the personal_urls you can use this code in your LocalSettings.php to hook in and remove them: </translate>

<syntaxhighlight lang=php> $wgHooks['PersonalUrls'][] = 'lfRemoveLoginLink'; function lfRemoveLoginLink( &$personal_urls, $title ) { unset( $personal_urls['login'] ); unset( $personal_urls['anonlogin'] ); unset( $personal_urls['createaccount'] ); return true; } </syntaxhighlight>

<translate>

How can I suppress actions and special pages?

</translate>

{{#switch:<translate></translate> | =

{{#if: {{#if:<translate> MediaWiki is not designed for this kind of usage!</translate> <translate> It should be noted that the following 'answer' is a hack that only 'works' with the Apache webserver.</translate> <translate> Note also that this system is not foolproof, it's just one step further than hiding the links (see above).</translate>|<translate> MediaWiki is not designed for this kind of usage!</translate> <translate> It should be noted that the following 'answer' is a hack that only 'works' with the Apache webserver.</translate> <translate> Note also that this system is not foolproof, it's just one step further than hiding the links (see above).</translate>|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />

<translate> MediaWiki is not designed for this kind of usage!</translate> <translate> It should be noted that the following 'answer' is a hack that only 'works' with the Apache webserver.</translate> <translate> Note also that this system is not foolproof, it's just one step further than hiding the links (see above).</translate>
 | <translate> Note</translate> <translate> Note:</translate> }}

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}

}}

<translate> Suppressing actions and special pages can be useful when you want to create the illusion of a static website via a particular URL or VirtualHost, but also have an 'internal' view that is a true wiki.</translate> <translate> i.e. if you have an inward facing 'view' of your wiki that users can edit, and an outward facing 'view' that should appear like a static website (no history, no discussion, etc., etc.).</translate>

<translate> After hiding all the appropriate links (see above), if you are using the Apache web server, you can disable actions and special pages using the following rewrite rules:</translate>

# Lock down the site (disable MediaWiki commands)

RewriteEngine On

#RewriteLog /tmp/rewrite.log

#RewriteLogLevel 9

## See https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Parameters_to_index.php#Actions

RewriteCond %{QUERY_STRING} (.*action=.*)
RewriteRule .* http://www.my.domain.com?

RewriteCond %{REQUEST_URI} !^/index.php/Special:Search
RewriteCond %{REQUEST_URI}  ^(.*Special:.*)
RewriteRule .* http://www.my.domain.com?

## Catch a trick...
RewriteCond %{QUERY_STRING} ^(.*Special:.*)
RewriteRule .* http://www.my.domain.com?

<translate> Above, a request for <tvar|1>'http://www.my.domain.com/wiki/Page_name?action=edit'</>, for example, will be simply rewritten to <tvar|2>'http://www.my.domain.com'</>.</translate> <translate> Similarly any page in the Special namespace (with the exception of Special:Search) will be rewritten to <tvar|1>'http://www.my.domain.com'</>.</translate> <translate> Remember, this is only a hack, and isn't intended as a solution for a secure CMS.</translate>

<translate> Note that you will need to adjust the above rules to match your specific URL naming schema.</translate>

<translate> Other issues to consider when trying to lock down a site like this is the API and POST requests for the wiki content (rather than GET).</translate>

<translate>

How do I edit error messages?

Special:Allmessages contains a complete list of messages (error or otherwise), that can be edited.</translate>

<translate>

How do I change the footer?

</translate>

<translate> See:</translate> {{#ifeq:Manual:Footer|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Footer/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Footer/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Footer
   |Manual:Footer
 }}

}}}}{{#ifeq:Manual:Footer|

 |

}} , {{#ifeq:Manual:Configuration settings|

 |

}}{{#if:<translate> Manual:Configuration settings#Copyright</translate>|<translate> Manual:Configuration settings#Copyright</translate>|<translate> Manual:Configuration settings#Copyright</translate>}}{{#ifeq:Manual:Configuration settings|

 |

}}

{{#if:powered-by-mw-image|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

How can I edit / remove the Powered by MediaWiki image (and possible other images) from the footer?

You can hide the Powered by MediaWiki image by adding the following to your wiki's MediaWiki:Common.css: </translate>

<syntaxhighlight lang="css">

  1. footer-poweredbyico { display: none; }

</syntaxhighlight>

<translate> If you want to remove it completely, you can use $wgFooterIcons to remove it using this in your LocalSettings.php:</translate> <syntaxhighlight lang=php>unset( $wgFooterIcons['poweredby'] );</syntaxhighlight>


Note that this will also remove other powered-by icons, e.g. also the one coming from BlueSpice.

<translate> If you wish to change the icon images, urls, alt text, or add new icons please see $wgFooterIcons' documentation.</translate>

<translate>

How do I add a reply link to default signature tildes (<tvar|1>~~~~</>) template?

You can customize signatures in MediaWiki:Signature / MediaWiki:Signature-anon.

For example, changing the entries to [[{{ns:user}}:$1|$2]] ([[{{ns:user_talk}}:$1|talk]]) will put a link to users' talk pages and [[{{ns:user}}:$1|$2]] ([{{fullurl:{{ns:user_talk}}:$1|action=edit&section=new}} Reply]) would give a more direct link.

Users can change their signature in their preferences.

How can I change what the <title> of each page is? Where do I make changes?

Most of the text that you want to change can be found in the namespace of MediaWiki. </translate>

<translate> In order to change titles, texts, announcements, etc., go to Special:AllMessages, where you will see the text associated with the pages you wish to change.</translate> <translate> You need to log in as an administrator to edit the protected entries in the MediaWiki namespace.</translate>

<translate> If you want to change the title in your browser, you need to edit MediaWiki:Pagetitle.</translate> <translate> Go there and edit it just like you would any other page in your wiki.</translate>

<translate> In recent versions of MediaWiki, MediaWiki:Pagetitle is <tvar|1>$1 - {{SITENAME}}</> by default. If <tvar|2>{{SITENAME}}</> is producing the wrong text for you, you need to set <tvar|3>{{#ifeq:Manual:$wgSitename|

 |

}}{{#if:$wgSitename|$wgSitename|$wgSitename}}{{#ifeq:Manual:$wgSitename|

 |

}} </> in your <tvar|4>LocalSettings.php</>.</translate>

<translate> Don't forget to clear your browser cache after you change your settings.</translate>

<translate>

Does MediaWiki automatically capitalize the first letter of $wgSitename?

</translate> <translate> Yes.</translate> <translate> This can be changed using the <tvar|1>{{#ifeq:Manual:$wgCapitalLinks|

 |

}}{{#if:$wgCapitalLinks|$wgCapitalLinks|$wgCapitalLinks}}{{#ifeq:Manual:$wgCapitalLinks|

 |

}} </> configuration setting.</translate>

<translate>

How do I make external links open in a new window?

</translate>

<translate> See <tvar|1>{{#ifeq:Manual:$wgExternalLinkTarget|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:$wgExternalLinkTarget/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:$wgExternalLinkTarget/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:$wgExternalLinkTarget
   |Manual:$wgExternalLinkTarget
 }}

}}}}{{#ifeq:Manual:$wgExternalLinkTarget|

 |

}} </></translate>

<translate>

How can I suppress MediaWiki from formatting URLs, tags, etc?

Put "<tvar|nowiki>{{#if:|

|

}}{{#switch:pair

|c|close  = 
|s|single
|o|open
|p|pair   = <nowiki{{#if:| {{{params}}}}}

}}{{#switch:pair

|c|close  = 
|s|single =  />
|o|open   = >
|p|pair   = >

}}{{#switch:pair

|s|single
|o|open   = 
|c|close
|p|pair   = </nowiki>

}}{{#if:|

|

}}</>" tags around the URL or tag.

Example:</translate>

svn co <nowiki>http://svn.example.com/myproject/</nowiki>

<translate> Produces:</translate>
svn co http://svn.example.com/myproject/

<translate>

How can I force users to preview before they save?

</translate>

<translate> See:</translate> {{#ifeq:Manual:Force preview|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Force preview/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Force preview/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Force preview
   |Manual:Force preview
 }}

}}}}{{#ifeq:Manual:Force preview|

 |

}} , {{#ifeq:Extension:ForcePreview|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:ForcePreview/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:ForcePreview/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Extension:ForcePreview
   |Extension:ForcePreview
 }}

}}}}{{#ifeq:Extension:ForcePreview|

 |

}}

<translate>

How do I add more buttons on the edit page?

</translate>

<translate> See:</translate> {{#ifeq:Manual:Custom edit buttons|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Custom edit buttons/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Custom edit buttons/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Custom edit buttons
   |Manual:Custom edit buttons
 }}

}}}}{{#ifeq:Manual:Custom edit buttons|

 |

}}

<translate>

How can I get more special characters or tags clickable on the edit page?

For adding more selectable special characters, etc., below the edit field, see <tvar|1>{{#ifeq:Extension:CharInsert|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:CharInsert/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:CharInsert/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Extension:CharInsert
   |Extension:CharInsert
 }}

}}}}{{#ifeq:Extension:CharInsert|

 |

}} </>.

How can I use a different skin (e.g. Wikipedia's old Monobook skin) on my wiki?

</translate> {{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|MW version}}|noshift=}} |version=1.16|comment=and after|gerrit change=}} <translate> While the Vector skin is the default skin for all installations made with MediaWiki 1.17 and newer, the Monobook skin has been the default before.</translate> <translate> See <tvar|1>{{#ifeq:Manual:$wgDefaultSkin|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:$wgDefaultSkin/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:$wgDefaultSkin/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:$wgDefaultSkin
   |Manual:$wgDefaultSkin
 }}

}}}}{{#ifeq:Manual:$wgDefaultSkin|

 |

}} </> for more information on configuring your default skin.</translate>

<translate>

How do I disable external links from showing in the printable version of a page?

Edit the page MediaWiki:Print.css on your wiki and add the following code there:</translate>

<syntaxhighlight lang="css">

  1. content a.external.text:after,
  2. content a.external.autonumber:after {

content: none; } </syntaxhighlight>

<translate> This will override the styles defined in the CSS files coming with the MediaWiki source code.</translate> <translate> For more information, see <tvar|1>{{#ifeq:Manual:CSS|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:CSS/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:CSS/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:CSS
   |Manual:CSS
 }}

}}}}{{#ifeq:Manual:CSS|

 |

}} </>.</translate>

<translate> If instead you want to have the external links underlined in the printable version, then also add the following code:</translate>

<syntaxhighlight lang="css">

  1. content a.external {
   text-decoration: underline !important;

} </syntaxhighlight>

<translate>

How do I print footnotes at the bottom of each printed page?

Try this StackOverflow solution: [<tvar|url>https://stackoverflow.com/a/23622470</> Printed HTML per-page footnotes] </translate>

{{#if:How do I change the text of the tab of my wikis main page?|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

How do I change the text of the article (page name) tab of my wiki's main page?

</translate>

<translate> To change the text of the tab, as one example used in Wikipedia, you first open the page "<tvar|1>MediaWiki:Mainpage-nstab</>".</translate>

<translate> After you've done that, click Edit and type in the edit box the text you want to be seen later on the main page - that's it.</translate> <translate> Don't forget to save the page as well.</translate>

<translate>

Basic usage

How do I edit a page?

</translate> <translate> To edit a page, simply click the edit link that appears on each page.</translate> <translate> Using the default Vector skin, this is in the form of a tab at the top of the page.</translate> <translate> A form will appear, containing the existing markup.</translate> <translate> When you have finished making modifications, click the Save button to commit your changes.</translate>

<translate> See also:</translate> {{#ifeq:帮助:Editing pages|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:帮助|帮助:}}Editing pages/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:帮助|帮助:}}Editing pages/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Editing pages
   |Help:Editing pages
 }}

}}}}{{#ifeq:帮助:Editing pages|

 |

}}

<translate>

How do I create a new page?

There are several ways to create a new page:

  • Create a link to the page on another page, then click on the red link which appears</translate>

<translate>

  • Browse to the intended location of the page, e.g. http://www.example.com/index.php?title=New_page and click on the "Edit", "Create" or "Create source" link.

On some wikis, a failed search for a page will contain a link which allows you to edit that page. </translate>

<translate> See also:</translate> {{#ifeq:帮助:Starting a new page|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:帮助|帮助:}}Starting a new page/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:帮助|帮助:}}Starting a new page/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Starting a new page
   |Help:Starting a new page
 }}

}}}}{{#ifeq:帮助:Starting a new page|

 |

}}

<translate>

How do I delete an old version of a page?

</translate> <translate> Old versions of page data are retained in the database and can be accessed via the page history features.</translate> <translate> This is useful for reviewing changes and correcting or reverting undesirable ones, but in some cases, administrators might want to make this information unavailable, for legal reasons, or to reduce the size of the database.</translate>

<translate>

  • Administrators can delete an old revision of a page by deleting the page, and then selectively undeleting revisions to be kept</translate>

<translate>

  • For newer MediaWikis (1.14+), you can enable the core RevisionDelete feature that allows privileged users to remove single revisions from page histories.</translate>

<translate>

  • The <tvar|1>maintenance/{{#ifeq:Manual:deleteOldRevisions.php|
 |

}}{{#if:deleteOldRevisions.php|deleteOldRevisions.php|deleteOldRevisions.php}}{{#ifeq:Manual:deleteOldRevisions.php|

 |

}} </> [[<tvar|2>Special:MyLanguage/Manual:Maintenance scripts</>|maintenance script]] can mass-delete all old revisions of pages and their associated text records. </translate>

<translate> See also:</translate> {{#ifeq:Manual:Removing embarrassment|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Removing embarrassment/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Removing embarrassment/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Removing embarrassment
   |Manual:Removing embarrassment
 }}

}}}}{{#ifeq:Manual:Removing embarrassment|

 |

}}

<translate>

How do I use oversight/delete revisions in the page history?

</translate>

<translate> See:</translate> {{#ifeq:RevisionDelete|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}RevisionDelete/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}RevisionDelete/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |RevisionDelete
   |RevisionDelete
 }}

}}}}{{#ifeq:RevisionDelete|

 |

}}

<translate> You can also delete a page, and then restore only the revisions you want.</translate>

<translate>

Are there any editing tutorials available?

</translate> <translate> There are several editing tutorials available, mostly on Wikimedia sister projects, such as Wikipedia.</translate> <translate> There are also markup references, etc. available on Meta.</translate>

<translate>

<translate>

  • Editing help content on Meta</translate>

<translate>

How do I view the printable form of a page?

MediaWiki includes stylesheets which automatically style a page appropriately when it is printed; using the print or print preview function within your browser ought to render the page in a printable form.

You can also view this printable form using the printable version link in the sidebar under Toolbox or Print/export if using the <tvar|1>{{#ifeq:Extension:Collection|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:Collection/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:0
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:Collection/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:0
   |Extension:Collection
   |Extension:Collection
 }}

}}}}{{#ifeq:Extension:Collection|

 |

}} </> extension.

How do I use templates?

</translate>

<translate> See <tvar|1>{{#ifeq:帮助:Templates|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:帮助|帮助:}}Templates/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:帮助|帮助:}}Templates/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Templates
   |Help:Templates
 }}

}}}}{{#ifeq:帮助:Templates|

 |

}} </></translate>

<translate>

Can I use media (images, video, audio, etc.) from [[<tvar|1>m:Special:MyLanguage/Wikimedia Commons</>|Wikimedia Commons]] in my installed version of MediaWiki?

Yes, this is encouraged through the use of <tvar|1>{{#ifeq:Manual:$wgUseInstantCommons|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:$wgUseInstantCommons/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:$wgUseInstantCommons/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:$wgUseInstantCommons
   |Manual:$wgUseInstantCommons
 }}

}}}}{{#ifeq:Manual:$wgUseInstantCommons|

 |

}} </>. </translate>

<translate> See also:</translate> {{#ifeq:InstantCommons|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}InstantCommons/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}InstantCommons/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |InstantCommons
   |InstantCommons
 }}

}}}}{{#ifeq:InstantCommons|

 |

}}

<translate>

How do I use a template as a signature?

</translate> <translate> When you look at your preferences, you see a check box for "raw signature."</translate> <translate> But the field will only take a certain number of characters.</translate> <translate> What if you want more?</translate>

<translate> You will need to create two pages, possibly in your userspace.</translate>

  1. <translate> Create the first page (FIRST PAGE)</translate>
  2. <translate> Go to your preferences, check "raw signature" and put <tvar|1>{{FIRST PAGE}}</> in the signature.</translate> {{#invoke:Int|renderIntMessage|saveprefs|lang=}}
  3. <translate> Create a second page (SECOND PAGE) (possibly a sub-page of the first)</translate>
  4. <translate> Go back to the first page (FIRST PAGE) and do <tvar|1>{{SECOND PAGE}}</></translate>
  5. <translate> Go to the second page (SECOND PAGE) and place the code you wish to have for your signature.</translate>

<translate> If you don't have this structure, you will still be inserting all your signature code into the raw code wherever your signature is used, because the software will insert "SUBST" in your preferences.</translate> <translate> You may not mind this, in which case you only need one page.</translate> <translate> If you want the raw code to only display <tvar|1>{{FIRST PAGE}}</>, which looks a lot cleaner, then you need to use the two-page structure.</translate>

<translate>

How do I add the sandbox functionality to my installation of the wiki?

</translate> <translate> In wiki terms, a sandbox is simply a "play pen"; a page which users can mess about in.</translate> <translate> This is an ordinary page created in the normal manner, and can be located wherever you like.</translate> <translate> There is no special sandbox functionality built into MediaWiki.</translate>

<translate> Users often inquire about the Wikipedia sandboxes, which seem to be self-emptying.</translate> <translate> This is not quite correct; there are a number of volunteers who run bots to clean these up and return them to a certain state at regular time intervals.</translate>

<translate>

How do I add a "Sandbox" link to personal tools (top right)?

You need to install the <tvar|1>{{#ifeq:Extension:SandboxLink|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:SandboxLink/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:0
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:SandboxLink/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:0
   |Extension:SandboxLink
   |Extension:SandboxLink
 }}

}}}}{{#ifeq:Extension:SandboxLink|

 |

}} </> extension.

How do I make my wiki serve all languages?

To make your wiki multilingual and a tool for translation, allowing translation of pages and of the custom interface (like the sidebar), use the <tvar|1>{{#ifeq:Extension:Translate|

 |

}}{{#if:Translate|Translate|Translate}}{{#ifeq:Extension:Translate|

 |

}} </> extension; there's extensive documentation. </translate>

{{#if:Wiki importing|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

Wiki importing

Importing from MediaWiki XML dumps

</translate>

<translate> See:</translate> {{#ifeq:Manual:Importing XML dumps|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Importing XML dumps/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Importing XML dumps/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Importing XML dumps
   |Manual:Importing XML dumps
 }}

}}}}{{#ifeq:Manual:Importing XML dumps|

 |

}}

<translate>

Importing from other types of wiki software

</translate>

{{#switch:<translate></translate> | = <templatestyles src="Template:Ambox/styles.css" /> {{#invoke:Message box|ambox}} [[Category:Outdated pages{{#translation:}}]] | #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Update|noshift=1}}

}}

<translate> There is some documentation about importing in the UPGRADE file distributed with MediaWiki.</translate>

<translate> To follow on from those, this is how at least one individual imported pages from usemod to MediaWiki:</translate>

<translate> Because MediaWiki does not automatically link to CamelCase style links, you will need to add brackets [[ ]] to all your links.</translate> <translate> You can do this with the following:</translate>

<translate> First, obtain ImportStage1.txt (or whatever you want to call it) from the importUseModWiki.php script ( use > to pipe the output to a file )</translate>

<translate> Second, do</translate>

sed '/Importing/!s/\ [A-Z]\w*[a-z]\w*[A-Z]\w*[a-zA-Z]/\ \[\[&\]\] /g'
    ImportStage1.txt > ImportStage2.txt

<translate> This should create proper links in place of your CamelCase links.</translate>

<translate> This doesn't work so well for SubPage links - someone care to fix?</translate>

<translate> Then,</translate>

sed 's/upload\:\w*\.\w*/http\:\/\/aberwiki\.org\/uploads\/& /g'
    ImportStage2.txt > ImportStage3.txt

<translate> This fixes your upload links.</translate> <translate> Change the replace text so it fills in your url such as http://www.yourwiki.org/uploads/filename</translate>

<translate> You are now ready to import ImportStage3.txt into your database with a command such as</translate>

mysql -u<mysqluser> -p<yourpass> <db name> < ImportStage3.txt

{{#switch:<translate></translate> | =

{{#if: {{#if:<translate> If your importUseModWiki.php outputs an XML file instead of SQL statements, this probably means you have a rather new version of MediaWiki.</translate> <translate> In such a case, you can import the XML file -- see Importing a Wikipedia database dump into MediaWiki, towards the bottom of the page ('Import XML').</translate> <translate> Don't forget to rebuild all the tables -- that page also explains how to do that.</translate>|<translate> If your importUseModWiki.php outputs an XML file instead of SQL statements, this probably means you have a rather new version of MediaWiki.</translate> <translate> In such a case, you can import the XML file -- see Importing a Wikipedia database dump into MediaWiki, towards the bottom of the page ('Import XML').</translate> <translate> Don't forget to rebuild all the tables -- that page also explains how to do that.</translate>|{{#if:|demo|}} }} | <templatestyles src="Note/styles.css" />

<translate> If your importUseModWiki.php outputs an XML file instead of SQL statements, this probably means you have a rather new version of MediaWiki.</translate> <translate> In such a case, you can import the XML file -- see Importing a Wikipedia database dump into MediaWiki, towards the bottom of the page ('Import XML').</translate> <translate> Don't forget to rebuild all the tables -- that page also explains how to do that.</translate>
 | <translate> Note</translate> <translate> Note:</translate> }}

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}

}}

<translate>

Importing from other types of files

There are a variety of tools available to help convert content from HTML (and other formats) to MediaWiki markup.</translate>

<translate> Developer and SysAdmin tools</translate>

<translate>

<translate>

  • Wikificator - a JavaScript MediaWiki extension that converts XHTML to MediaWiki markup.</translate>

<translate>

  • The <tvar|1>{{#ifeq:Manual:Edit.php|
 |

}}{{#if:Edit.php|Edit.php|Edit.php}}{{#ifeq:Manual:Edit.php|

 |

}} </> and <tvar|2>{{#ifeq:Manual:importImages.php|

 |

}}{{#if:importImages.php|importImages.php|importImages.php}}{{#ifeq:Manual:importImages.php|

 |

}} </> [[<tvar|3>Special:MyLanguage/Manual:Maintenance scripts</>|maintenance scripts]] can be used to import text and images into MediaWiki.</translate>

<translate> End-user tools</translate>

<translate>

  • wikEd - a text editor for MediaWiki that can import HTML (including Microsoft Word-generated HTML.)</translate>
<translate> Instructions</translate>

<translate>

<translate>

MediaWiki auto importing script

Taken from wiki_import - MediaWiki auto import script:

Description

The script is designed to import a whole folder of files into MediaWiki, with the folder directory tree mapped as wiki category hierarchy.

Features

  • economic, build wiki site from existing knowledge base collection without "double-entry"</translate>

<translate>

  • persistent, map folder directory tree as wiki category hierarchy</translate>

<translate>

  • sophisticated, import/handle all well-known file types automatically</translate>

<translate>

  • complete, cover every applicable scenario, even the case when you need to control access to individual wiki pages</translate>

<translate>

  • versatile, highly customizable

Quick Help

</translate>

wiki_import.sh $ $Revision: 1.1 $

<translate> mediawiki automatic file import script</translate>

<translate> Usage:</translate> wiki_import.sh [OPTIONS]...

<translate> The script is designed to import a whole folder of files into mediawiki, with the folder directory tree mapped as wiki category hierarchy.

The specification of the file-to-import is passed from standard input.

Options:</translate>

 -s, --sect=n     <translate> the root category section of the wiki of the imported article (mandatory)</translate>
 -1, --header     <translate> include standard header (category hierarchy path & notice)</translate>
 -l, --link       <translate> link to actual file on the web site</translate>
 -f, --footer     <translate> include standard footer (article category)</translate>
 -R, --res[=p]    <translate> add restricted tag in the footer as</translate>
                    '{{<Res Param|Root Category> Restricted}}' (default=`$_opt_sect')

<translate> Configuration Options:</translate>

 -p, --php=fn     <translate> mediawiki import php script specification</translate>
 -r, --root=n     <translate> the root category name for the whole wiki site</translate>
 -m, --max=n      <translate> max_allowed_packet for mysqld to import</translate>
 -u, --user=n     <translate> wiki user used for the import</translate>
 -a, --arch=p     <translate>

the root url that linked-to archive files based on

Examples:</translate>

 echo ./path/to/file.ext | wiki_import.sh -1 -l -f -s 'Customer Support' -R 

<translate> For the rest of details, check out wiki_import.</translate>

{{#if:Templates imported from other wikis (such as Wikipedia) don't work for me|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

Templates imported from other wikis (such as Wikipedia) don't work for me

</translate> <translate> You probably need to install some extensions used on the source wiki, such as <tvar|3>{{#ifeq:Extension:Scribunto|

 |

}}{{#if:Scribunto|Scribunto|Scribunto}}{{#ifeq:Extension:Scribunto|

 |

}} </>, <tvar|4>{{#ifeq:Extension:TemplateStyles|

 |

}}{{#if:TemplateStyles|TemplateStyles|TemplateStyles}}{{#ifeq:Extension:TemplateStyles|

 |

}} </>, <tvar|1>{{#ifeq:Extension:ParserFunctions|

 |

}}{{#if:ParserFunctions|ParserFunctions|ParserFunctions}}{{#ifeq:Extension:ParserFunctions|

 |

}} </> or sometimes <tvar|2>{{#ifeq:Extension:Cite|

 |

}}{{#if:Cite|Cite|Cite}}{{#ifeq:Extension:Cite|

 |

}} </>.</translate> <translate> Also, make sure that you copied all site CSS and JavaScript required by the template.</translate>

<translate>

Customising further

I want to have multiple wikis, but only require registration once

  • If you're starting from scratch or you're switching from one wiki to multiple, you can use <tvar|1>{{#ifeq:Manual:$wgSharedDB|
 |

}}{{#if:$wgSharedDB|$wgSharedDB|$wgSharedDB}}{{#ifeq:Manual:$wgSharedDB|

 |

}} </> and <tvar|2>{{#ifeq:Manual:$wgSharedTables|

 |

}}{{#if:$wgSharedTables|$wgSharedTables|$wgSharedTables}}{{#ifeq:Manual:$wgSharedTables|

 |

}} </> to have all wikis share the user table of the "main" wiki.</translate> <translate> You can share other tables as well, as long as they don't contain any data dependent on non-shared tables or data specific to one wiki.</translate> <translate> See Manual:Shared database for examples and more information.</translate> <translate>

  • If your wikis are already established and you want to switch to a single sign-on, you can use the <tvar|1>{{#ifeq:Extension:CentralAuth|
 |

}}{{#if:CentralAuth|CentralAuth|CentralAuth}}{{#ifeq:Extension:CentralAuth|

 |

}} </> extension.</translate> <translate> It has a few more features than a shared user table, but it's more difficult to configure and it's tailored toward a Wikimedia-style setup.</translate> <translate> However, it is easier than attempting to completely merge multiple user tables into one.

How can I allow use of HTML tags?

See <tvar|1>{{#ifeq:Manual:$wgRawHtml|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:$wgRawHtml/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:$wgRawHtml/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:$wgRawHtml
   |Manual:$wgRawHtml
 }}

}}}}{{#ifeq:Manual:$wgRawHtml|

 |

}} </> as well as <tvar|2>{{#ifeq:Manual:$wgGroupPermissions|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:$wgGroupPermissions/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:$wgGroupPermissions/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:$wgGroupPermissions
   |Manual:$wgGroupPermissions
 }}

}}}}{{#ifeq:Manual:$wgGroupPermissions|

 |

}} {{#invoke:Int|renderIntMessage|and|lang=}}{{#invoke:Int|renderIntMessage|word-separator|lang=}}{{#ifeq:Manual:Preventing access|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Preventing access/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Preventing access/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Preventing access
   |Manual:Preventing access
 }}

}}}}{{#ifeq:Manual:Preventing access|

 |

}} </>. </translate>

{{#switch:<translate></translate> | =

{{#if: <translate> This can be easily abused to attack users</translate>|

}}<translate> Caution!</translate> <translate> Caution:</translate> {{#if:<translate> This can be easily abused to attack users</translate>| <translate> This can be easily abused to attack users</translate>

| }}

| #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Caution|noshift=1}}

}}

<translate> See <tvar|1>{{#ifeq:Extension:Secure HTML|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:Secure HTML/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:Secure HTML/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Extension:Secure HTML
   |Extension:Secure HTML
 }}

}}}}{{#ifeq:Extension:Secure HTML|

 |

}} </> and <tvar|2>{{#ifeq:Extension:HTMLets|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:HTMLets/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:HTMLets/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Extension:HTMLets
   |Extension:HTMLets
 }}

}}}}{{#ifeq:Extension:HTMLets|

 |

}} </> for ways to make this safer.</translate>

<translate>

How do I fix problems or add features to MediaWiki?

The basic steps to improving MediaWiki (that is, becoming a MediaWiki developer) are:

  • Install Git</translate>

<translate>

  • Download the Git "clone" of the MediaWiki source code</translate>

<translate>

  • Get a server, a database, and PHP running on your computer (this can be annoying, so please ask for help if something isn't working)</translate>

<translate>

  • Get MediaWiki running on your computer off that Git checkout (can be annoying as well, so, ditto)</translate>

<translate>

  • Fix the problem or add the feature you were thinking of</translate>

<translate>

  • Edit the source code of the relevant file(s) to fix the problem</translate>

<translate>

How do I run a bot?

</translate>

<translate> See:</translate> {{#ifeq:Manual:Bots|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Bots/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Bots/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Bots
   |Manual:Bots
 }}

}}}}{{#ifeq:Manual:Bots|

 |

}} <translate> You might want to use the <tvar|1>{{#ifeq:Manual:Pywikibot|

 |

}}{{#if:Pywikibot|Pywikibot|Pywikibot}}{{#ifeq:Manual:Pywikibot|

 |

}} </> framework.</translate>

<translate>

How do I change noindex nofollow

Set <tvar|code>{{#ifeq:Manual:$wgNoFollowLinks|

 |

}}{{#if:$wgNoFollowLinks|$wgNoFollowLinks|$wgNoFollowLinks}}{{#ifeq:Manual:$wgNoFollowLinks|

 |

}} = false;</> in <tvar|1>{{#ifeq:Manual:LocalSettings.php|

 |

}}{{#if:LocalSettings.php|LocalSettings.php|LocalSettings.php}}{{#ifeq:Manual:LocalSettings.php|

 |

}} </>

How do I create a small wiki farm?

</translate>

<translate> See:</translate> {{#ifeq:Manual:Wiki family|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Wiki family/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Wiki family/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Wiki family
   |Manual:Wiki family
 }}

}}}}{{#ifeq:Manual:Wiki family|

 |

}}

<translate>

How do I add meta tags?

</translate> <translate> The OutputPage class includes an addMeta method which can be used to add meta tags.</translate> <translate> The RequestContext can be used to get the relevant OutputPage object.</translate>

<translate> To add further Meta tags just add further lines as last lines of the function addMetaTags() like:</translate>

$out->addMeta ( 'description', 'This is a meta description.' );

<translate>

Why...?

…is the Help namespace empty?

</translate> <translate> The Help namespace currently ships in a blank state.</translate> <translate> It's up to you how much or how little help you give to your site visitors and whether this relates to other aspects of your site.</translate> <translate> Obviously you can easily link your visitors to help resources elsewhere.</translate>

<translate> We don't currently have a clean, internationalised set of help pages under a free license.</translate> <translate> However, if you want to copy in some help information onto your site, about how to use a wiki (a MediaWiki powered wiki) you are free to copy the <tvar|1>{{#ifeq:帮助:Contents|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:帮助|帮助:}}Contents/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:帮助|帮助:}}Contents/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Contents
   |Help:Contents
 }}

}}}}{{#ifeq:帮助:Contents|

 |

}} </> from this wiki.</translate> <translate> This set of pages have been deliberately created for this purpose, with wiki-neutral information, and no license restrictions.</translate> <translate> See Project:PD help. More help is available at the Meta-Wiki MediaWiki Handbook.</translate>

<translate>

…are some of my images not showing up after an upgrade?

</translate> <translate> Several users have reported that, following an upgrade or a moving of their wiki, several images fail to be shown inline.</translate> <translate> The files exist, and the image description pages show a MIME type of <tvar|1>unknowncode>/unknown</> and, in some cases, a warning about potentially dangerous files.</translate>

<translate> To fix this, run the <tvar|1>maintenance/rebuildImages.php</> script from the command line.</translate> <translate> This will set MIME information for each file in the database.</translate>

<translate> Recent versions of MediaWiki implement [[<tvar|1>Special:MyLanguage/Manual:$wgResponsiveImages</>|responsive images]].</translate> <translate> Due to [[<tvar|bug>phab:T181987</>|a bug]], if the server locale is set to one that uses commas instead of dots for representing a decimal point, images may not render on some browsers/devices.</translate> <translate> This can be confirmed by inspecting a thumbnail of a medium or big image on a page with the browser tools, looking at the HTML code, and see if the <tvar|1>srcset</> attribute contains commas instead of dots when representing the <tvar|2>1.5x</> value.</translate>

<translate>

…are all PNG files not being turned into thumbnails?

</translate> <translate> After upgrading to a more recent version of PHP, it is possible a different MimeMagic.php function is being used to detect file MIME types, particularly the built-in PHP function mime_content_type, which fails to detect PNG files.</translate> <translate> Search the web for <tvar|1>mime_content_type png</> for information on fixing this bug at the PHP level, possibly by editing your magic.mime file.</translate>

<translate> See [[<tvar|1>#"File is corrupt or has an invalid extension"</>|here]] for more info.</translate>

<translate>

…can't I download MediaWiki {{#expr:{{#invoke:Version|get|stable|branch}}+.01}}?

</translate> <translate> MediaWiki {{#expr:{{#invoke:Version|get|stable|branch}}+.01}} is in a development state at present, and has not been packaged into a general release.</translate> <translate> The code can be [[<tvar|1>Special:MyLanguage/Download from Git</>|downloaded from Git]] if desired.</translate> <translate> Or, if you want the latest development version packaged as an archive, get it at mediawiki-master.tar.gz (GitHub).</translate>

<translate>

…doesn't this work? It works on Wikipedia!

</translate> <translate> Wikipedia and other Wikimedia web sites use the current version of the code in development; at present, this is MediaWiki 1.37.1, pulled from the current development branch.</translate> <translate> Coupled with the use of several extensions, this means that functionality between these wikis and your particular setup may differ.</translate>

<translate>

  • To obtain the current development code, read [[<tvar|1>Special:MyLanguage/Download from Git</>|Download from Git]]</translate>

<translate>

  • To check what version a Wikimedia wiki is running, as well as what extensions are installed, visit the Special:Version page for that wiki</translate>

<translate>

  • You may also be missing several <tvar|1>{{#ifeq:Manual:Extensions|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Extensions/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:0
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Extensions/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:0
   |Manual:Extensions
   |Manual:Extensions
 }}

}}}}{{#ifeq:Manual:Extensions|

 |

}} </> that are installed on Wikipedia, see [[<tvar|2>#Templates imported from other wikis (such as Wikipedia) don't work for me</>|#Templates imported from other wikis (such as Wikipedia) don't work for me]]

…do I get a 403 Forbidden error after setting permissions on my Fedora system?

</translate> <translate> Fedora Core enables <tvar|1>{{#ifeq:SELinux|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}SELinux/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}SELinux/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |SELinux
   |SELinux
 }}

}}}}{{#ifeq:SELinux|

 |

}} </> by default.</translate> <translate> Instructions for setting SELinux permissions for MediaWiki [[<tvar|1>Special:MyLanguage/SELinux</>|are available]].</translate>

<translate>

…do I get Installing some external dependencies (e.g. via composer) is required?

</translate> <translate> Many web hotels only handle zip archives, and we only provide gz compressed tar archives, thus the archives has to be recompressed before uploading.</translate> <translate> This should not be much of a hurdle, but it seems like some archive tools occasionally fails to include all files in large archives.</translate> <translate> When this happen the vendor folder is left out, leaving the user with the rather non-explanatory error message.</translate>

<translate> Use a command line tool when recompressing the tar archive into a zip archive.</translate>

<translate>

…do I get logged out constantly?

This is probably related to cookies or session data. See Log in problems for information.

If this is happening constantly to all users, it probably means that caching is misconfigured. Setting <tvar|1>$wgSessionCacheType = CACHE_DB;</> can be used to determine if caching is the cause of the problem. If that solves the problem, you should still investigate what is wrong with your caching configuration.

…is it a good idea to keep user accounts?

</translate> {{#switch:<translate></translate> | = <templatestyles src="Template:Ambox/styles.css" /> {{#invoke:Message box|ambox}} [[Category:Outdated pages{{#translation:}}]] | #default=

 {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Update|noshift=1}}

}} <translate> At many times you just want to remove a user account out of the wiki either because it belonged to a spammer account or you just feel like it.</translate> <translate> The appropriate choice is to block the account or rename it if needed.</translate> <translate> Here is why:</translate>

<translate> Do I just remove this row from the User table?</translate>

<translate> Rob Church posted the following regarding this issue on the wikitech-l mailing list:</translate>

<translate> If the user has made edits, then removing rows from the user table cause theoretical loss of referential integrity.</translate>

<translate> Now, to be honest with you, I can't think of any conditions where this would cause an actual problem; "undefined behaviour" is the phrase we use.

What I'd suggest doing, to be on the safe side, is running a couple of quick updates against the database: </translate>

<syntaxhighlight lang="sql">UPDATE revision SET rev_user = 0 WHERE rev_user = <current_user_id></syntaxhighlight>
<syntaxhighlight lang="sql">UPDATE archive SET ar_user = 0 WHERE ar_user = <current_user_id></syntaxhighlight>

<translate> What this will do is cause MediaWiki to treat the revisions as having been made anonymously when generating things like page histories, which should eliminate any problems caused by these routines attempting to check user details from other tables.

If the user has caused log entries, i.e. rows in the logging table, or uploaded images, then the situation becomes trickier, as you'll have to start mopping up all the rows everywhere and it could become a bit of a mess, so if the user's done anything other than edit, I would strongly recommend just blocking them indefinitely.

If the username is offensive or undesirable, then you could consider

renaming it using the <tvar

{{#if: |

—{{#if:

|, 

}}

}}

<translate> Another option is to give Admins the 'hideuser' right, and indefinitely block the user with the Hide username from edits and lists option selected.</translate>

<translate> <tvar|1>{{#ifeq:Extension:UserMerge|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:UserMerge/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:UserMerge/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Extension:UserMerge
   |Extension:UserMerge
 }}

}}}}{{#ifeq:Extension:UserMerge|

 |

}} </> is also useful.</translate>

<translate>

…is the number of pages so low on Special:Statistics?

</translate> <translate> [[<tvar|1>phab:source/mediawiki/browse/master/includes/DefaultSettings.php</>|By default]], <tvar|2>{{#ifeq:Manual:$wgArticleCountMethod|

 |

}}{{#if:$wgArticleCountMethod|$wgArticleCountMethod|$wgArticleCountMethod}}{{#ifeq:Manual:$wgArticleCountMethod|

 |

}} </> is set to <tvar|3>link</>.</translate> <translate> This means the number of "Content pages" on the <tvar|1>Special:Statistics</> page only counts pages which include at least one internal link.</translate> <translate> This can be changed by setting <tvar|1>$wgArticleCountMethod</> to <tvar|2>any</>.</translate> <translate> Afterwards, run <tvar|1>{{#ifeq:Manual:UpdateArticleCount.php|

 |

}}{{#if:updateArticleCount.php|updateArticleCount.php|updateArticleCount.php}}{{#ifeq:Manual:UpdateArticleCount.php|

 |

}} </> and/or <tvar|2>{{#ifeq:Manual:InitSiteStats.php|

 |

}}{{#if:initSiteStats.php|initSiteStats.php|initSiteStats.php}}{{#ifeq:Manual:InitSiteStats.php|

 |

}} </>.</translate> <translate> (On Wikimedia websites, <tvar|1>initSiteStats.php</> is run on the 1st and 15th of each month.)</translate> <translate> There might still be wrong behavior, see for example <tvar|1>phab:T212706</>.</translate>

<translate>

Anti-spam

Where do I get the spam blacklist from and how do I install it?

</translate> <translate> The [[<tvar|1>m:Spam blacklist</>|spam blacklist]] extension can be found in [[<tvar|2>Special:MyLanguage/Download from Git</>|Git]], just like all other officially supported extensions.</translate> <translate> For installation and configuration instructions, consult the <tvar|1>[https://gerrit.wikimedia.org/g/mediawiki/extensions/SpamBlacklist/{{#switch:browse

 |blame=+blame
 |shortlog
 |history=+log
 |raw
 |browse
 |tree
 |summary
 |#default=+

}}/{{#if:

 |{{{sha}}}
 |{{#ifeq:HEAD|master|HEAD|HEAD|HEAD}}

}}/{{#if:README |README }}{{#if: |#{{#if:|{{{line}}}}} }} {{#if:README|README|README}}]</> file and <tvar|2>{{#ifeq:Extension:SpamBlacklist|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:SpamBlacklist/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:SpamBlacklist/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Extension:SpamBlacklist
   |Extension:SpamBlacklist
 }}

}}}}{{#ifeq:Extension:SpamBlacklist|

 |

}} </> over here.</translate>

<translate>

How do I use $wgSpamRegex to block more than one string?

</translate> <translate> <tvar|1>{{#ifeq:Manual:$wgSpamRegex|

 |

}}{{#if:$wgSpamRegex|$wgSpamRegex|$wgSpamRegex}}{{#ifeq:Manual:$wgSpamRegex|

 |

}} </> is a powerful filter for page content.</translate> <translate> Adding multiple items to the regex, however, can be awkward.</translate> <translate> Consider this snippet:</translate>

<syntaxhighlight lang="php"> $wgSpamRegexLines[] = 'display\s*:\s*none'; $wgSpamRegexLines[] = 'overflow\s*:\s*auto'; [...] $wgSpamRegex = '/(' . implode( '|', $wgSpamRegexLines ) . ')/i'; </syntaxhighlight>

<translate> This example code allows convenient addition of additional items to the regex without fiddling about each time.</translate> <translate> It also demonstrates two popular filters, which block some of the most common spam attacks.</translate>

<translate> See also:</translate> {{#ifeq:Extension:SpamRegex|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Extension:SpamRegex/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Extension:SpamRegex/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Extension:SpamRegex
   |Extension:SpamRegex
 }}

}}}}{{#ifeq:Extension:SpamRegex|

 |

}}

<translate>

Are there additional ways to fight spam?

See Manual:Combating spam for an overview of anti-spam measures such as Captcha, content filtering and restricting edition.

Anti-vandalism

See Manual:Combating vandalism for hints and suggestions on how to deal with wiki vandalism.

Where now?

I've found a bug or have a feature request. Where do I post it?

</translate> <translate> Bugs and feature requests should be posted on <tvar|1>{{#ifeq:Phabricator|

 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Phabricator/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Phabricator/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Phabricator
   |Phabricator
 }}

}}}}{{#ifeq:Phabricator|

 |

}} </>.</translate> <translate> See How to report a bug.</translate>

<translate>

I'm getting a strange error. What now?

  • See if it is covered by <tvar|1>{{#ifeq:Manual:Errors and Symptoms|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:Errors and Symptoms/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:Errors and Symptoms/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:Errors and Symptoms
   |Manual:Errors and Symptoms
 }}

}}}}{{#ifeq:Manual:Errors and Symptoms|

 |

}} </></translate> <translate>

  • Try to find out more about the problem, see <tvar|1>{{#ifeq:Manual:How to debug|
 |

}}{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:|:}}Manual:How to debug/Page display title/{{#ifeq:| |{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:FAQ||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

|{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en |{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}|

 |zh-cn
 |{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|}}|en

|{{#ifeq:{{#titleparts:||-1}}|en

 |{{#invoke:Template translation|getLanguageSubpage|}}
 }}

|{{#invoke:Template translation|getLanguageSubpage|}} }}

}}

}}

 |{{#if:
   |
   |{{ {{#invoke:Template translation|getTranslatedTemplate|uselang=|tntns=|template={{#if:|{{{template}}}|Translations:{{#if:|:}}Manual:How to debug/Page_display_title}}|noshift=}} }}
 }}
 |{{#if:
   |Manual:How to debug
   |Manual:How to debug
 }}

}}}}{{#ifeq:Manual:How to debug|

 |

}} </></translate> <translate>

  • See the [[<tvar|1>#Still no luck. Where can I ask for help?</>|section below]] for information on how to contact developers and other knowledgable users.

I tried that but it didn't work

</translate>

<translate> I had a problem, I came to this page and it told me how to fix it.</translate> <translate> But it didn't work, the problem is still there!!!!</translate>

<translate> Nine times out of ten this is because you didn't [[<tvar|1>#How do I purge a cached page?</>|clear your cache]].</translate> <translate> The simple test for this is to request a page that hasn't been requested before.</translate> <translate> Select the part of the URL in the address bar that contains the page title (e.g. Main_Page).</translate> <translate> Twiddle your fingers on the keyboard for a while, hit enter.</translate> <translate> Check if the problem is on that page too.</translate>

<translate> MediaWiki uses both a server-side cache and a client-side cache, so clearing your browser cache is often not enough.</translate> <translate> See the [[<tvar|1>#How do I purge a cached page?</>|relevant entry above]] for more details.</translate>

<translate> Here are some other things to check:</translate>

<translate>

  • Were you editing the right file? Try inserting some garbage into the file you edited, does it break anything?</translate>

<translate>

    • A great debugging tool in this case is to create a file called phpinfo.php, containing only <tvar|1><?php phpinfo() ?></>.</translate> <translate> Upload it into your web directory and invoke it with your browser.</translate> <translate> Check the document root and the path to php.ini.</translate>

<translate>

  • Were you editing the right part of the file?</translate> <translate> Did you create a duplicate entry in php.ini?</translate> <translate> Add new settings to the end of LocalSettings.php, not to the beginning.</translate>

<translate>

  • If you created a .htaccess, are you sure AllowOverrides is on?</translate> <translate>

Ask your hosting provider.

I have a question not answered here. Where do I go next?

If you've exhausted the FAQ above, please try the following:

<translate>

  • Search the rest of this site</translate>

<translate>

  • Search the web</translate>

<translate>

<translate>

  • See the [[<tvar|1>#Still no luck. Where can I ask for help?</>|section below]] for information on how to contact developers and other knowledgeable users.</translate>

{{#if:Still no luck. Where can I ask for help?|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:|{{#if:

   |Template:Anchor (or Anchors): too many anchors, maximum is ten}}}} }} }} }} }} }} }} }} }} }}

<translate>

Still no luck. Where can I ask for help?

<translate>

<translate>

Recommended reading

<translate>

<translate>

<translate>

</translate>

[[Category:Manual{{#translation:}}]] [[Category:Configure{{#translation:}}]]