Manual:Wiki ID

The wiki ID (or database ID) is the most common way of identifying a wiki within a 1>Special:MyLanguage/Manual:Wiki family|wiki farm in MediaWiki.

When every wiki is in a separate database, it is simply the database name; when multiple wikis share a database and are differentiated with table prefixes, it is in the form.

It can be retrieved by calling  .

It is used for getting a database connection for a given wiki (see  ) and in , among other things.