diff --git a/LocalSettings.php b/LocalSettings.php
index 1c89e9a0..b84098e6 100644
--- a/LocalSettings.php
+++ b/LocalSettings.php
@@ -1,3795 +1,3795 @@
suffixes = [ 'wiki' ];
$wgLocalVirtualHosts = [ '81.4.109.166' ];
$wmgHostname = isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : 'undefined';
// Namespaces (please do not add anything here unless absoluely necessary!)
define( 'NS_TECH', 1600 );
define( 'NS_TECH_TALK', 1601 );
define( 'NS_HL2RP', 1602 );
define( 'NS_HL2RP_TALK', 1603 );
define( 'NS_ARP', 1604 );
define( 'NS_ARP_TALK', 1605 );
define( 'NS_EVENT', 1606 );
define( 'NS_EVENT_TALK', 1607 );
define( 'NS_CLAN', 1608 );
define( 'NS_CLAN_TALK', 1609 );
define( 'NS_POE', 1610 );
define( 'NS_POE_TALK', 1611 );
define( 'NS_LEAGUE', 1612 );
define( 'NS_LEAGUE_TALK', 1613 );
define( 'NS_SMITE', 1614 );
define( 'NS_SMITE_TALK', 1615 );
define( 'NS_SERVER', 1616 );
define( 'NS_SERVER_TALK', 1617 );
define( 'NS_COMIC', 1618 );
define( 'NS_COMIC_TALK', 1619 );
define( 'NS_TROPEWORKSHOP', 1620 );
define( 'NS_TROPEWORKSHOP_TALK', 1621 );
define( 'NS_HOENN', 1622 );
define( 'NS_HOENN_TALK', 1623 );
define( 'NS_OFFICIAL', 1624 );
define( 'NS_OFFICIAL_TALK', 1625 );
define( 'NS_PORTAL', 1626 );
define( 'NS_PORTAL_TALK', 1627 );
define( 'NS_CALL_OF_DUTY', 1628 );
define( 'NS_CALL_OF_DUTY_TALK', 1629 );
define( 'NS_REVIEWS', 1630 );
define( 'NS_REVIEWS_TALK', 1631 );
define( 'NS_TEST', 1632 );
define( 'NS_TEST_TALK', 1633 );
define( 'NS_MINECRAFT', 1636 );
define( 'NS_MINECRAFT_TALK', 1637 );
define( 'NS_SUPER_MARIO_LAND_2', 1638 );
define( 'NS_SUPER_MARIO_LAND_2_TALK', 1639 );
define( 'NS_SUPER_MARIO_WORLD_2', 1640 );
define( 'NS_SUPER_MARIO_WORLD_2_TALK', 1641 );
define( 'NS_SUPER_MARIO_BROS', 1642 );
define( 'NS_SUPER_MARIO_BROS_TALK', 1643 );
define( 'NS_SUPER_MARIO_ADVANCE', 1644 );
define( 'NS_SUPER_MARIO_ADVANCE_TALK', 1645 );
define( 'NS_SUPER_MARIO_ADVANCE_2', 1646 );
define( 'NS_SUPER_MARIO_ADVANCE_2_TALK', 1647 );
define( 'NS_SUPER_MARIO_ADVANCE_3', 1648 );
define( 'NS_SUPER_MARIO_ADVANCE_3_TALK', 1649 );
define( 'NS_SUPER_MARIO_ADVANCE_4', 1650 );
define( 'NS_SUPER_MARIO_ADVANCE_4_TALK', 1651 );
define( 'NS_THE_LEGEND_OF_ZELDA', 1652 );
define( 'NS_THE_LEGEND_OF_ZELDA_TALK', 1653 );
define( 'NS_LCS', 1654 );
define( 'NS_LCS_TALK', 1655 );
define( 'NS_MEDI', 1656 );
define( 'NS_MEDI_TALK', 1657 );
define( 'NS_LIBRARY', 1658 );
define( 'NS_LIBRARY_TALK', 1659 );
define( 'NS_TEACHING', 1660 );
define( 'NS_TEACHING_TALK', 1661 );
define( 'NS_BLANK', 1662 );
define( 'NS_BLANK_TALK', 1663 );
define( 'NS_RESEARCH', 1664 );
define( 'NS_RESEARCH_TALK', 1665 );
define( 'NS_ADMIN', 1666 );
define( 'NS_ADMIN_TALK', 1667 );
define( 'NS_WORKSHOP', 1668 );
define( 'NS_WORKSHOP_TALK', 1669 );
define( 'NS_SELP', 1670 );
define( 'NS_SELP_TALK', 1671 );
define( 'NS_STUDY_NOTE', 1672 );
define( 'NS_STUDY_NOTE_TALK', 1673 );
define( 'NS_EXPLANATION', 1674 );
define( 'NS_EXPLANATION_TALK', 1675 );
define( 'NS_KOREAN_STUDY_NOTE', 1676 );
define( 'NS_KOREAN_STUDY_NOTE_TALK', 1677 );
define( 'NS_GLOSSARY', 1678 );
define( 'NS_GLOSSARY_TALK', 1679 );
define( 'NS_SPRITES', 1680 );
define( 'NS_SPRITES_TALK', 1681 );
define( 'NS_GALLERY', 1682 );
define( 'NS_GALLERY_TALK', 1683 );
define( 'NS_HALAMAN', 1684 );
define( 'NS_HALAMAN_TALK', 1685 );
define( 'NS_DICT', 1686 );
define( 'NS_DICT_TALK', 1687 );
define( 'NS_FEATURED', 1688 );
define( 'NS_FEATURED_TALK', 1689 );
define( 'NS_ARTIKEL', 1690 );
define( 'NS_ARTIKEL_TALK', 1691 );
define( 'NS_VIDEO', 1692 );
define( 'NS_VIDEO_TALK', 1693 );
define( 'NS_OPINION', 1694 );
define( 'NS_OPINION_TALK', 1695 );
define( 'NS_TIMELINE', 1696 );
define( 'NS_TIMELINE_TALK', 1697 );
define( 'NS_DRAFT', 1700 );
define( 'NS_DRAFT_TALK', 1701 );
define( 'NS_HISTORICAL_TIMELINE', 1702 );
define( 'NS_HISTORICAL_TIMELINE_TALK', 1703 );
define( 'NS_QUIZSET', 1704 );
define( 'NS_QUIZSET_TALK', 1705 );
define( 'NS_NOTEBOOK', 1706 );
define( 'NS_NOTEBOOK_TALK', 1707 );
define( 'NS_SOURCE', 1708 );
define( 'NS_SOURCE_TALK', 1709 );
define( 'NS_GAME', 1710 );
define( 'NS_GAME_TALK', 1711 );
define( 'NS_PICTUREBOARD', 1712 );
define( 'NS_PICTUREBOARD_TALK', 1713 );
define( 'NS_TINYFOREST', 1714 );
define( 'NS_TINYFOREST_TALK', 1715 );
define( 'NS_WNS2', 1716 );
define( 'NS_WNS2_TALK', 1717 );
define( 'NS_HOWTO', 1718 );
define( 'NS_HOWTO_TALK', 1719 );
define( 'NS_NEWSLINK', 1720 );
define( 'NS_NEWSLINK_TALK', 1721 );
define( 'NS_CIVILIZATION_IV', 1722 );
define( 'NS_CIVILIZATION_IV_TALK', 1723 );
define( 'NS_PSEUDO_NEWS', 1724 );
define( 'NS_PSEUDO_NEWS_TALK', 1725 );
define( 'NS_PSEUDO_BASE_DICTIONARY', 1726 );
define( 'NS_PSEUDO_BASE_DICTIONARY_TALK', 1727 );
define( 'NS_PSEUDO_BASE_LIBRARY', 1728 );
define( 'NS_PSEUDO_BASE_LIBRARY_TALK', 1729 );
define( 'NS_PSEUDO_BASE_MUSIC', 1730 );
define( 'NS_PSEUDO_BASE_MUSIC_TALK', 1731 );
define( 'NS_RGB', 1732 );
define( 'NS_RGB_TALK', 1733 );
define( 'NS_LINESTYLE', 1734 );
define( 'NS_LINESTYLE_TALK', 1735 );
define( 'NS_IDEA', 1736 );
define( 'NS_IDEA_TALK', 1737 );
define( 'NS_POLICY', 1738 );
define( 'NS_POLICY_TALK', 1739 );
define( 'NS_LEGACY', 1740 );
define( 'NS_LEGACY_TALK', 1741 );
define( 'NS_BOILERPLATE', 1742 );
define( 'NS_BOILERPLATE_TALK', 1743 );
define( 'NS_WPIMPORT', 1744 );
define( 'NS_WPIMPORT_TALK', 1745 );
define( 'NS_ARCHIVE', 1746 );
define( 'NS_ARCHIVE_TALK', 1747 );
define( 'NS_WPREDIRECT', 1748 );
define( 'NS_WPREDIRECT_TALK', 1749 );
define( 'NS_WALKTHROUGH', 1750 );
define( 'NS_WALKTHROUGH_TALK', 1751 );
define( 'NS_STAFF', 1752 );
define( 'NS_STAFF_TALK', 1753 );
define( 'NS_TEMA', 1754 );
define( 'NS_TEMA_TALK', 1755 );
define( 'NS_PAGE', 1756 );
define( 'NS_PAGE_TALK', 1757 );
define( 'NS_ANEXO', 1758 );
define( 'NS_ANEXO_TALK', 1759 );
define( 'NS_ESTUDIO', 1760 );
define( 'NS_ESTUDIO_TALK', 1761 );
define( 'NS_PRUEBA', 1762 );
define( 'NS_PRUEBA_TALK', 1763 );
define( 'NS_REGISTRO', 1764 );
define( 'NS_REGISTRO_TALK', 1765 );
define( 'NS_LISTA', 1766 );
define( 'NS_LISTA_TALK', 1767 );
define( 'NS_BUG', 1768 );
define( 'NS_BUG_TALK', 1769 );
define( 'NS_PROYECTO', 1770 );
define( 'NS_PROYECTO_TALK', 1771 );
define( 'NS_TALLER', 1772 );
define( 'NS_TALLER_TALK', 1773 );
define( 'NS_MODELO', 1774 );
define( 'NS_MODELO_TALK', 1775 );
define( 'NS_HANDBOOK', 1776 );
define( 'NS_HANDBOOK_TALK', 1777 );
define( 'NS_EXTENSION', 1778 );
define( 'NS_EXTENSION_TALK', 1779 );
define( 'NS_SKIN', 1780 );
define( 'NS_SKIN_TALK', 1781 );
define( 'NS_GAMEPAGE', 1782 );
define( 'NS_GAMEPAGE_TALK', 1783 );
define( 'NS_BOOK', 1784 );
define( 'NS_BOOK_TALK', 1785 );
define( 'NS_BOOK_NAVIGATION', 1786 );
define( 'NS_BOOK_NAVIGATION_TALK', 1787 );
define( 'NS_APPLICATION', 1788 );
define( 'NS_APPLICATION_TALK', 1789 );
define( 'NS_SUMMARY', 1790 );
define( 'NS_SUMMARY_TALK', 1791 );
define( 'NS_MANUAL', 1790 );
define( 'NS_MANUAL_TALK', 1791 );
define( 'NS_API', 1792 );
define( 'NS_API_TALK', 1793 );
define( 'NS_DATA', 1794 );
define( 'NS_DATA_TALK', 1795 );
define( 'NS_DICTIONARY', 1796 );
define( 'NS_DICTIONARY_TALK', 1797 );
define( 'NS_CALENDAR', 1798 );
define( 'NS_CALENDAR_TALK', 1799 );
define( 'NS_ENCYCLOPEDIA', 1800 );
define( 'NS_ENCYCLOPEDIA_TALK', 1801 );
define( 'NS_QURAN', 1802 );
define( 'NS_QURAN_TALK', 1803 );
define( 'NS_CYTATY', 1804 );
define( 'NS_CYTATY_TALK', 1805 );
define( 'NS_NONNEWS', 1806 );
define( 'NS_NONNEWS_TALK', 1807 );
define( 'NS_NONZRODLA', 1808 );
define( 'NS_NONZRODLA_TALK', 1809 );
define( 'NS_SLOWNIK', 1810 );
define( 'NS_SLOWNIK_TALK', 1811 );
define( 'NS_GRA', 1812 );
define( 'NS_GRA_TALK', 1813 );
define( 'NS_PORADNIK', 1814 );
define( 'NS_PORADNIK_TALK', 1815 );
define( 'NS_PORUM', 1816 );
define( 'NS_PORUM_TALK', 1817 );
define( 'NS_THREAD', 1818 );
define( 'NS_THREAD_TALK', 1819 );
define( 'NS_MESSAGE_WALL', 1820 );
define( 'NS_MESSAGE_WALL_TALK', 1821 );
define( 'NS_USER_BLOG', 1822 );
define( 'NS_USER_BLOG_TALK', 1823 );
define( 'NS_USER_BLOG_COMMENT', 1824 );
define( 'NS_USER_BLOG_COMMENT_TALK', 1825 );
define( 'NS_HUB', 1826 );
define( 'NS_HUB_TALK', 1827 );
define( 'NS_LIST', 1828 );
define( 'NS_LIST_TALK', 1829 );
define( 'NS_LAW', 1830 );
define( 'NS_LAW_AMENDING', 1831 );
define( 'NS_EXECUTIVE_ORDER', 1832 );
define( 'NS_EXECUTIVE_ORDER_TALK', 1833 );
define( 'NS_GROUP', 1834 );
define( 'NS_GROUP_TALK', 1835 );
define( 'NS_PARAMETER', 1836 );
define( 'NS_PARAMETER_TALK', 1837 );
define( 'NS_EXAMPLE', 1838 );
define( 'NS_EXAMPLE_TALK', 1839 );
define( 'NS_STOREFRONT', 1840 );
define( 'NS_STOREFRONT_TALK', 1841 );
define( 'NS_MUSINGS', 1842 );
define( 'NS_MUSINGS_TALK', 1843 );
define( 'NS_TECHDICT', 1844 );
define( 'NS_TECHDICT_TALK', 1845 );
define( 'NS_PORTALE', 2000 ); // Skipping values to 2000 per T3553
define( 'NS_DISCUSSIONI_PORTALE', 2001 );
define( 'NS_PROGETTO', 2002 );
define( 'NS_DISCUSSIONI_PROGETTO', 2003 );
define( 'NS_CIMITERO', 2004 );
define( 'NS_DISCUSSIONI_CIMITERO', 2005 );
define( 'NS_NONNOTIZIE', 2006 );
define( 'NS_DISCUSSIONI_NONNOTIZIE', 2007 );
define( 'NS_NONVOYAGE', 2008 );
define( 'NS_DISCUSSIONI_NONVOYAGE', 2009 );
define( 'NS_NONQUOTE', 2010 );
define( 'NS_DISCUSSIONI_NONQUOTE', 2011 );
define( 'NS_NONDIZIONARIO', 2012 );
define( 'NS_DISCUSSIONI_NONDIZIONARIO', 2013 );
define( 'NS_NONIVERSITA', 2014 );
define( 'NS_DISCUSSIONI_NONIVERSITA', 2015 );
define( 'NS_NONSOURCE', 2016 );
define( 'NS_DISCUSSIONI_NONSOURCE', 2017 );
define( 'NS_NONBOOKS', 2018 );
define( 'NS_DISCUSSIONI_NONBOOKS', 2019 );
define( 'NS_FANWORK', 2020 );
define( 'NS_FANWORK_TALK', 2021 );
define( 'NS_SOP_ATS_MKW', 2024 );
define( 'NS_SOP_ATS_MKW_TALK', 2025 );
define( 'NS_MOS_MKW', 2026 );
define( 'NS_MOS_MKW_TALK', 2027 );
define( 'NS_LOA', 2028 );
define( 'NS_LOA_TALK', 2029 );
define( 'NS_LOCA_MKW', 2030 );
define( 'NS_LOCA_MKW_TALK', 2031 );
define( 'NS_TUT', 2032 );
define( 'NS_TUT_TALK', 2033 );
define( 'NS_ASPECT', 2034 );
define( 'NS_ASPECT_TALK', 2035 );
// Refer to NS_MODULE before importing Scribunto (tmewiki)
define( 'WMG_NS_MODULE', 828 );
define( 'WMG_NS_MODULE_TALK', 829 );
// Special namespace re-defined
define( 'NS_PROOFREAD_PAGE', 250 );
define( 'NS_PROOFREAD_PAGE_TALK', 251 );
define( 'NS_PROOFREAD_INDEX', 252 );
define( 'NS_PROOFREAD_INDEX_TALK', 253 );
// NS 860, 861, 862, 863 allocated for Item/Item_talk/Property/Property_talk by Wikibase
$wgConf->settings = [
// invalidates user sessions [MWExempt]
'wgAuthenticationTokenVersion' => [
'default' => '3',
],
// AbuseFilter [MW]
'wgAbuseFilterActions' => [
'default' => [
'block' => true,
'blockautopromote' => true,
'degroup' => true,
'disallow' => true,
'rangeblock' => false,
'tag' => true,
'throttle' => true,
'warn' => true,
],
],
'wgAbuseFilterCentralDB' => [
'default' => 'metawiki',
],
'wgAbuseFilterIsCentral' => [
'default' => false,
'metawiki' => true,
],
'wgAbuseFilterBlockDuration' => [
'default' => 'indefinte',
'weatherwiki' => '1 week',
],
'wgAbuseFilterAnonBlockDuration' => [
'default' => 2592000,
'weatherwiki' => '72 hours',
],
'wgAbuseFilterRestrictions' => [
'default' => [
'blockautopromote' => true,
'block' => true,
'degroup' => true,
'rangeblock' => true,
],
'weatherwiki' => [
'blockautopromote' => false,
'block' => false,
'degroup' => false,
'rangeblock' => true,
],
],
// Anti-spam [MW]
'wgAccountCreationThrottle' => [
'default' => 5,
],
// BetaFeatures [MW]
'wgMediaViewerIsInBeta' => [
'default' => false,
],
'wgVisualEditorEnableWikitextBetaFeature' => [
'default' => false,
],
'wgVisualEditorEnableDiffPageBetaFeature' => [
'default' => false,
],
'wgPivotFeatures' => [
'thegreatwarwiki' => [
'usePivotTabs' => true,
'fixedNavBar' => true,
'showHelpUnderTools' => false,
'showRecentChangesUnderTools' => false,
'wikiNameDesktop' => 'The Great War 1914-1918',
'showFooterIcons' => true
],
],
// Block [MW]
'wgAutoblockExpiry' => [
'default' => 86400, // 24 hours * 60 minutes * 60 seconds
],
'wgBlockAllowsUTEdit' => [
'default' => true,
],
// Bot passwords [MWExempt]
'wgBotPasswordsDatabase' => [
'default' => 'mhglobal',
],
// Cache [MWExempt]
'wgCacheDirectory' => [
'default' => '/srv/mediawiki/w/cache',
],
'wgLocalisationCacheConf' => [
'default' => [
'class' => 'LocalisationCache',
'store' => 'files',
'storeDirectory' => "$IP/cache/l10n",
'manualRecache' => true,
],
],
'wgPreprocessorCacheThreshold' => [
'default' => false,
],
'wgResourceLoaderMaxage' => [
'default' => [
'versioned' => [
'server' => 12 * 60 * 60, // 12 hours
'client' => 1 * 24 * 60 * 60, // 1 day
],
'unversioned' => [
'server' => 5 * 60, // 5 minutes
'client' => 30 * 60, // 30 minutes
],
],
],
'wgRevisionCacheExpiry' => [
'default' => 0,
],
// CentralNotice [MWExempt]
'wgNoticeInfrastructure' => [
'default' => false,
'metawiki' => true,
],
'wgCentralSelectedBannerDispatcher' => [
'default' => "//meta.miraheze.org/w/index.php/Special:BannerLoader",
],
'wgCentralBannerRecorder' => [
'default' => "//meta.miraheze.org/w/index.php/Special:RecordImpression",
],
'wgCentralDBname' => [
'default' => 'metawiki',
],
'wgCentralHost' => [
'default' => "//meta.miraheze.org",
],
'wgNoticeProject' => [
'default' => 'all',
],
'wgNoticeProjects' => [
'default' => [
'all',
'optout',
],
],
'wgNoticeUseTranslateExtension' => [
'default' => true,
],
// Captcha [MWExempt]
'wgCaptchaClass' => [
'default' => 'ReCaptchaNoCaptcha',
],
'wgReCaptchaSendRemoteIP' => [
'default' => false,
],
// Category
'wgUseCategoryBrowser' => [
'default' => false,
'modesofdiscoursewiki' => true,
],
// CentralAuth [MWExempt]
'wgCentralAuthAutoCreateWikis' => [
'default' => [ 'loginwiki', 'metawiki' ],
],
'wgCentralAuthAutoNew' => [
'default' => true,
],
'wgCentralAuthAutoMigrate' => [
'default' => true,
],
'wgCentralAuthAutoMigrateNonGlobalAccounts' => [
'default' => true,
],
'wgCentralAuthCookies' => [
'default' => true,
],
'wgCentralAuthCookieDomain' => [
'default' => '.miraheze.org',
],
'wgCentralAuthCreateOnView' => [
'default' => true,
'nenawikiwiki' => false,
],
'wgCentralAuthDatabase' => [
'default' => 'mhglobal',
],
'wgCentralAuthEnableGlobalRenameRequest' => [
'default' => false,
'metawiki' => true,
],
'wgCentralAuthEnableUserMerge' => [
'default' => false,
'metawiki' => true,
],
'wgCentralAuthLoginWiki' => [
'default' => 'loginwiki',
],
'wgCentralAuthPreventUnattached' => [
'default' => true,
],
'wgCentralAuthSilentLogin' => [
'default' => true,
],
// CheckUser [MWExempt]
'wgCheckUserForceSummary' => [
'default' => true,
],
// Comments extension [MW]
'wgCommentsDefaultAvatar' => [
'default' => '/w/extensions/SocialProfile/avatars/default_ml.gif',
],
'wgCommentsInRecentChanges' => [
'default' => false,
],
'wgCommentsSortDescending' => [
'default' => false,
],
// Contribution Scores [MWExempt]
'wgContribScoreDisableCache' => [
'default' => true,
],
// CreateWiki [MWExempt]
'wgCreateWikiCustomDomainPage' => [
'default' => 'Special:MyLanguage/Custom_domains',
],
'wgCreateWikiDatabase' => [
'default' => 'mhglobal',
],
'wgCreateWikiGlobalWiki' => [
'default' => 'metawiki',
],
'wgCreateWikiDBDirectory' => [
'default' => '/srv/mediawiki/dblist',
],
'wgCreateWikiEmailNotifications' => [
'default' => true,
],
'wgCreateWikiNotificationEmail' => [
'default' => 'staff@miraheze.org',
],
'wgCreateWikiSQLfiles' => [
'default' => [
"$IP/maintenance/tables.sql",
"$IP/extensions/AbuseFilter/abusefilter.tables.sql",
"$IP/extensions/AntiSpoof/sql/patch-antispoof.mysql.sql",
"$IP/extensions/BetaFeatures/sql/create_counts.sql",
"$IP/extensions/CheckUser/cu_log.sql",
"$IP/extensions/CheckUser/cu_changes.sql",
"$IP/extensions/DataDump/sql/data_dump.sql",
"$IP/extensions/Echo/echo.sql",
"$IP/extensions/GlobalBlocking/globalblocking.sql",
"$IP/extensions/OAuth/backend/schema/mysql/OAuth.sql",
"$IP/extensions/RottenLinks/sql/rottenlinks.sql",
"$IP/extensions/Translate/sql/revtag.sql",
"$IP/extensions/Translate/sql/translate_groupreviews.sql",
"$IP/extensions/Translate/sql/translate_groupstats.sql",
"$IP/extensions/Translate/sql/translate_messageindex.sql",
"$IP/extensions/Translate/sql/translate_metadata.sql",
"$IP/extensions/Translate/sql/translate_reviews.sql",
"$IP/extensions/Translate/sql/translate_sections.sql",
"$IP/extensions/Translate/sql/translate_stash.sql",
"$IP/extensions/Translate/sql/translate_tm.sql",
"$IP/extensions/UrlShortener/schemas/urlshortcodes.sql"
],
],
'wgCreateWikiCategories' => [
'default' => [
'Community' => 'community',
'Education' => 'education',
'Electronics' => 'eletronics',
'Fandom' => 'fandom',
'Fantasy' => 'fantasy',
'Gaming' => 'gaming',
'Geography' => 'geography',
'Leisure' => 'leisure',
'Literature/Writing' => 'literature',
'Medicine/Medical' => 'medical',
'Military/War' => 'military',
'Music' => 'music',
'Podcast' => 'podcast',
'Private' => 'private',
'Religion' => 'religion',
'Software/Computing' => 'software',
'Sports' => 'sport',
'Uncategorised' => 'uncategorised',
],
],
'wgCreateWikiUseCategories' => [
'default' => true,
],
'wgCreateWikiSubdomain' => [
'default' => 'miraheze.org',
],
'wgCreateWikiUseClosedWikis' => [
'default' => true,
],
'wgCreateWikiUseCustomDomains' => [
'default' => true,
],
'wgCreateWikiUseEchoNotifications' => [
'default' => true,
],
'wgCreateWikiUseInactiveWikis' => [
'default' => true,
],
'wgCreateWikiUsePrivateWikis' => [
'default' => true,
],
// Cookies extension settings [MW]
'wgCookieWarningMoreUrl' => [
'default' => 'https://meta.miraheze.org/wiki/Privacy_Policy#4._Cookies',
],
'wgCookieSetOnAutoblock' => [
'default' => true,
],
// Cookies extension settings [MWExempt]
'wgCookieWarningEnabled' => [
'default' => true,
],
'wgCookieWarningGeoIPLookup' => [
'default' => 'php',
],
'wgCookieWarningGeoIp2' => [
'default' => true,
],
'wgCookieWarningGeoIp2Path' => [
'default' => '/srv/GeoLite2-City.mmdb',
],
// Cookie stuff [MW]
'wgCookieSetOnIpBlock' => [
'default' => true,
],
// Database [MWExempt]
'wgAllowSchemaUpdates' => [
'default' => false,
],
'wgCompressRevisions' => [
'default' => false,
'absurdopediawiki' => true,
'allthetropeswiki' => true,
'baobabarchiveswiki' => true,
'beidipediawiki' => true,
'buswiki' => true,
'nonciclopediawiki' => true,
'nonsensopediawiki' => true,
'openhatchwiki' => true,
'trollpastawiki' => true,
'trollpastauncensoredwiki' => true,
],
'wgDBadminuser' => [
'default' => 'wikiadmin',
],
'wgDBuser' => [
'default' => 'mediawiki',
],
'wgReadOnly' => [
'default' => false,
],
'wgSharedDB' => [
'default' => 'metawiki',
],
'wgSharedTables' => [
'default' => [],
],
'wgActorTableSchemaMigrationStage' => [
'default' => SCHEMA_COMPAT_NEW,
'test1wiki' => SCHEMA_COMPAT_NEW,
],
'wgCommentTableSchemaMigrationStage' => [
'default' => MIGRATION_NEW,
],
// Delete [MWExempt]
'wgDeleteRevisionsLimit' => [
'default' => '250', // databases don't have much memory - let's not overload them in future
],
// DJVU [MWExempt]
'wgDjvuDump' => [
'default' => '/usr/bin/djvudump',
],
'wgDjvuRenderer' => [
'default' => '/usr/bin/ddjvu',
],
'wgDjvuTxt' => [
'default' => '/usr/bin/djvutxt',
],
// ParserFunctions [MW]
'wgPFEnableStringFunctions' => [
'default' => false,
],
'wgAllowSlowParserFunctions' => [
'default' => false,
],
// Echo [MW]
'wgEchoCrossWikiNotifications' => [
'default' => true,
],
'wgEchoUseJobQueue' => [
'default' => true,
],
'wgEchoSharedTrackingCluster' => [
'default' => 'echo',
],
'wgEchoSharedTrackingDB' => [
'default' => 'metawiki',
],
'wgEchoUseCrossWikiBetaFeature' => [
'default' => true,
],
'wgEchoMentionStatusNotifications' => [
'default' => true,
],
// Exempt from Robot Control (INDEX/NOINDEX namespaces) [MWCandidate]
'wgExemptFromUserRobotsControl' => [
'default' => $wgContentNamespaces,
'thelonsdalebattalionwiki' => [],
],
// ElasticSearch [MWExempt]
'wmgDisableSearchUpdate' => [
'default' => false,
],
'wmgSearchType' => [
'default' => false,
'allthetropeswiki' => true,
'metawiki' => true,
'nonsensopediawiki' => true,
'test1wiki' => true,
],
// Extensions and Skins [MW]
'wmgUse3D' => [
'default' => false,
],
'wmgUseAddThis' => [
'default' => false,
],
'wmgUseAddHTMLMetaAndTitle' => [
'default' => false,
],
'wmgUseAdminLinks' => [
'default' => false,
],
'wmgUseAJAXPoll' => [
'default' => false,
],
'wmgUseApex' => [
'default' => false,
],
'wmgUseApprovedRevs' => [
'default' => false,
],
'wmgUseArticleFeedbackv5' => [
'default' => false,
],
'wmgUseArticleRatings' => [
'default' => false,
],
'wmgUseArticleToCategory2' => [
'default' => false,
],
'wmgUseAuthorProtect' => [
'default' => false,
],
'wmgUseAutoCreateCategoryPages' => [
'default' => false, // DO NOT enable on wikis that have more than 500 categories. See T1230
],
'wmgUseBlogPage' => [
'default' => false,
],
'wmgUseBabel' => [
'default' => false,
],
'wmgUseMSCalendar' => [
'default' => false,
],
'wmgUseCapiunto' => [
'default' => false,
],
'wmgUseCargo' => [
'default' => false,
],
'wmgUseCategoryTree' => [
'default' => true,
'whentheycrywiki' => false,
],
'wmgUseCharInsert' => [
'default' => false,
],
'wmgUseCirrusSearch' => [
'default' => false,
'allthetropeswiki' => true,
'metawiki' => true,
'nonsensopediawiki' => true,
'test1wiki' => true,
],
'wmgUseCite' => [
'default' => false,
],
'wmgUseCiteThisPage' => [
'default' => false,
],
'wmgUseCitoid' => [
'default' => false,
],
'wmgUseCodeEditor' => [
'default' => false,
],
'wmgUseCodeMirror' => [
'default' => false,
],
'wmgUseCollapsibleVector' => [
'default' => false,
],
'wmgUseCollection' => [
'default' => false,
],
'wmgUseComments' => [
'default' => false, // Sysop has 'commentadmin' by default
],
'wmgUseContactPage' => [
'default' => false, // Add wiki config to ContactPage.php
'apellidosmurcianoswiki' => true,
'ayrshirewiki' => true,
'christipediawiki' => true,
'cdcwiki' => true,
'fablabesdswiki' => true,
'guiaslocaiswiki' => true,
'qboxnextwiki' => true,
'test1wiki' => true,
],
'wmgUseContributionScores' => [
'default' => false,
],
'wmgUseCreatePage' => [
'default' => false,
],
'wmgUseCreateRedirect' => [
'default' => false,
],
'wmgUseCrossReference' => [
'default' => false,
],
'wmgUseCSS' => [
'default' => false,
],
'wmgUseDarkVector' => [
'default' => false,
],
'wmgUseDataDump' => [
'default' => true,
],
'wmgUseDescription2' => [
'default' => false,
],
'wmgUseDisambiguator' => [
'default' => false,
],
'wmgUseDismissableSiteNotice' => [
'default' => true,
],
'wmgUseDisplayTitle' => [
'default' => false,
],
'wmgUseDuskToDawn' => [
'default' => false,
],
'wmgUseDonateBoxInSidebar' => [ # Disabled for now --Rececption123
'default' => false,
'metawiki' => true,
'test1wiki' => true,
],
'wmgUseDPLForum' => [
'default' => false,
],
'wmgUseDummyFandoomMainpageTags' => [
'default' => false,
],
'wmgUseDuplicator' => [
'default' => false,
],
'wmgUseDynamicPageList' => [ // DynamicPageList and DynamicPageList3 should NOT be enabled together; they do not work together
'default' => false,
],
'wmgUseDynamicPageList3' => [ // DynamicPageList and DynamicPageList3 should NOT be enabled together; they do not work together
'default' => false,
],
'wmgUseEditcount' => [
'default' => false,
],
'wmgUseEditSubpages' => [
'default' => false,
],
'wmgUseEducationProgram' => [
'default' => false,
],
'wmgUseElectronPdfService' => [
'default' => false,
],
'wmgUseErudite' => [
'default' => false,
],
'wmgUseEventLogging' => [
'default' => false,
],
'wmgUseFancyBoxThumbs' => [
'default' => false,
],
'wmgUseFeaturedFeeds' => [
'default' => false, // Not enabled anywhere?
],
'wmgUseFlaggedRevs' => [
'default' => false,
],
'wmgUseFlow' => [
'default' => false, // Please make sure MediaWiki services is enabled on the wiki in the services.yaml file in the services repo
],
'wmgUseForeground' => [
'default' => false,
],
'wmgUseGadgets' => [
'default' => false,
],
'wmgUseGamepress' => [
'default' => false,
],
'wmgUseGenealogy' => [
'default' => false,
],
'wmgUseGeoCrumbs' => [
'default' => false,
],
'wmgUseGeoData' => [
'default' => false,
],
'wmgUseGettingStarted' => [
'default' => false,
],
'wmgUseGlobalUserPage' => [
'default' => true,
],
'wmgUseGraph' => [
'default' => false,
],
'wmgUseGroupsSidebar' => [
'default' => false,
],
'wmgUseGuidedTour' => [
'default' => false,
],
'wmgUseHAWelcome' => [
'default' => false,
],
'wmgUseHeaderTabs' => [
'default' => false,
],
'wmgUseHideSection' => [
'default' => false,
],
'wmgUseHighlightLinksInCategory' => [
'default' => false,
],
'wmgUseImageMap' => [
'default' => false,
],
'wmgUseImageRating' => [
'default' => false,
],
'wmgUseInputBox' => [
'default' => false,
],
'wmgUseJavascriptSlideshow' => [
'default' => false,
],
'wmgUseJosa' => [
'default' => false,
],
'wmgUseJSBreadCrumbs' => [
'default' => false,
],
'wmgUseKartographer' => [
'default' => false,
],
'wmgUseLabeledSectionTransclusion' => [
'default' => false,
],
'wmgUseLiberty' => [
'default' => false,
],
'wmgUseLinkSuggest' => [
'default' => false,
],
'wmgUseLinkTarget' => [
'default' => false,
],
'wmgUseLinkTitles' => [
'default' => false,
],
'wmgUseListings' => [
'default' => false,
],
'wmgUseLoopsCombo' => [
'default' => false,
],
'wmgUseMagicNoCache' => [
'default' => false,
],
'wmgUseMaps' => [
'default' => false,
],
'wmgUseMask' => [
'default' => false,
],
'wmgUseMassEditRegex' => [
'default' => false, // sysop is given permission 'masseditregex' by default
],
'wmgUseMassMessage' => [
'default' => false,
],
'wmgUseMath' => [
'default' => false,
],
'wmgUseMediaWikiChat' => [
'default' => false,
],
'wmgUseMetrolook' => [
'default' => false,
],
'wmgUseMobileFrontend' => [
'default' => true,
],
'wmgUseModeration' => [
'default' => false,
],
'wmgUseModernSkylight' => [
'default' => false,
],
'wmgUseMsCatSelect' => [
'default' => false,
],
'wmgUseMsLinks' => [
'default' => false,
],
'wmgUseMsUpload' => [
'default' => false,
],
'wmgUseMultimediaViewer' => [
'default' => false,
],
'wmgUseMultiBoilerplate' => [
'default' => false,
],
'wmgUseNewestPages' => [
'default' => false,
],
'wmgUseNews' => [
'default' => false,
],
'wmgUseNewSignupPage' => [
'default' => false,
],
'wmgUseNewsletter' => [
'default' => false,
],
'wmgUseNewUserMessage' => [
'default' => false,
],
'wmgUseNewUserNotif' => [
'default' => false,
],
'wmgUseNostalgia' => [
'default' => false,
],
'wmgUseNoTitle' => [
'default' => false,
],
'wmgUseNukeDPL' => [
'default' => false,
],
'wmgUseNumberedHeadings' => [
'default' => false,
],
'wmgUseOpenGraphMeta' => [
'default' => false,
],
'wmgUsePagedTiffHandler' => [
'default' => false,
],
'wmgUsePageForms' => [
'default' => false,
],
'wmgUsePageNotice' => [
'default' => false,
],
'wmgUsePageTriage' => [
'default' => false,
],
'wmgUsePDFEmbed' => [
'default' => false,
],
'wmgUsePdfHandler' => [
'default' => false,
],
'wmgUsePipeEscape' => [
'default' => false,
],
'wmgUsePivot' => [
'default' => false,
],
'wmgUsePoem' => [
'default' => false,
],
'wmgUsePopups' => [
'default' => false,
],
'wmgUsePoll' => [
'default' => false,
],
'wmgUsePollNY' => [
'default' => false,
],
'wmgUsePortableInfobox' => [
'default' => false,
],
'wmgUseProofreadPage' => [
'default' => false,
],
'wmgUseProtectSite' => [
'default' => false,
],
'wmgUsePurge' => [
'default' => false,
],
'wmgUseQuiz' => [
'default' => false,
],
'wmgUseQuizGame' => [
'default' => false,
],
'wmgUseRandomGameUnit' => [
'default' => false,
],
'wmgUseRandomImage' => [
'default' => false,
],
'wmgUseRandomSelection' => [
'default' => false,
],
'wmgUseRefreshed' => [
'default' => false,
],
'wmgUseRelatedArticles' => [
'default' => false,
],
'wmgUseReplaceText' => [
'default' => false,
],
'wmgUseRevisionSlider' => [
'default' => false,
],
'wmgUseRSS' => [
'default' => false,
],
'wmgUseSandboxLink' => [
'default' => false,
],
'wmgUseScore' => [
'default' => false,
],
'wmgUseScratchBlocks' => [
'default' => false,
],
'wmgUseShortURL' => [
'default' => true,
'macfan4000wiki' => false,
],
'wmgUseSimpleChanges' => [
'default' => false,
],
'wmgUseSimpleTooltip' => [
'default' => false,
],
'wmgUseSiteScout' => [
'default' => false,
],
// Requires copying of two directories: https://www.mediawiki.org/wiki/Extension:SocialProfile#Directories
// Should be this, but change $nameofwiki at the end:
// sudo -u www-data cp -R /srv/mediawiki/w/extensions/SocialProfile/avatars /srv/mediawiki/w/extensions/SocialProfile/awards /mnt/mediawiki-static/$nameofwiki/
'wmgUseSocialProfile' => [
'default' => false,
],
'wmgUseSpoilers' => [
'default' => false,
],
'wmgUseSubpageFun' => [
'default' => false,
],
'wmgUseSubPageList3' => [
'default' => false,
],
'wgScribuntoUseGeSHi' => [
'default' => true,
],
// Combo of Tabs + Tabber
'wmgUseTabsCombination' => [
'default' => false,
],
'wmgUseTemplateSandbox' => [
'default' => false,
],
'wmgUseTemplateStyles' => [
'default' => false,
],
'wmgUseTemplateWizard' => [
'default' => false,
],
'wmgUseTheme' => [
'default' => false,
],
'wmgUseTimedMediaHandler' => [
'default' => false,
],
'wmgUseTimeline' => [
'default' => false,
],
'wmgUseThanks' => [
'default' => false,
],
'wmgUseTitleKey' => [
'default' => false,
],
'wmgUseTocTree' => [
'default' => false,
],
'wmgUseTranslate' => [
'default' => false,
],
'wmgUseTweeki' => [
'default' => false,
],
'wmgUseTwoColConflict' => [
'default' => false,
],
'wmgUseUniversalLanguageSelector' => [
'default' => false,
],
'wmgUseUploadsLink' => [
'default' => false,
],
'wmgUseUrlGetParameters' => [
'default' => false,
],
'wmgUseUserWelcome' => [
'default' => false,
],
'wmgUseVoteNY' => [
'default' => false,
],
'wmgUseVisualEditor' => [
'default' => false, // Please make sure MediaWiki services is enabled on the wiki in the services.yaml file in the services repo
],
'wmgUseVariables' => [
'default' => false,
],
'wmgUseWebChat' => [
'default' => false,
],
'wmgUseWhoIsWatching' => [
'default' => false,
'test1wiki' => true,
],
'wmgUseWidgets' => [
'default' => false,
],
'wmgUseWikibaseRepository' => [
'default' => false,
],
'wmgUseWikibaseClient' => [
'default' => false,
],
'wmgAllowEntityImport' => [
'default' => false,
],
'wmgEnableEntitySearchUI' => [
'default' => true,
],
'wmgUseWikiCategoryTagCloud' => [
'default' => false,
],
'wmgUseWikidataPageBanner' => [
'default' => false,
],
'wmgUseWikiForum' => [
'default' => false,
],
'wmgUsewikihiero' => [
'default' => false,
'test1wiki' => true,
],
'wmgUseWikimediaIncubator' => [
'default' => false,
],
'wmgUseWikiLove' => [
'default' => false,
],
'wmgUseWikiSeo' => [
'default' => false,
],
'wmgUseWikiTextLoggedInOut' => [
'default' => false,
],
'wmgUseYouTube' => [
'default' => false,
],
// TemplateStyles config
'wgTemplateStylesAllowedUrls' => [
// Remove when https://gerrit.wikimedia.org/r/486828/ is merged
'default' => [
'audio' => [
'<^(?:https:)?\/\/upload\\.wikimedia\\.org\/wikipedia\/commons\/>',
],
'image' => [
'<^(?:https:)?\/\/upload\\.wikimedia\\.org\/wikipedia\/commons\/>',
],
'svg' => [
'<^(?:https:)?\/\/upload\\.wikimedia\\.org/wikipedia\/commons\/[^?#]*\\.svg(?:[?#]|$)>',
],
'font' => [],
'namespace' => [ '<.>' ],
'css' => [],
],
],
// External link target [MW]
'wgExternalLinkTarget' => [
'default' => false,
],
// Allow External Images [MWCandidate]
'wgAllowExternalImages' => [
'default' => false,
],
'wgAllowExternalImagesFrom' => [
'default' => false,
'astrobiologywiki' => [
'https://www.science20.com',
'https://quora.com',
'https://robertinventor.com',
],
'doomsdaydebunkedwiki' => [
'https://www.science20.com',
'https://quora.com',
'https://robertinventor.com',
],
],
// Allow HTML tag [MW]
'wgAllowImageTag' => [
'default' => false,
],
// FlaggedRevs [MWCandidate]
'wmgFlaggedRevsNamespaces' => [
'default' => [
NS_MAIN,
NS_FILE,
NS_TEMPLATE,
NS_HELP,
NS_PROJECT,
],
'isvwiki' => [
NS_MAIN,
NS_FILE,
NS_TEMPLATE,
NS_CATEGORY,
WMG_NS_MODULE,
NS_LIBRARY,
],
'trexwiki' => [
NS_ARTIKEL,
NS_FILE,
NS_TEMPLATE,
],
],
'wmgFlaggedRevsProtection' => [
'default' => false,
'pruebawiki' => true,
],
'wmgFlaggedRevsTags' => [
'default' => [
'status' => [
'quality' => 1,
'levels' => 2,
'pristine' => 3,
],
],
'infectopedwiki' => [
'accuracy' => [
'levels' => 3,
'quality' => 2,
'pristine' => 4,
],
'depth' => [
'levels' => 3,
'quality' => 2,
'pristine' => 4,
],
'tone' => [
'levels' => 3,
'quality' => 1,
'pristine' => 4,
],
],
'isvwiki' => [
'status' => [
'levels' => 1,
'quality' => 2,
'pristine' => 4,
],
],
],
'wmgFlaggedRevsTagsRestrictions' => [
'default' => [
'status' => [
'review' => 1,
'autoreview' => 1,
],
],
],
'wmgFlaggedRevsTagsAuto' => [
'default' => [
'status' => 1,
],
],
'wmgFlaggedRevsAutopromote' => [
'default' => [
'days' => 14,
'edits' => 100,
'excludeLastDays' => 1,
'benchmarks' => 1,
'spacing' => 1,
'totalContentEdits' => 100,
'totalCheckedEdits' => 100,
'uniqueContentPages' => 10,
'editComments' => 80,
'userpageBytes' => 1,
'neverBlocked' => true,
'maxRevertedEditRatio' => 0.05,
],
'isvwiki' => false,
'pruebawiki' => false,
],
'wmgFlaggedRevsAutoReview' => [
'default' => true,
],
'wmgFlaggedRevsRestrictionLevels' => [
'default' => [ '', 'sysop' ],
'pruebawiki' => [ '', 'sysop', 'bureaucrat', 'consul', 'autoconfirmed', 'user' ],
],
'wmgSimpleFlaggedRevsUI' => [
'default' => true,
'infectopedwiki' => false,
],
'wmgFlaggedRevsLowProfile' => [
'default' => true,
'infectopedwiki' => false,
],
// Files [MW]
'wgEnableUploads' => [
'default' => true,
],
// T3797
'wgMaxUploadSize' => [
'default' => 262144000,
],
'wgUploadSizeWarning' => [
'default' => 262144000,
],
'wgAllowCopyUploads' => [
'default' => false,
],
'wgCopyUploadsFromSpecialUpload' => [
'default' => false,
],
// Must be kept insync with wgFileExtensions in ManageWikiSettings.php
'wgFileExtensions' => [
'default' => [ 'gif', 'ico', 'jpeg', 'jpg', 'ogg', 'png', 'svg', 'pdf', 'djvu' ],
],
'wgUseInstantCommons' => [
'default' => true,
],
'wgMaxImageArea' => [
'default' => '1.25e7',
],
'wgMirahezeCommons' => [
'default' => true,
],
'wgEnableImageWhitelist' => [
'default' => false,
],
'wgShowArchiveThumbnails' => [
'default' => true,
],
'wgVerifyMimeType' => [
'default' => true,
],
'wgSVGMetadataCutoff' => [
'default' => 262144,
],
'wgSVGConverter' => [
'default' => 'ImageMagick',
],
// Flow [MWCandidate] (MWNamespaces?)
'wmgFlowDefaultNamespaces' => [
'default' => true,
'nationsglorywiki' => false,
'lzhscpwikiwiki' => false,
],
// GlobalBlocking [MWExempt]
'wgApplyGlobalBlocks' => [
'default' => true,
'metawiki' => false,
'weatherwiki' => false, // let me do the blocking on my wiki, please
],
'wgGlobalBlockingDatabase' => [
'default' => 'mhglobal', // use mhglobal for global blocks
],
// GlobalCssJs [MWCandidate]
'wgGlobalCssJsConfig' => [
'default' => [
'wiki' => 'metawiki',
'source' => 'metawiki',
],
],
'+wgResourceLoaderSources' => [
'default' => [
'metawiki' => [
'apiScript' => '//meta.miraheze.org/w/api.php',
'loadScript' => '//meta.miraheze.org/w/load.php',
],
],
],
'wgUseGlobalSiteCssJs' => [
'default' => false,
],
// GlobalPreferences [MWExempt]
'wgGlobalPreferencesDB' => [
'default' => 'centralauth',
],
// GlobalUserPage [MWExempt]
'wgGlobalUserPageAPIUrl' => [
'default' => 'https://login.miraheze.org/w/api.php',
],
'wgGlobalUserPageDBname' => [
'default' => 'loginwiki',
],
// HighlightLinks [MWCandidate]
'wgHighlightLinksInCategory' => [
'default' => [],
'allthetropeswiki' => [
'Trope' => 'trope',
'YMMV_Trope' => 'ymmv',
],
],
// ImageMagick [MWExempt]
'wgUseImageMagick' => [
'default' => true,
],
'wgImageMagickCommand' => [
'default' => '/usr/bin/convert',
],
// IncidentReporting [MWExempt]
'wgIncidentReportingDatabase' => [
'default' => 'incidents',
],
'wgIncidentReportingServices' => [
'default' => [
'Bacula' => 'https://meta.miraheze.org/wiki/Tech:Bacula',
'DNS' => 'https://meta.miraheze.org/wiki/Tech:DNS',
'Ganglia' => 'https://meta.miraheze.org/wiki/Tech:Ganglia',
'Icinga' => 'https://meta.miraheze.org/wiki/Tech:Icinga',
'LizardFS' => false,
'Mail' => 'https://meta.miraheze.org/wiki/Tech:Mail',
'MariaDB' => 'https://meta.miraheze.org/wiki/Tech:MariaDB',
'Matomo' => 'https://meta.miraheze.org/wiki/Tech:Matomo',
'MediaWiki' => 'https://meta.miraheze.org/wiki/Tech:MediaWiki_appserver',
'NFS' => 'https://meta.miraheze.org/wiki/Tech:NFS',
'Parsoid' => 'https://meta.miraheze.org/wiki/Tech:Parsoid',
'Phabricator' => 'https://meta.miraheze.org/wiki/Tech:Phabricator',
'Puppet Server' => 'https://meta.miraheze.org/wiki/Tech:Puppet',
'Redis' => 'https://meta.miraheze.org/wiki/Tech:Redis',
'Salt' => 'https://meta.miraheze.org/wiki/Tech:Salt',
'Service Providers' => false,
'Varnish' => 'https://meta.miraheze.org/wiki/Tech:Varnish',
],
],
'wgIncidentReportingTaskUrl' => [
'default' => 'https://phabricator.miraheze.org/',
],
// Interwiki [MWCandidate]
'wgEnableScaryTranscluding' => [
'default' => true,
],
'wgInterwikiCentralDB' => [
'default' => 'metawiki',
],
'wgExtraInterlanguageLinkPrefixes' => [
'default' => [],
'+apunteswiki' => [
'ct',
'm',
'u',
'i',
'd',
't',
'p',
'w',
'v',
'n',
'b',
'wikt',
'q',
'ver',
's',
'alt',
],
'+centralwiki' => [
'm',
'u',
'i',
'a',
'd',
't',
'p',
'w',
'v',
'n',
'b',
'wikt',
'q',
'ver',
's',
'alt',
],
'+destinoswiki' => [
'ct',
'm',
'u',
'i',
'a',
't',
'p',
'w',
'v',
'n',
'b',
'wikt',
'q',
'ver',
's',
'alt',
],
'+infowiki' => [
'ct',
'm',
'u',
'a',
'd',
't',
'p',
'w',
'v',
'n',
'b',
'wikt',
'q',
'ver',
's',
'alt',
],
'+mediatecawiki' => [
'ct',
'u',
'i',
'a',
'd',
't',
'p',
'w',
'v',
'n',
'b',
'wikt',
'q',
'ver',
's',
'alt',
],
'+nonciclopediawiki' => [
'dlm',
'olb',
'tlh',
'zombie',
],
'+privadowiki' => [
'ct',
'm',
'u',
'i',
'a',
'd',
't',
'w',
'v',
'n',
'b',
'wikt',
'q',
'ver',
's',
'alt',
],
'+tallerwiki' => [
'ct',
'm',
'u',
'i',
'a',
'd',
'p',
'w',
'v',
'n',
'b',
'wikt',
'q',
'ver',
's',
'alt',
],
'+ucroniaswiki' => [
'ct',
'm',
'i',
'a',
'd',
't',
'p',
'w',
'v',
'n',
'b',
'wikt',
'q',
'ver',
's',
'alt',
],
],
// Imports [MWExempt]
'wgImportSources' => [
'default' => [
'meta',
'templatewiki',
],
'+incubatorwiki' => [
'wmincubator',
'wikiaincubatorplus',
],
'+weatherwiki' => [
'wikipedia',
],
'+zhdelwiki' => [
'wikipedia',
'zhwikipedia',
],
],
// Job Queue [MWExempt]
'wgJobRunRate' => [
'default' => 0,
],
// Kartographer [MW]
'wgKartographerWikivoyageMode' => [
'default' => false,
],
'wgKartographerUseMarkerStyle' => [
'default' => false,
],
// Language [MWExempt]
'wgLanguageCode' => [ // Hardcode "en"
'default' => 'en',
],
// License [MW]
'wgRightsIcon' => [
'default' => 'https://meta.miraheze.org/w/resources/assets/licenses/cc-by-sa.png',
'incubatorwiki' => 'https://meta.miraheze.org/w/resources/assets/licenses/cc-by-sa.png',
'isvwiki' => 'https://meta.miraheze.org/w/resources/assets/licenses/cc-by-sa.png',
'jadtechwiki' => "//$wmgUploadHostname/jadtechwiki/d/d8/CopyrightIcon.png",
'revitwiki' => "//$wmgUploadHostname/revitwiki/d/d8/All_Rights_Reserved.png",
],
'wgRightsPage' => [
'default' => '',
'diavwiki' => 'Project:Copyrights',
'kstartupswiki' => 'Project:저작권',
'wisdomwikiwiki' => 'Copyleft',
],
'wgRightsText' => [
'default' => 'Creative Commons Attribution Share Alike',
'incubatorwiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)',
'isvwiki' => 'Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)',
'jadtechwiki' => 'Copyright © Jak and Daxter Technical Wiki. All rights reserved.',
'revitwiki' => '©2013-2019 by Lionel J. Camara (All Rights Reserved)',
'reviwikiwiki' => 'Creative Commons Attribution Share Alike',
],
'wgRightsUrl' => [
'default' => 'https://creativecommons.org/licenses/by-sa/4.0/',
'incubatorwiki' => 'https://creativecommons.org/licenses/by-sa/3.0',
'isvwiki' => 'https://creativecommons.org/licenses/by-sa/3.0',
'jadtechwiki' => 'https://jadtech.miraheze.org/wiki/MediaWiki:Copyright',
'revitwiki' => 'https://revit.miraheze.org/wiki/MediaWiki:Copyright',
'reviwikiwiki' => 'https://creativecommons.org/licenses/by-sa/2.0/kr',
],
'wmgWikiLicense' => [
'default' => 'cc-by-sa',
],
// Links [MWExempt]?
'+wgUrlProtocols' => [
'default' => [],
// file protocol only allowed on private wikis
'bchwiki' => [ "file://" ],
'gzewiki' => [ "file://" ],
'kaiwiki' => [ "file://" ],
],
// Mail [MWExempt]
'wgEnableEmail' => [
'default' => true,
],
// When changing the default,
// also updated ManageWiki.php ("Moderation Email") with the new default.
'wgPasswordSender' => [
'default' => 'noreply@miraheze.org',
],
'wgSMTP' => [
'default' => [
'host' => 'mail.miraheze.org',
'port' => 25,
'IDHost' => 'miraheze.org',
'auth' => true,
'username' => 'noreply',
'password' => $wmgSMTPPassword,
],
],
'wgEnotifWatchlist' => [
'default' => true,
],
'wgUserEmailUseReplyTo' => [
'default' => true,
],
'wgEmailConfirmToEdit' => [
'default' => false,
],
// ManageWiki [MWExempt]
'wgManageWiki' => [
'default' => [
'cdb' => true,
'core' => true,
'extensions' => true,
'namespaces' => true,
'permissions' => true,
'settings' => true
],
],
'wgManageWikiExtensionsDefault' => [
'default' => [
'cite',
'citethispage',
'globaluserpage',
'mobilefrontend',
],
],
'wgManageWikiCDBDirectory' => [
'default' => '/srv/mediawiki/w/cache/managewiki',
],
'wgManageWikiPermissionsAdditionalAddGroups' => [
'default' => [],
],
'wgManageWikiPermissionsAdditionalRights' => [
'default' => [
'*' => [
'read' => true,
],
'checkuser' => [
'checkuser' => true,
'checkuser-log' => true,
],
'oversight' => [
'abusefilter-hidden-log' => true,
'abusefilter-hide-log' => true,
'browsearchive' => true,
'deletedhistory' => true,
'deletedtext' => true,
'deletelogentry' => true,
'deleterevision' => true,
'hideuser' => true,
'suppressionlog' => true,
'suppressrevision' => true,
],
'user' => [
'user' => true,
],
'steward' => [
'centralauth-usermerge' => true,
'usermerge' => true,
'userrights' => true,
],
],
'+autocountwiki' => [
'authors' => [
'torunblocked' => true,
'read' => true,
],
],
'+bitcoindebateswiki' => [
'emailconfirmed' => [
'read' => true,
],
],
'+cmgwiki' => [
'gst' => [
'read' => true,
],
],
'+dpwiki' => [
'bureaucrat' => [
'bureaucrat' => true,
'respected' => true,
],
'respected' => [
'respected' => true,
],
],
'+enigmawiki' => [
'scribe' => [
'read' => true,
],
],
'+hypopediawiki' => [
'bureaucrat' => [
'bureaucrat' => true,
],
],
'+igrovyesistemywiki' => [
'autopatrolled' => [
'trusted' => true,
],
'autoreview' => [
'trusted' => true,
],
'bot' => [
'trusted' => true,
],
'editor' => [
'trusted' => true,
],
'reviewer' => [
'trusted' => true,
],
'co' => [
'co' => true,
'ceo' => true,
'trusted' => true,
],
'bureaucrat' => [
'bureaucrat' => true,
'trusted' => true,
],
'sysmag' => [
'sysmag' => true,
'trusted' => true,
],
'sysop' => [
'trusted' => true,
],
'ceo' => [
'bureaucrat' => true,
'sysmag' => true,
'trusted' => true,
],
'UserType1' => [
'UserType1' => true,
],
'UserType2' => [
'UserType2' => true,
],
'UserType3' => [
'UserType3' => true,
],
'UserType4' => [
'UserType4' => true,
],
'UserType5' => [
'UserType5' => true,
],
'UserType6' => [
'UserType6' => true,
],
'UserType7' => [
'UserType7' => true,
],
],
'+jacksonheightswiki' => [
'emailconfirmed' => [
'read' => true,
],
],
'+jayuwikiwiki' => [
'sysop' => [
'editvoter' => true,
],
'voter' => [
'editvoter' => true,
],
],
'+lcars47wiki' => [
'bureaucrat' => [
'bureaucrat' => true,
],
'devteam' => [
'bureaucrat' => true,
'read' => true,
'devteam' => true,
],
],
'+marthaspeakswiki' => [
'sysop' => [
'templateeditor' => true,
],
'templateeditor' => [
'templateeditor' => true,
],
],
'+nenawikiwiki' => [
'emailconfirmed' => [
'read' => true,
],
],
'+metawiki' => [
'confirmed' => [
'mwoauthproposeconsumer' => true,
'mwoauthupdateownconsumer' => true,
],
'cvt' => [
'abusefilter-modify-global' => true,
'centralauth-lock' => true,
'globalblock' => true,
],
'proxybot' => [
'globalblock' => true,
'centralauth-lock' => true,
],
'steward' => [
'abusefilter-modify-global' => true,
'centralauth-lock' => true,
'centralauth-oversight' => true,
'centralauth-rename' => true,
'centralauth-unmerge' => true,
'createwiki' => true,
'globalblock' => true,
'managewiki' => true,
'managewiki-restricted' => true,
'noratelimit' => true,
'userrights' => true,
'userrights-interwiki' => true,
],
'sysop' => [
'interwiki' => true,
],
'user' => [
'requestwiki' => true,
],
'wikicreator' => [
'createwiki' => true,
],
],
'+nonsensopediawiki' => [
'moderator' => [
'skipcaptcha' => true,
],
],
'+pruebawiki' => [
'bureaucrat' => [
'bureaucrat' => true,
],
'consul' => [
'read' => true,
'bureaucrat' => true,
'consul' => true,
'torunblocked' => true,
],
'testgroup' => [
'read' => true,
],
],
'+radviserwiki' => [
'editor' => [
'editor' => true,
],
'sysop' => [
'editor' => true,
],
],
'+sau226wiki' => [
'bureaucrat' => [
'bureaucrat' => true,
],
'consul' => [
'bureaucrat' => true,
'consul' => true,
'read' => true,
],
'testgroup' => [
'read' => true,
],
],
'+serinfhospwiki' => [
'SupportStaff' => [
'read' => true,
],
'SalesStaff' => [
'read' => true,
],
'PreSalesStaff' => [
'read' => true,
],
],
'+sovereignwiki' => [
'officer' => [
'read' => true,
'officer' => true,
],
'game-master' => [
'read' => true,
'game-master' => true,
],
],
'+ssptopwiki' => [
'read-only' => [
'read' => true,
],
],
'+swisscomraidwiki' => [
'emailconfirmed' => [
'read' => true,
],
],
'+svwiki' => [
'bureaucrat' => [
'bureaucrat' => true,
],
'consul' => [
'bureaucrat' => true,
'consul' => true,
'read' => true,
],
'testgroup' => [
'read' => true,
],
],
'+thesciencearchiveswiki' => [
'sysop' => [
'templateeditor' => true,
],
'templateeditor' => [
'templateeditor' => true,
],
],
'+trexwiki' => [
'co' => [
'co' => true,
'ceo' => true,
],
'ceo' => [
'ceo' => true,
'editors' => true,
],
'bureaucrat' => [
'bureaucrat' => true,
],
],
'+whentheycrywiki' => [
'user' => [
'edit-create' => true,
],
],
'weatherwiki' => [
'steward' => [
'userrights' => true,
'userrights-interwiki' => true,
'hideuser' => true,
'suppressrevision' => true,
'suppressionlog' => true,
'viewsuppressed' => true,
'checkuser' => true,
'checkuser-log' => true,
'renameuser' => true,
'abusefilter-private' => true,
'abusefilter-private-log' => true,
'abusefilter-hide-log' => true,
'abusefilter-hidden-log' => true,
'oathauth-enable' => true,
'managewiki' => true,
'managewiki-restricted' => true,
'usermerge' => true,
],
],
'+yeoksawiki' => [
'sysop' => [
'project-edit' => true,
],
],
],
'wgManageWikiAdditionalRemoveGroups' => [
'default' => [],
],
'wgManageWikiPermissionsBlacklistRights' => [
'default' => [
'any' => [
'abusefilter-hide-log',
'abusefilter-hidden-log',
'abusefilter-modify-global',
'abusefilter-private',
'abusefilter-private-log',
'aft-oversighter',
'autocreateaccount',
'bigdelete',
'centralauth-lock',
'centralauth-oversight',
'centralauth-rename',
'centralauth-unmerge',
'centralauth-usermerge',
'checkuser',
'checkuser-log',
'createwiki',
'editincidents',
'editothersprofiles',
'flow-suppress',
'globalblock',
'globalblock-exempt',
'globalgroupmembership',
'globalgrouppermissions',
'hideuser',
'interwiki',
'managewiki-restricted',
'managewiki-editdefault',
'mwoauthmanageconsumer',
'mwoauthmanagemygrants',
'mwoauthsuppress',
'mwoauthviewprivate',
'mwoauthviewsuppressed',
'renameuser',
'requestwiki',
'siteadmin',
'suppressionlog',
'suppressrevision',
'usermerge',
'userrights',
'userrights-interwiki',
'viewglobalprivatefiles',
'viewpmlog',
'viewsuppressed',
],
'*' => [
'read',
'skipcaptcha',
'torunblocked',
'centralauth-merge',
],
],
],
'wgManageWikiPermissionsBlacklistGroups' => [
'default' => [
'checkuser',
'oversight',
'steward'
],
],
'wgManageWikiPermissionsDefaultPrivateGroup' => [
'default' => 'member',
],
'wgManageWikiHelpUrl' => [
'default' => '//meta.miraheze.org/wiki/ManageWiki',
],
// MassMessage [MWCandidate]
'wgAllowGlobalMessaging' => [
'default' => false,
'metawiki' => true,
],
'wgNamespacesToPostIn' => [
'default' => [ NS_PROJECT ],
'+bgowiki' => [
NS_MAIN,
NS_PROJECT,
],
],
// MatomoAnalytics [MWExempt]
'wgMatomoAnalyticsDatabase' => [
'default' => 'mhglobal',
],
'wgMatomoAnalyticsServerURL' => [
'default' => 'https://matomo.miraheze.org/',
],
'wgMatomoAnalyticsUseDB' => [
'default' => true,
],
'wgMatomoAnalyticsGlobalID' => [
'default' => 1,
],
// MediaWikiChat settings [MW]
'wgChatLinkUsernames' => [
'default' => false,
],
'wgChatMeCommand' => [
'default' => false,
],
// Metrolook settings [MW]
'wgMetrolookDownArrow' => [
'default' => true,
],
'wgMetrolookUploadButton' => [
'default' => true,
],
'wgMetrolookBartile' => [
'default' => true,
],
'wgMetrolookMobile' => [
'default' => true,
],
'wgMetrolookUseIconWatch' => [
'default' => true,
],
'wgMetrolookLine' => [
'default' => true,
],
'wgMetrolookFeatures' => [
'default' => [
'collapsiblenav' => [
'global' => false,
'user' => true
]
],
'thegreatwarwiki' => [
'collapsiblenav' => [
'global' => true,
'user' => true
]
],
],
// miraheze specific config [MWExempt]
'wgServicesRepo' => [
'default' => '/srv/services/services',
],
'wgMirahezeServicesExtensions' => [
'default' => [ 'VisualEditor', 'Flow' ],
],
// Misc. stuff [MW]
'wgSitename' => [
'default' => 'No sitename set!',
],
'wgAllowDisplayTitle' => [
'default' => true,
],
'wgRestrictDisplayTitle' => [
'default' => true, // Wikis with NoTitle have it set to false
],
'wgCapitalLinks' => [
'default' => true,
],
'wgActiveUserDays' => [
'default' => 30,
],
'wgEnableCanonicalServerLink' => [
'default' => false,
],
'wgPageCreationLog' => [
'default' => true,
],
// MobileFrontend [MW]
'wmgMFAutodetectMobileView' => [
'default' => false,
],
'wgMFDefaultSkinClass' => [
'default' => 'SkinMinerva',
],
'wgMobileUrlTemplate' => [
'default' => '',
],
// Moderation extension settings [MW]
// Enable or disable notifications.
'wgModerationNotificationEnable' => [
'default' => false,
],
// Notify administrator only about new pages requests.
'wgModerationNotificationNewOnly' => [
'default' => false,
],
// Email to send notifications to.
'wgModerationEmail' => [
'default' => $wgPasswordSender,
],
// MsCatSelect vars [MW]
'wgMSCS_WarnNoCategories' => [
'default' => true,
],
// MsUpload settings [MW]
'wgMSU_useDragDrop' => [
'default' => true,
],
'wgMSU_showAutoCat' => [
'default' => false,
],
'wgMSU_checkAutoCat' => [
'default' => false,
],
'wgMSU_confirmReplace' => [
'default' => false,
],
// MultiBoilerplate settings [MW]
'wgMultiBoilerplateDiplaySpecialPage' => [
'default' => false,
],
// MultimediaViewer (not beta) [MW]
'wgMediaViewerEnableByDefault' => [
'default' => false,
],
// MobileFrontend [MWCandidate]
'wgMFNoMobilePages' => [
'default' => [],
'alwikiwiki' => [
'Main Page',
],
],
// Math [MWExempt]
'wgMathValidModes' => [
'default' => [ 'mathml' ],
],
// Namespaces [MWNamespaces]
'wgExtraSignatureNamespaces' => [
'default' => [],
'nonciclopediawiki' => [
NS_HELP,
NS_PROJECT,
],
],
'wgMetaNamespace' => [
'default' => null,
],
'wgMetaNamespaceTalk' => [
'default' => null,
],
'wgNamespaceContentModels' => [
'default' => [],
'apunteswiki' => [
NS_TEST_TALK => 'flow-board',
NS_PAGE_TALK => 'flow-board',
NS_ANEXO_TALK => 'flow-board',
NS_REGISTRO_TALK => 'flow-board',
NS_LISTA_TALK => 'flow-board',
NS_PROYECTO_TALK => 'flow-board',
NS_TALLER_TALK => 'flow-board',
NS_MODELO_TALK => 'flow-board',
NS_EXAMPLE_TALK => 'flow-board',
],
'centralwiki' => [
NS_TEST_TALK => 'flow-board',
NS_PAGE_TALK => 'flow-board',
NS_ANEXO_TALK => 'flow-board',
NS_REGISTRO_TALK => 'flow-board',
NS_LISTA_TALK => 'flow-board',
NS_PROYECTO_TALK => 'flow-board',
NS_TALLER_TALK => 'flow-board',
NS_MODELO_TALK => 'flow-board',
NS_EXAMPLE_TALK => 'flow-board',
],
'destinoswiki' => [
NS_TEST_TALK => 'flow-board',
NS_PAGE_TALK => 'flow-board',
NS_ANEXO_TALK => 'flow-board',
NS_REGISTRO_TALK => 'flow-board',
NS_LISTA_TALK => 'flow-board',
NS_PROYECTO_TALK => 'flow-board',
NS_TALLER_TALK => 'flow-board',
NS_MODELO_TALK => 'flow-board',
NS_EXAMPLE_TALK => 'flow-board',
],
'infowiki' => [
NS_TEST_TALK => 'flow-board',
NS_PAGE_TALK => 'flow-board',
NS_ANEXO_TALK => 'flow-board',
NS_REGISTRO_TALK => 'flow-board',
NS_LISTA_TALK => 'flow-board',
NS_PROYECTO_TALK => 'flow-board',
NS_TALLER_TALK => 'flow-board',
NS_MODELO_TALK => 'flow-board',
NS_EXAMPLE_TALK => 'flow-board',
],
'isvwiki' => [
WMG_NS_MODULE_TALK => 'flow-board',
NS_LIBRARY_TALK => 'flow-board',
],
'mediatecawiki' => [
NS_TEST_TALK => 'flow-board',
NS_PAGE_TALK => 'flow-board',
NS_ANEXO_TALK => 'flow-board',
NS_REGISTRO_TALK => 'flow-board',
NS_LISTA_TALK => 'flow-board',
NS_PROYECTO_TALK => 'flow-board',
NS_TALLER_TALK => 'flow-board',
NS_MODELO_TALK => 'flow-board',
NS_EXAMPLE_TALK => 'flow-board',
],
'monarchistswiki' => [
NS_MUSINGS_TALK => 'flow-board',
],
'privadowiki' => [
NS_TEST_TALK => 'flow-board',
NS_PAGE_TALK => 'flow-board',
NS_ANEXO_TALK => 'flow-board',
NS_REGISTRO_TALK => 'flow-board',
NS_LISTA_TALK => 'flow-board',
NS_PROYECTO_TALK => 'flow-board',
NS_TALLER_TALK => 'flow-board',
NS_MODELO_TALK => 'flow-board',
NS_EXAMPLE_TALK => 'flow-board',
],
'taller' => [
NS_TEST_TALK => 'flow-board',
NS_PAGE_TALK => 'flow-board',
NS_ANEXO_TALK => 'flow-board',
NS_REGISTRO_TALK => 'flow-board',
NS_LISTA_TALK => 'flow-board',
NS_PROYECTO_TALK => 'flow-board',
NS_TALLER_TALK => 'flow-board',
NS_MODELO_TALK => 'flow-board',
NS_EXAMPLE_TALK => 'flow-board',
],
'ucroniaswiki' => [
NS_TEST_TALK => 'flow-board',
NS_PAGE_TALK => 'flow-board',
NS_ANEXO_TALK => 'flow-board',
NS_REGISTRO_TALK => 'flow-board',
NS_LISTA_TALK => 'flow-board',
NS_PROYECTO_TALK => 'flow-board',
NS_TALLER_TALK => 'flow-board',
NS_MODELO_TALK => 'flow-board',
NS_EXAMPLE_TALK => 'flow-board',
],
],
// OATHAuth [MWExempt]
'wgOATHAuthDatabase' => [
'default' => 'mhglobal',
],
// OAuth [MWExempt]
'wgMWOAuthCentralWiki' => [
'default' => 'metawiki',
],
'wgMWOAuthSharedUserSource' => [
'default' => 'CentralAuth',
],
'wgMWOAuthSecureTokenTransfer' => [
'default' => true,
],
// Pagelang [MW]
'wgPageLanguageUseDB' => [
'default' => false,
],
// Page Size [MW]
'wgMaxArticleSize' => [
'default' => 2048,
],
// Permissions [MWPermissions]
'wgGroupsAddToSelf' => [
'default' => [],
],
'wgGroupsRemoveFromSelf' => [
'default' => [],
],
'wgRevokePermissions' => [
'default' => [],
'ssptopwiki' => [
'read-only' => [
'edit' => true,
],
],
'weatherwiki' => [
'banned' => [
'editmyoptions' => true,
'editmyprivateinfo' => true,
'editmyusercss' => true,
'editmyuserjs' => true,
'editmywatchlist' => true,
'read' => true,
'writeapi' => true,
'viewmyprivateinfo' => true,
'viewmywatchlist' => true,
],
],
],
'wgAutopromote' => [
'default' => [
'autoconfirmed' => [
"&",
[ APCOND_EDITCOUNT, &$wgAutoConfirmCount ],
[ APCOND_AGE, &$wgAutoConfirmAge ],
],
],
'+bitcoindebateswiki' => [
'emailconfirmed' => [
APCOND_EMAILCONFIRMED,
],
],
'+nenawikiwiki' => [
'emailconfirmed' => [
APCOND_EMAILCONFIRMED,
],
],
'+igrovyesistemywiki' => [
'UserType1' => [
"&",
[ APCOND_EDITCOUNT, 1 ],
[ APCOND_AGE, 0 ],
[ '!', [ APCOND_INGROUPS, 'UserType2' ] ],
],
'UserType2' => [
"&",
[ APCOND_EDITCOUNT, 50 ],
[ APCOND_AGE, 0 ],
[ '!', [ APCOND_INGROUPS, 'UserType3' ] ],
],
'UserType3' => [
"&",
[ APCOND_EDITCOUNT, 300 ],
[ APCOND_AGE, 0 ],
[ '!', [ APCOND_INGROUPS, 'UserType4' ] ],
],
'UserType4' => [
"&",
[ APCOND_EDITCOUNT, 500 ],
[ APCOND_AGE, 0 ],
[ '!', [ APCOND_INGROUPS, 'UserType5' ] ],
],
'UserType5' => [
"&",
[ APCOND_EDITCOUNT, 1000 ],
[ APCOND_AGE, 0 ],
[ '!', [ APCOND_INGROUPS, 'UserType6' ] ],
],
'UserType6' => [
"&",
[ APCOND_EDITCOUNT, 2000 ],
[ APCOND_AGE, 0 ],
[ '!', [ APCOND_INGROUPS, 'UserType7' ] ],
],
'UserType7' => [
"&",
[ APCOND_EDITCOUNT, 3000 ],
[ APCOND_AGE, 0 ],
],
],
'+jacksonheightswiki' => [
'emailconfirmed' => [
APCOND_EMAILCONFIRMED,
],
],
'+kyivstarwiki' => [
'co' => [
"&",
[ APCOND_EDITCOUNT, 3000 ],
[ APCOND_AGE, 365 * 86400 ],
],
'ceo' => [
"&",
[ APCOND_EDITCOUNT, 2000 ],
[ APCOND_AGE, 275 * 86400 ],
],
'editor' => [
"&",
[ APCOND_EDITCOUNT, 300 ],
[ APCOND_AGE, 45 * 86400 ],
],
'extendedconfirmed' => [
"&",
[ APCOND_EDITCOUNT, 500 ],
[ APCOND_AGE, 90 * 86400 ],
],
'sysmag' => [
"&",
[ APCOND_EDITCOUNT, 1000 ],
[ APCOND_AGE, 185 * 86400 ],
],
'trusted' => [
"&",
[ APCOND_EDITCOUNT, 50 ],
[ APCOND_AGE, 7 * 86400 ],
],
],
'+olegcinemawiki' => [
'uploader' => [
"&",
[ APCOND_AGE, 10 * 86400 ],
],
],
],
'wgAutopromoteOnce' => [
'default' => [],
'weatherwiki' => [
'extendedconfirmed' => [
"&",
[ APCOND_EDITCOUNT, 100 ],
[ APCOND_AGE, 30 * 86400 ],
],
],
],
'wgImplicitGroups' => [
'default' => [ '*', 'user', 'autoconfirmed' ],
'bitcoindebateswiki' => [ '*', 'user', 'autoconfirmed', 'emailconfirmed' ],
],
// Password policy [MWExempt]
'wgPasswordPolicy' => [
'default' => [
'policies' => [
'default' => [
'MinimalPasswordLength' => 6,
'PasswordCannotMatchUsername' => true,
'PasswordCannotMatchBlacklist' => true,
'MaximalPasswordLength' => 4096,
],
'bot' => [
'MinimalPasswordLength' => 8,
'MinimumPasswordLengthToLogin' => 6,
'PasswordCannotMatchUsername' => true,
],
'sysop' => [
'MinimalPasswordLength' => 8,
'MinimumPasswordLengthToLogin' => 6,
'PasswordCannotMatchUsername' => true,
'PasswordCannotBePopular' => 25,
],
'bureaucrat' => [
'MinimalPasswordLength' => 8,
'MinimumPasswordLengthToLogin' => 6,
'PasswordCannotMatchUsername' => true,
'PasswordCannotBePopular' => 25,
],
],
'checks' => [
'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
'PasswordCannotMatchUsername' => 'PasswordPolicyChecks::checkPasswordCannotMatchUsername',
'PasswordCannotMatchBlacklist' => 'PasswordPolicyChecks::checkPasswordCannotMatchBlacklist',
'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
'PasswordCannotBePopular' => 'PasswordPolicyChecks::checkPopularPasswordBlacklist'
],
],
],
// RateLimits [MWExempt]
'+wgRateLimits' => [
'default' => [],
'metawiki' => [
'requestwiki' => [
'user' => [ 1, 3600 ],
],
],
],
// RecentChanges [MW]
'wgRCMaxAge' => [
'default' => 180 * 24 * 3600,
],
'wgRCLinkDays' => [
'defualt' => [ 1, 3, 7, 14, 30 ],
],
// RelatedArticles settings [MW]
'wgRelatedArticlesFooterWhitelistedSkins' => [
'default' => [
'minerva',
'timeless',
'vector',
],
],
'wgRelatedArticlesUseCirrusSearch' => [
'default' => false,
],
// Restriction types [MWCandidate]
'+wgRestrictionLevels' => [
'default' => [
'user',
],
'+bigforestwiki' => [
'editvoter',
],
'+cmgwiki' => [
'bureaucrat',
'sysop',
'pm',
'member',
],
'+dpwiki' => [
'bureaucrat',
'respected',
],
'+hypopediawiki' => [
'bureaucrat',
],
'igrovyesistemywiki' => [
'trusted',
'sysmag',
'bureaucrat',
'ceo',
'co',
],
'+kyivstarwiki' => [
'co',
'ceo',
'editor',
'extendedconfirmed',
'sysmag',
'trusted',
],
'+lcars47wiki' => [
'bureaucrat',
'devteam',
],
'+marthaspeakswiki' => [
'templateeditor',
],
'+sau226wiki' => [
'bureaucrat',
'consul',
],
'+jayuwikiwiki' => [
'editvoter',
],
'+pruebawiki' => [
'bureaucrat',
'consul',
],
'+radviserwiki' => [
'editor',
],
'+sovereignwiki' => [
'officer',
'game-master',
],
'+studynotekrwiki' => [
'voter',
],
'+testwiki' => [
'bureaucrat',
'consul',
],
'+thesciencearchiveswiki' => [
'templateeditor',
],
'+trexwiki' => [
'sysmag',
'bureaucrat',
'ceo',
'co',
],
'weatherwiki' => [],
],
// [MW]
'wgRestrictionTypes' => [
'default' => [
'create',
'delete',
'edit',
'move',
'upload',
],
],
// Robot policy [MW]
'wgDefaultRobotPolicy' => [
'default' => 'index,follow',
],
// Robot policy [MWNCandidate]
'wgNamespaceRobotPolicies' => [
'default' => [],
'taswinwiki' => [
'NS_TEMPLATE' => 'noindex,nofollow',
],
],
// RSS Settings [MWExempt]
'wgRSSCacheAge' => [
'default' => '3600'
],
'wgRSSProxy' => [
'default' => false,
],
'wgRSSDateDefaultFormat' => [
'default' => 'Y-m-d H:i:s'
],
// Scribunto [MW]
'wgCodeEditorEnableCore' => [
'default' => true,
],
'wgScribuntoUseCodeEditor' => [
'default' => true,
],
// [MWExempt]
'wgScribuntoSlowFunctionThreshold' => [
'default' => 0.99,
],
'wgScribuntoEngineConf' => [
'default' => [
'luasandbox' => [
'cpuLimit' => 10,
'maxLangCacheSize' => 200,
],
'luastandalone' => [
'cpuLimit' => 10,
'maxLangCacheSize' => 200,
],
],
],
// Site notice opt out [MW]
'wmgSiteNoticeOptOut' => [
'default' => false,
],
// Server [MWExempt]
'wgArticlePath' => [
'default' => '/wiki/$1',
],
'wgDisableOutputCompression' => [
'default' => true,
],
'wgScriptExtension' => [
'default' => '.php',
],
'wgScriptPath' => [
'default' => '/w',
],
'wgServer' => [
'default' => 'https://$lang.miraheze.org',
],
'wgShowHostnames' => [
'default' => true,
],
'wgUsePathInfo' => [
'default' => true,
],
// SiteNotice [MW]
'wgDismissableSiteNoticeForAnons' => [
'default' => true,
],
// SocialProfile [MWCandidate]
'wgUserBoard' => [
'default' => false,
],
'wgUserProfileThresholds' => [
'default' => [
'edits' => 0,
],
'allthetropes' => [
'edits' => 10,
],
],
'wgUserProfileDisplay' => [
'default' => [
'board' => false,
'friends' => false,
'foes' => false,
],
],
'wgUserStatsPointValues' => [
'default' => [
'edit' => 50,
'vote' => 0,
'comment' => 0,
'comment_plus' => 0,
'comment_ignored' => 0,
'opinions_created' => 0,
'opinions_pub' => 0,
'referral_complete' => 0,
'friend' => 0,
'foe' => 0,
'gift_rec' => 0,
'gift_sent' => 0,
'points_winner_weekly' => 0,
'points_winner_monthly' => 0,
'user_image' => 1000,
'poll_vote' => 0,
'quiz_points' => 0,
'quiz_created' => 0,
],
'uncyclopedia2wiki' => [
'edit' => 50,
'vote' => 10,
'comment' => 0,
'comment_plus' => 40,
'comment_ignored' => -10,
'opinions_created' => 0,
'opinions_pub' => 10,
'referral_complete' => 0,
'friend' => 100,
'foe' => 0,
'gift_rec' => 25,
'gift_sent' => 10,
'points_winner_weekly' => 0,
'points_winner_monthly' => 0,
'user_image' => 1000,
'poll_vote' => 10,
'quiz_points' => 50,
'quiz_created' => 20,
],
],
// Statistics [MWCandidate]
'wgArticleCountMethod' => [
'default' => 'link', // To update it, you will need to run the maintenance/updateArticleCount.php script
'fourleafficswiki' => 'any',
'ildrilwiki' => 'any',
'lothuialethwiki' => 'any',
],
// Squid (aka Varnish) [MWExempt]
'wgUseSquid' => [
'default' => true,
],
'wgSquidServers' => [
'default' => [
'107.191.126.23:81', // cp2
'128.199.139.216:81', // cp3
'81.4.109.133:81', // cp4
],
],
- // Style [MWCandidate]
+ // Style [MW]
'wgAllowUserCss' => [
'default' => true,
],
'wgAllowUserJs' => [
'default' => true,
],
'wgAppleTouchIcon' => [
'default' => '/apple-touch-icon.png',
],
'wgCentralAuthLoginIcon' => [
'default' => '/usr/share/nginx/favicons/default.ico',
],
'wgDefaultSkin' => [
'default' => 'vector',
],
'wgFavicon' => [
'default' => '/favicon.ico',
],
'wgLogo' => [
'default' => "//$wmgUploadHostname/metawiki/3/35/Miraheze_Logo.svg",
],
// TemplateSandbox [MWCandidate] (MWNamespaces?)
'wgTemplateSandboxEditNamespaces' => [
'default' => [
NS_TEMPLATE,
WMG_NS_MODULE
]
],
// Timezone [MW]
'wgLocaltimezone' => [
'default' => 'UTC',
],
- // Theme [MWCandidate]
+ // Theme [MW]
'wgDefaultTheme' => [
'default' => "",
],
// TitleBlacklist [MWExempt]
'wgTitleBlacklistSources' => [
'default' => [
'type' => 'url',
'src' => 'https://meta.miraheze.org/w/index.php?title=Title_blacklist&action=raw',
],
'meta' => [
'type' => 'url',
'src' => 'https://meta.miraheze.org/w/index.php?title=MediaWiki:Titleblacklist&action=raw',
],
],
'wgTitleBlacklistUsernameSources' => [
'default' => [
'type' => 'url',
'src' => 'https://meta.miraheze.org/w/index.php?title=Title_blacklist&action=raw',
],
'meta' => [
'type' => 'url',
'src' => 'https://meta.miraheze.org/w/index.php?title=MediaWiki:Titleblacklist&action=raw',
],
],
'wgTidyConfig' => [
'default' => [
'driver' => 'RemexHtml'
],
],
// Translate [MWCandidate]
'wmgTranslateBlacklist' => [
'default' => [],
'metawiki' => [
'*' => [
'en' => 'English is the source language.',
],
],
'spiralwiki' => [
'*' => [
'en' => 'English is the source language.',
],
],
],
'wmgTranslateTranslationServices' => [
'default' => [],
],
'wmgTranslateDocumentationLanguageCode' => [
'default' => false,
'nvcwiki' => 'qqq',
],
// UniversalLanguageSelector [MWCandidate]
'wgULSAnonCanChangeLanguage' => [
'default' => false,
],
// UrlShortener [MWExempt]
'wgUrlShortenerTemplate' => [
'default' => '/m/$1',
],
'wgUrlShortenerDBName' => [
'default' => 'metawiki',
],
'wgUrlShortenerDomainsWhitelist' => [
'default' => [
'(.*\.)?miraheze\.org',
'adadevelopersacademy\.wiki',
'allthetropes\.org',
'aman\.info\.tm',
'antiguabarbudacalypso\.com',
'astrapedia\.ru',
'athenapedia\.org',
'b1tes\.org',
'bconnected\.aidanmarkham\.com',
'bebaskanpengetahuan\.org',
'wiki\.ameciclo\.org',
'wiki\.autocountsoft\.com',
'wiki\.besuccess\.com',
'wiki\.clonedeploy\.org',
'wiki\.ciptamedia\.org',
'wiki\.consentcraft\.uk',
'cornetto\.online',
'dariawiki\.org',
'decrypted\.wiki',
'wiki.dobots\.nl',
'wiki\.dottorconte\.eu',
'wiki\.downhillderelicts\.com',
'wiki\.drones4nature\.info',
'wiki\.dwplive\.com',
'www\.eerstelijnszones\.be',
'embobada\.com',
'wiki\.exnihilolinux\.org',
'froggy\.info',
'fibromyalgia-engineer\.com',
'fikcyjnatv\.pl',
'wiki\.gamergeeked\.us',
'wiki\.gesamtschule-nordkirchen\.de',
'garrettcountyguide\.com',
'give\.effectively\.to',
'wiki\.grottocenter\.org',
'wiki\.gtsc\.vn',
'www\.iceposeidonwiki\.com',
'wiki\.inebriation-confederation\.com',
'wiki\.jacksonheights\.nyc',
'karagash\.info',
'wiki\.kourouklides\.com',
'kunwok\.org',
'www\.lab612\.at',
'wiki\.ldmsys\.net',
'wiki\.lostminecraftminers\.org',
'lodge\.jsnydr\.com',
'wiki\.make717\.org',
'wiki\.macc\.nyc',
'madgenderscience\.wiki',
'marinebiodiversitymatrix\.org',
'meregos\.com',
'nenawiki\.org',
'wiki\.ngscott\.net',
'nonbinary\.wiki',
'wiki\.lbcomms\.co.za',
'wiki\.rizalespe\.com',
'saf\.songcontests\.eu',
'wiki\.staraves-no\.cz',
'wiki.pupilliam\.com',
'oecumene\.org',
'www\.openonderwijs\.org',
'papelor\.io',
'permanentfuturelab\.wiki',
'pl\.nonbinary\.wiki',
'podpedia\.org',
'programming\.red',
'publictestwiki\.com',
'pwiki.arkcls.com',
'reviwiki\.info',
'russopedia\.info',
'private\.revi.wiki',
'saveta\.org',
'sdiy\.info',
'studentwiki\.ddns\.net',
'www\.splat-teams\.com',
'takethatwiki\.com',
'wiki\.taotac.org',
'taotac\.info' .
'wiki\.teessidehackspace\.org\.uk',
'wiki\.tensorflow\.community',
'thelonsdalebattalion\.co.uk',
'toonpedia\.cf',
'wiki\.tulpa\.info',
'wiki\.valentinaproject.org',
'wiki\.kaisaga.com',
'wikiescola\.com\.br',
'wiki\.worlduniversityandschool\.org' .
'wikipuk\.cl',
'wiki\.ombre\.io',
'wiki.rmbrk\.com',
'wisdomwiki\.org',
'sandbox\.wisdomwiki.org',
'savage-wiki\.com',
'speleo\.wiki',
'www\.zenbuddhism\.info',
'wiki\.zymonic\.com',
'espiral\.org',
'spiral\.wiki',
'wikibase\.revi\.wiki',
'wiki\.teamwizardry\.com',
'wiki\.svenskabriardklubben\.se',
'www\.schulwiki\.de',
'holonet\.pw',
'guiasdobrasil\.com\.br',
'enc\.for\.uz',
'docs\.websmart\.media',
'wiki\.mikrodev\.com',
'wiki\.campaign-labour\.org',
'encyclopedie\.didactiqueprofessionnelle\.org',
'www\.thesimswiki\.com',
'nonciclopedia\.org',
],
],
// VisualEditor [MWCandidate]
'wmgVisualEditorEnableDefault' => [
'default' => true,
],
'wmgVisualEditorAvailableNamespaces' => [
'default' => [
NS_MAIN => true,
NS_USER => true,
],
'+apunteswiki' => [
NS_PROJECT => true,
NS_PAGE => true,
NS_ANEXO => true,
NS_TEST => true,
NS_REGISTRO => true,
NS_LISTA => true,
NS_PROYECTO => true,
NS_TALLER => true,
NS_MODELO => true,
NS_EXAMPLE => true,
],
'+centralwiki' => [
NS_PROJECT => true,
NS_PAGE => true,
NS_ANEXO => true,
NS_TEST => true,
NS_REGISTRO => true,
NS_LISTA => true,
NS_PROYECTO => true,
NS_TALLER => true,
NS_MODELO => true,
NS_EXAMPLE => true,
],
'+destinoswiki' => [
NS_PROJECT => true,
NS_PAGE => true,
NS_ANEXO => true,
NS_TEST => true,
NS_REGISTRO => true,
NS_LISTA => true,
NS_PROYECTO => true,
NS_TALLER => true,
NS_MODELO => true,
NS_EXAMPLE => true,
],
'+infowiki' => [
NS_PROJECT => true,
NS_PAGE => true,
NS_ANEXO => true,
NS_TEST => true,
NS_REGISTRO => true,
NS_LISTA => true,
NS_PROYECTO => true,
NS_TALLER => true,
NS_MODELO => true,
NS_EXAMPLE => true,
],
'+mediatecawiki' => [
NS_PROJECT => true,
NS_PAGE => true,
NS_ANEXO => true,
NS_TEST => true,
NS_REGISTRO => true,
NS_LISTA => true,
NS_PROYECTO => true,
NS_TALLER => true,
NS_MODELO => true,
NS_EXAMPLE => true,
],
'+privadowiki' => [
NS_PROJECT => true,
NS_PAGE => true,
NS_ANEXO => true,
NS_TEST => true,
NS_REGISTRO => true,
NS_LISTA => true,
NS_PROYECTO => true,
NS_TALLER => true,
NS_MODELO => true,
NS_EXAMPLE => true,
],
'+tallerwiki' => [
NS_PROJECT => true,
NS_PAGE => true,
NS_ANEXO => true,
NS_TEST => true,
NS_REGISTRO => true,
NS_LISTA => true,
NS_PROYECTO => true,
NS_TALLER => true,
NS_MODELO => true,
NS_EXAMPLE => true,
],
'+ucroniaswiki' => [
NS_PROJECT => true,
NS_PAGE => true,
NS_ANEXO => true,
NS_TEST => true,
NS_REGISTRO => true,
NS_LISTA => true,
NS_PROYECTO => true,
NS_TALLER => true,
NS_MODELO => true,
NS_EXAMPLE => true,
],
'+espiralwiki' => [
NS_PROJECT => true,
],
'+isvwiki' => [
NS_LIBRARY => true,
],
'+oncprojectwiki' => [
NS_PROJECT => true,
NS_TEMPLATE => true,
NS_CATEGORY => true,
NS_FILE => true,
],
'+wisdomwikiwiki' => [
NS_LCS => true,
NS_MEDI => true,
NS_LIBRARY => true,
NS_TEACHING => true,
NS_BLANK => true,
],
],
'wgVisualEditorEnableWikitext' => [
'default' => false,
],
'wgVisualEditorShowBetaWelcome' => [
'default' => true,
],
'wgVisualEditorSupportedSkins' => [
'default' => [],
'permanentfuturelabwiki' => [ 'foreground' ],
'pfsolutions' => [ 'metrolook' ],
],
'wgVisualEditorUseSingleEditTab' => [
'default' => false,
'espiralwiki' => true,
'isvwiki' => true,
'spiralwiki' => true,
],
// WikidataPageBanner [MWCandidate]
'wgWPBNamespaces' => [
'default' => [ NS_MAIN ],
'+apunteswiki' => [ NS_REGISTRO, NS_PROYECTO, NS_TALLER, NS_EXAMPLE ],
'+centralwiki' => [ NS_REGISTRO, NS_PROYECTO, NS_TALLER, NS_EXAMPLE ],
'+destinoswiki' => [ NS_REGISTRO, NS_PROYECTO, NS_TALLER, NS_EXAMPLE ],
'+infowiki' => [ NS_REGISTRO, NS_PROYECTO, NS_TALLER, NS_EXAMPLE ],
'+mediatecawiki' => [ NS_REGISTRO, NS_PROYECTO, NS_TALLER, NS_EXAMPLE ],
'+privadowiki' => [ NS_REGISTRO, NS_PROYECTO, NS_TALLER, NS_EXAMPLE ],
'+tallerwiki' => [ NS_REGISTRO, NS_PROYECTO, NS_TALLER, NS_EXAMPLE ],
'+ucroniaswiki' => [ NS_REGISTRO, NS_PROYECTO, NS_TALLER, NS_EXAMPLE ],
],
// Protect site config [MWCandidate]
'wgProtectSiteLimit' => [
'default' => '1 week',
'infectopedwiki' => '10 years',
'campaignlabwiki' => 'indefinite',
'tnoteswiki' => 'indefinite',
'weatherwiki' => 'indefinite',
],
'wgProtectSiteDefaultTimeout' => [
'default' => '1 hour',
'infectopedwiki' => '1 year',
'tnoteswiki' => '2 hours',
'weatherwiki' => '1 week',
],
// WebChat config [MW]
'wmgWebChatServer' => [
'default' => false,
],
'wmgWebChatChannel' => [
'default' => false,
],
'wmgWebChatClient' => [
'default' => false,
],
// Wikimedia Incubator Settings [MWExempt?]
'wmincProjects' => [
'default' => [
'p' => 'Wikipedia',
'b' => 'Wikibooks',
't' => 'Wiktionary',
'q' => 'Wikiquote',
'n' => 'Wikinews',
'y' => 'Wikivoyage',
's' => 'Wikisource',
'v' => 'Wikiversity',
],
],
'wmincProjectSite' => [
'default' => [
'name' => 'Incubator Plus 2.0',
'short' => 'incplus',
],
],
'wmincSisterProjects' => [
'default' => [
'm' => 'Miraheze Meta',
],
],
'wmincExistingWikis' => [
'default' => null,
],
'wmincClosedWikis' => [
'default' => false,
],
'wmincMultilingualProjects' => [
'default' => [],
],
// Whitelist [MWCandidate]
'wmgUseMainPageWhitelist' => [
'default' => true,
'rwsaleswiki' => false,
],
// WikiDiscover [MWExempt]
'wgWikiDiscoverClosedList' => [
'default' => '/srv/mediawiki/dblist/closed.dblist',
],
'wgWikiDiscoverInactiveList' => [
'default' => '/srv/mediawiki/dblist/inactive.dblist',
],
'wgWikiDiscoverPrivateList' => [
'default' => '/srv/mediawiki/dblist/private.dblist',
],
// Empty arrays (do not touch unless you know what you're doing)
'wmgClosedWiki' => [
'default' => false,
],
'wmgInactiveWiki' => [
'default' => false,
],
'wmgPrivateWiki' => [
'default' => false,
],
// Uncategorised [MWCandidate]
'wgRandomGameDisplay' => [
'default' => [
'random_picturegame' => false,
'random_poll' => false,
],
],
];
function efGetSiteParams( $conf, $wiki ) {
$site = null;
$lang = null;
foreach ( $conf->suffixes as $suffix ) {
if ( substr( $wiki, -strlen( $suffix ) ) == $suffix ) {
$site = $suffix;
$lang = substr( $wiki, 0, -strlen( $suffix ) );
break;
}
}
return [
'suffix' => $site,
'lang' => $lang,
'params' => [
'lang' => $lang,
'site' => $site,
'wiki' => $wiki,
],
'tags' => [],
];
}
$wgConf->siteParamsCallback = 'efGetSiteParams';
# The thing that determines the dbname
if ( defined( 'MW_DB' ) ) {
$wgDBname = MW_DB;
} elseif ( $wmgHostname === 'meta.miraheze.org' ) {
$wgDBname = 'metawiki';
} elseif ( preg_match( '/^(.*)\.m\.miraheze\.org$/', $wmgHostname, $matches ) ) {
$wgDBname = $matches[1] . 'wiki';
} elseif ( preg_match( '/^(.*)\.miraheze\.org$/', $wmgHostname, $matches ) ) {
$wgDBname = $matches[1] . 'wiki';
} else {
$wgDBname = '';
}
# Initialize dblist
$wgLocalDatabases = [];
$wmgDatabaseList = file( "/srv/mediawiki/dblist/all.dblist" );
// ManageWiki settings
require_once __DIR__ . "/ManageWikiExtensions.php";
require_once __DIR__ . "/ManageWikiSettings.php";
foreach ( $wmgDatabaseList as $wikiLine ) {
$wikiDB = explode( '|', $wikiLine, 6 );
list( $DBname, $siteName, $siteLang, $siteExtensions, $siteSettings ) = array_pad( $wikiDB, 6, '' );
$wgLocalDatabases[] = $DBname;
$wgConf->settings['wgSitename'][$DBname] = $siteName;
$wgConf->settings['wgLanguageCode'][$DBname] = $siteLang;
$siteExtensionsArray = explode( ",", $siteExtensions );
foreach ( $wgManageWikiExtensions as $name => $ext ) {
if ( in_array( $name, $siteExtensionsArray ) ) {
$wgConf->settings[$ext['var']][$DBname] = true;
}
}
$siteSettingsArray = json_decode( $siteSettings, true );
if ( is_array( $siteSettingsArray ) || is_object( $siteSettingsArray ) ) {
foreach ( $siteSettingsArray as $setVar => $setVal ) {
$wgConf->settings[$setVar][$DBname] = $setVal;
}
}
}
foreach ( $wgConf->settings['wgServer'] as $name => $val ) {
foreach ( $wgConf->settings['wgMobileUrlTemplate'] as $value => $mobileurl ) {
if ( $mobileurl === $wmgHostname ) {
$wgDBname = $value;
}
}
if ( $val === 'https://' . $wmgHostname ) {
$wgDBname = $name;
}
}
$wmgPrivateDatabasesList = file( "/srv/mediawiki/dblist/private.dblist" );
foreach ( $wmgPrivateDatabasesList as $database ) {
$database = trim( $database );
$wgConf->settings['wmgPrivateWiki'][$database] = true;
}
$wmgClosedDatabasesList = file( "/srv/mediawiki/dblist/closed.dblist" );
foreach ( $wmgClosedDatabasesList as $database ) {
$database = trim( $database );
$wgConf->settings['wmgClosedWiki'][$database] = true;
}
$wmgInactiveDatabasesList = file( "/srv/mediawiki/dblist/inactive.dblist" );
foreach ( $wmgInactiveDatabasesList as $database ) {
$database = trim( $database );
$wgConf->settings['wmgInactiveWiki'][$database] = true;
}
// Needs to be set AFTER $wgDBname is set to a correct value
$wgUploadDirectory = "/mnt/mediawiki-static/$wgDBname";
$wgUploadPath = "https://static.miraheze.org/$wgDBname";
$wgConf->wikis = $wgLocalDatabases;
$wgConf->extractAllGlobals( $wgDBname );
if (php_sapi_name() === 'cli' && $wgDBname === 'allthetropeswiki' ) {
$wmgUseFlow = false;
}
if ( preg_match( '/^(.*)\.miraheze\.org$/', $wmgHostname, $matches ) ) {
$wgMobileUrlTemplate = '%h0.m.miraheze.org';
} elseif ( preg_match( '/^(.*)\.m\.miraheze\.org$/', $wmgHostname, $matches ) ) {
$wgMobileUrlTemplate = '%h0.m.miraheze.org';
}
if ( !preg_match( '/^(.*)\.miraheze\.org$/', $wmgHostname, $matches ) ) {
$wgCentralAuthCookieDomain = $wmgHostname;
$wgCookieDomain = $wmgHostname;
}
# Footer icon
$wgFooterIcons['poweredby']['miraheze'] = [
'src' => "https://$wmgUploadHostname/metawiki/7/7e/Powered_by_Miraheze.png",
'url' => 'https://meta.miraheze.org/wiki/',
'alt' => 'Miraheze Wiki Hosting',
];
if ( $wgDBname === 'permanentfuturelabwiki' ) {
$wgFooterIcons['poweredby']['wikiapiary'] = [
'src' => 'https://wikiapiary.com/w/images/wikiapiary/b/b4/Monitored_by_WikiApiary.png',
'url' => 'https://wikiapiary.com/wiki/Permanent_Future_Lab',
'alt' => 'Monitored by WikiApiary',
];
}
if ( $wgDBname === 'tmewiki' ) {
$wgFooterIcons['poweredby']['wikiapiary'] = [
'src' => 'https://wikiapiary.com/w/images/wikiapiary/b/b4/Monitored_by_WikiApiary.png',
'url' => 'https://wikiapiary.com/wiki/The_Multilingual_Encyclopedia_(miraheze.org)',
'alt' => 'Monitored by WikiApiary',
];
}
$wgDefaultUserOptions['enotifwatchlistpages'] = 0;
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
if ( !file_exists( '/srv/mediawiki/w/cache/l10n/l10n_cache-en.cdb' ) ) {
$wgLocalisationCacheConf['manualRecache'] = false;
}
$wgExtensionEntryPointListFiles[] = "/srv/mediawiki/config/extension-list";
// Fonts
putenv( "GDFONTPATH=/usr/share/fonts/truetype/freefont" );
// Hook so that Terms of Service is included in footer
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfTOSLink';
function lfTOSLink( $sk, &$tpl ) {
$tpl->set( 'termsofservice', $sk->footerLink( 'termsofservice', 'termsofservicepage' ) );
$tpl->data['footerlinks']['places'][] = 'termsofservice';
return true;
}
// Include other configuration files
require_once "/srv/mediawiki/config/Database.php";
require_once "/srv/mediawiki/config/GlobalLogging.php";
require_once "/srv/mediawiki/config/LocalExtensions.php";
require_once "/srv/mediawiki/config/MissingWiki.php";
require_once "/srv/mediawiki/config/Redis.php";
require_once "/srv/mediawiki/config/Sitenotice.php";
// per T3457 - Miraheze Commons
if ( $wgDBname !== 'commonswikiwiki' && $wgMirahezeCommons ) {
$wgForeignFileRepos[] = [
'class' => 'ForeignDBViaLBRepo',
'name' => 'shared-commons',
'directory' => '/mnt/mediawiki-static/commonswikiwiki',
'url' => 'https://static.miraheze.org/commonswikiwiki',
'hashLevels' => $wgHashedSharedUploadDirectory ? 2 : 0,
'thumbScriptUrl' => false,
'transformVia404' => !$wgGenerateThumbnailOnParse,
'hasSharedCache' => false,
'fetchDescription' => true,
'descriptionCacheExpiry' => 86400 * 7,
'wiki' => 'commonswikiwiki',
'descBaseUrl' => 'https://commonswiki.miraheze.org/wiki/File:',
];
}
// Servers accessible by non cache proxies should not have squid config enabled
if ( !preg_match( "/^mw[0-9]*/", wfHostname() ) ) {
$wgUseSquid = false;
}
// Define last to avoid all dependencies
require_once "/srv/mediawiki/config/LocalWiki.php";
// Define last - Extension message files for loading extensions
if ( !defined( 'MW_NO_EXTENSION_MESSAGES' ) ) {
require_once "/srv/mediawiki/config/ExtensionMessageFiles.php";
}
diff --git a/ManageWikiSettings.php b/ManageWikiSettings.php
index f3c3dd53..4fdecf71 100644
--- a/ManageWikiSettings.php
+++ b/ManageWikiSettings.php
@@ -1,1124 +1,1133 @@
internal value).
* list-multi: see above, just that multiple can be selected.
* matrix: adds an array of "columns" and "rows". Columns are the top array and rows will be the values.
* text: adds a single line text entry.
* url: adds a single line text entry which requires a full URL.
* wikipage: add a textbox which will return an autocomplete drop-down list of wikipages. Returns standardised MediaWiki pages.
*
* Other variables that are required are name and from.
*
* name: the displayed name of the setting on Special:ManageWiki.
* from: a text entry of which extension is required for this setting to work. If added by MediaWiki or a 'global' extension, use 'mediawiki'.
* overridedefault: a string/array override default when no existing value exist.
* restricted: boolean - requires managewiki-restricted to change.
* help: string providing help information for the setting.
* section: string name of groupings for settings.
*/
$wgManageWikiSettings = [
// Anti-Spam
'wgAbuseFilterActions' => [
'name' => 'AbuseFilter Actions',
'from' => 'mediawiki',
'requires' => false,
'restricted' => false,
'type' => 'list-multi-bool',
'allopts' => [
'block',
'blockautopromote',
'degroup',
'disallow',
'tag',
'throttle',
'warn',
],
'options' => [
'Block' => 'block',
'BlockAutopromote' => 'blockautopromote',
'Degroup' => 'degroup',
'Disallow' => 'disallow',
'Tag' => 'tag',
'Throttle' => 'throttle',
'Warn' => 'warn',
],
'overridedefault' => [
'block' => true,
'blockautopromote' => true,
'degroup' => true,
'disallow' => true,
'rangeblock' => false,
'tag' => true,
'throttle' => true,
'warn' => true,
],
'section' => 'anti-spam',
'help' => 'The possible actions that can be taken by abuse filters. When adding a new action, check if it is restricted in $wgAbuseFilterRestrictions and, if it is, don\'t forget to add the abusefilter-modify-restricted right to the appropriate user groups.',
],
'wgAutoblockExpiry' => [
'name' => 'Autoblock Expiry',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'integer',
'minint' => 0,
'maxint' => 315360000,
'overridedefault' => 86400,
'section' => 'anti-spam',
'help' => 'Number of seconds before autoblock entries expire. Minmum value allowed is 0 where as maxmium is 10 years (315360000).',
],
'wgBlockAllowsUTEdit' => [
'name' => 'Allows blocking users to restrict talk page accesst',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'anti-spam',
'help' => 'Allows the blocking user to grant talk page edit access for the blocked user',
],
'wgCookieSetOnAutoblock' => [
'name' => 'Cookie set on autoblock',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'anti-spam',
'help' => 'Determines whether to set a cookie when a user is autoblocked. Doing so means that a blocked user, even after logging out and moving to a new IP address, will still be blocked.',
],
'wgCookieSetOnIpBlock' => [
'name' => 'Cookie set on IP block',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'anti-spam',
'help' => 'Determines whether to set a cookie when an IP user is blocked. Doing so means that a blocked user, even after moving to a new IP address, will still be blocked.',
],
'wgEmailConfirmToEdit' => [
'name' => 'Email Confirm To Edit',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'anti-spam',
'help' => 'Require users to confirm email address before they can edit. This effectively disables ip editing.',
],
// Beta Feature related stuff
'wgEchoUseCrossWikiBetaFeature' => [
'name' => 'Enable Echo Cross Wiki Beta Feature',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'beta',
'help' => 'Feature flag for the cross-wiki notifications beta feature.',
],
'wgMediaViewerIsInBeta' => [
'name' => 'Enable Media Viewer Beta Mode',
'from' => 'multimediaviewer',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'beta',
'help' => 'This makes Media Viewer a beta feature thus this will not be enabled for all users.',
],
'wgPopupsBetaFeature' => [
'name' => 'Enable Popups Beta Mode',
'from' => 'popups',
'restricted' => false,
'type' => 'check',
'overridedefault' => null,
'section' => 'beta',
'help' => 'This enables Popups as a beta feature, rather than showing it to all users.',
],
'wgVisualEditorEnableDiffPageBetaFeature' => [
'name' => 'Enable VisualEditor Diff Page Beta Feature',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'beta',
'help' => 'Enable the new visual mode as a beta feature on revision difference pages.',
],
'wgVisualEditorEnableWikitextBetaFeature' => [
'name' => 'Enable VisualEditor Wikitext Beta Feature',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'beta',
'help' => 'Enable the new wikitext mode inside the visual editor as a beta feature. It has many of the tools present in the visual editor, uses a similar design, and allows better switching between the two.',
],
'wgVisualEditorShowBetaWelcome' => [
'name' => 'Enable VisualEditor Show Beta Welcome',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'beta',
'help' => 'Shows a beta welcome for users of VisualEditor.',
],
// Chat
'wgChatLinkUsernames' => [
'name' => 'Chat Link to Usernames',
'from' => 'mediawikichat',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'chat',
'help' => 'Link to user pages in the main chat window.',
],
'wgChatMeCommand' => [
'name' => 'Chat Me Command',
'from' => 'mediawikichat',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'chat',
'help' => 'Enable "/me " command that prints a status-type message.',
],
'wmgWebChatServer' => [
'name' => 'WebChat Server',
'from' => 'webchat',
'restricted' => false,
'type' => 'text',
'overridedefault' => '',
'section' => 'chat',
'help' => 'IRC Server to connect to, not required when using the freenodeChat web client.',
],
'wmgWebChatChannel' => [
'name' => 'WebChat Channel',
'from' => 'webchat',
'restricted' => false,
'type' => 'text',
'overridedefault' => '',
'section' => 'chat',
'help' => 'Channel to connect to.',
],
'wmgWebChatClient' => [
'name' => 'WebChat Client',
'from' => 'webchat',
'restricted' => false,
'type' => 'list',
'options' => [
'Freenode' => 'freenodeChat',
'Other Server' => 'Mibbit',
],
'overridedefault' => 'freenodeChat',
'section' => 'chat',
'help' => 'This sets the web client to use. If you are not using Freenode, select Other Server.',
],
// Editing
'wmgWikiLicense' => [
'name' => 'Content License',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'list',
'options' => [
'All Rights Reserved' => 'arr',
'Creative Commons BY 4.0' => 'cc-by',
'Creative Commons BY-NC 4.0' => 'cc-by-nc',
'Creative Commons BY-ND 4.0' => 'cc-by-nd',
'Creative Commons BY-SA 4.0' => 'cc-by-sa',
'Creative Commons BY-SA 2.0 Korea' => 'cc-by-sa-2-0-kr',
'Creative Commons BY-SA-NC 4.0' => 'cc-by-sa-nc',
'Creative Commons BY-NC-ND 4.0' => 'cc-by-nc-nd',
'Public Domain' => 'cc-pd',
'No license provided' => 'empty',
],
'overridedefault' => 'cc-by-sa',
'section' => 'edit',
'help' => 'Each wiki on Miraheze is by default licensed under CC-BY-SA 4.0 although this can be changed to another supported license. If you would like to release the contributions on your wiki under another license, please let us know so that we can make it available to you. Be aware that changing the license on your wiki can have an impact on your community and should not be done lightly.',
],
'wgRCMaxAge' => [
'name' => 'RecentChanges max age',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'text',
'overridedefault' => 180 * 24 * 3600,
'section' => 'edit',
'help' => 'Items in the recentchanges table are periodically purged; entries older than this many seconds will go.',
],
'wgActiveUserDays' => [
'name' => 'Active User Days',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'integer',
'minint' => 0,
'maxint' => 400,
'overridedefault' => 30,
'section' => 'edit',
'help' => 'The number of days within which a person must make edits to be considered an "active" user.',
],
'wgRestrictionTypes' => [
'name' => 'Restriction Types',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'list-multi',
'options' => [
'Create' => 'create',
'Delete' => 'delete',
'Edit' => 'edit',
'Move' => 'move',
'Protect' => 'protect',
'Upload' => 'upload',
],
'overridedefault' => [
'create',
'delete',
'edit',
'move',
'upload',
],
'section' => 'edit',
'help' => 'Actions that can be restricted.',
],
'wgRCLinkDays' => [
'name' => 'RecentChanges link days',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'list-multi',
'options' => [
'1' => 1,
'3' => 3,
'7' => 7,
'14' => 14,
'30' => 30,
'180' => 180,
],
'overridedefault' => [
1,
3,
7,
14,
30,
],
'section' => 'edit',
'help' => 'List days options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.',
],
'wgCommentsInRecentChanges' => [
'name' => 'Enable Comments In RecentChanges',
'from' => 'comments',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'edit',
'help' => 'Shows comments in the RecentChanges special page.',
],
'wgCommentsSortDescending' => [
'name' => 'Sort Comments by Descending',
'from' => 'comments',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'edit',
'help' => 'This sorts comments by descending date, with the new comment box and most recent comments at the top when enabled.',
],
'wgEnableScaryTranscluding' => [
'name' => 'Enable Scary Transcluding',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'edit',
'help' => 'Allow templates to be imported/transcluded from another wiki.',
],
'wmgVisualEditorEnableDefault' => [
'name' => 'Make VisualEditor the default editor for all',
'from' => 'visualeditor',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'help' => 'This will make VisualEditor the default edit for all.',
],
'wgVisualEditorEnableWikitext' => [
'name' => 'Enable VisualEditor Wikitext mode',
'from' => 'visualeditor',
'restricted' => false,
'type' => 'check',
'overridedefault' => null,
'section' => 'edit',
'help' => 'This option allow you to read Wikitext syntax on VisualEditor.',
],
'wgAllowSlowParserFunctions' => [
'name' => 'Allow slow parser functions',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => null,
'section' => 'edit',
'help' => 'Parser functions are "magic words" that return a value or function, such as time, site details or page names.',
],
'wgPFEnableStringFunctions' => [
'name' => 'Enable string function functionality',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => null,
'section' => 'edit',
'help' => 'This option adds support a couple of functions for basic string handling. Example: #pos function returns the position of a given search term within the string. You can learn more in Mediawiki\'s documentation page https://www.mediawiki.org/wiki/Module:String.',
],
'wmgAllowEntityImport' => [
'name' => 'Allow Entity Import (Wikibase)',
'restricted' => false,
'from' => 'wikibaserepository',
'type' => 'check',
'overridedefault' => false,
'section' => 'edit',
'help' => 'Allow importing entities via Special:Import and importDump.php.',
],
'wmgEnableEntitySearchUI' => [
'name' => 'Enable Entity Search UI (Wikibase)',
'restricted' => false,
'from' => 'wikibaserepository',
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'help' => 'To determine if entity search UI should be enabled or not.',
],
'wgAllowDisplayTitle' => [
'name' => 'Allow Display Title',
'restricted' => false,
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'help' => 'Allows use of {{DISPLAYTITLE}} magic word.',
],
'wgRestrictDisplayTitle' => [
'name' => 'Restrict Display Title',
'restricted' => false,
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'help' => 'Restrict {{DISPLAYTITLE}} to titles that normalize to the same canonical database key. Wikis with NoTitle extension installed have this config unset.',
],
'wgCapitalLinks' => [
'name' => 'Capital Links',
'restricted' => false,
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'help' => 'Unset this to avoid forcing the first letter of links to capitals.',
],
'wgEnableCanonicalServerLink' => [
'name' => 'Enable Canonical Server Link',
'restricted' => false,
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => false,
'section' => 'edit',
'help' => 'Output a tag on every page indicating the canonical server which should be used, i.e. $wgServer or $wgCanonicalServer.',
],
'wgPageCreationLog' => [
'name' => 'Page Creation Log',
'restricted' => false,
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'help' => 'Whether to maintain a log of new page creations, which can be viewed at Special:Log/create.',
],
'wgMSCS_WarnNoCategories' => [
'name' => 'MsCatSelect warn no categories',
'restricted' => false,
'from' => 'mscatselect',
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'help' => 'By default, if you try to save a page that has no categories assigned, MsCatSelect will ask for confirmation. If you wish to avoid this, unset this option.',
],
'wgCodeEditorEnableCore' => [
'name' => 'CodeEditor Enable Core',
'restricted' => false,
'from' => 'codeeditor',
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'help' => 'To disable the editor on JavaScript and CSS pages in the MediaWiki, User and other core namespaces, unset this option.',
],
'wgScribuntoUseCodeEditor' => [
'name' => 'Scribunto Use CodeEditor',
'restricted' => false,
'from' => 'codeeditor',
'type' => 'check',
'overridedefault' => true,
'section' => 'edit',
'help' => 'Set this to use it when editing Module pages.',
],
'wgMetaNamespace' => [
'name' => 'Meta Namespace',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'text',
'overridedefault' => null,
'section' => 'edit',
'help' => 'Name used for the meta namespace. Note that the namespace must exist in ManageWikiNamespaces.',
],
'wgMetaNamespaceTalk' => [
'name' => 'Meta Namespace Talk',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'text',
'overridedefault' => null,
'section' => 'edit',
'help' => 'Name of the project talk namespace. Note that the namespace must exist in ManageWikiNamespaces.',
],
// Links
'wgExternalLinkTarget' => [
'name' => 'External Link Target',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'list',
'options' => [
'Blank' => '_blank',
'Default' => false,
],
'overridedefault' => false,
'section' => 'links',
'help' => 'Set a default target for external links.',
],
'wgRottenLinksCurlTimeout' => [
'name' => 'RottenLinks Timeout Threshold',
'restricted' => false,
'from' => 'mediawiki',
'type' => 'integer',
'minint' => 10,
'maxint' => 120,
'overridedefault' => 30,
'section' => 'links',
'help' => 'Number of seconds before a RottenLinks request returns no response. Min: 10. Max: 120.'
],
// Localisation (E.G i18n/timezone etc)
'wgLocaltimezone' => [
'name' => 'Timezone',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'timezone',
'overridedefault' => 'UTC',
'section' => 'localisation',
'help' => 'This will adapt your wikis time over clock to whatever timezone you choose for all users, however it can be changed through user\'s preferences.',
],
'wgULSAnonCanChangeLanguage' => [
'name' => 'Allow anonymous users to change language',
'from' => 'universallanguageselector',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'localisation',
'help' => 'Enabling allowing anonymous users to control the language they view the wiki in.',
],
'wgPageLanguageUseDB' => [
'name' => 'Enable per page language',
'restricted' => false,
'from' => 'mediawiki',
'type' => 'check',
'overridedefault' => false,
'section' => 'localisation',
'help' => 'Allows to change the page language for MediaWiki pages.',
],
// Maps (E.G navigation)
'wgKartographerWikivoyageMode' => [
'name' => 'Kartographer Wikivoyage Mode',
'restricted' => false,
'from' => 'kartographer',
'type' => 'check',
'overridedefault' => false,
'section' => 'maps',
'help' => 'Enables Wikivoyage mode.',
],
'wgKartographerUseMarkerStyle' => [
'name' => 'Kartographer Use Marker Style',
'restricted' => false,
'from' => 'kartographer',
'type' => 'check',
'overridedefault' => false,
'section' => 'maps',
'help' => 'Allows Kartographer to extract CSS style to be used by the link from the GeoJSON.',
],
// Media/File
'wgEnableUploads' => [
'name' => 'Enable File Uploads',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'media',
'help' => 'Check or uncheck this option if you want to enable or disable the upload of files on your wiki.',
],
'wgMaxImageArea' => [
'name' => 'Max Image Area',
'from' => 'mediawiki',
'restricted' => true,
'type' => 'text',
'overridedefault' => '1.25e7',
'section' => 'media',
'help' => 'Specify\'s the max pixels you can have in a image.',
],
'wgAllowCopyUploads' => [
'name' => 'Enable File Uploads Through URL',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'By default Miraheze enables file upload only from a local media but with this option you can upload files remotely from other sites.',
],
'wgCopyUploadsFromSpecialUpload' => [
'name' => 'Enable File Uploads Through URL on Special:Upload',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'This option adds a textbox on Special:Upload enabling you to upload files from any URL.',
],
'wgUseInstantCommons' => [
'name' => 'Enable Wikimedia Commons Files',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'media',
'help' => 'This option allows you to use the Wikimedia Commons file database on your wiki.',
],
'wgMirahezeCommons' => [
'name' => 'Enable Miraheze Commons (linking to commonswiki.miraheze.org)',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'media',
'help' => 'This option allows you to use the Miraheze Commons file database on your wiki.',
],
'wgShowArchiveThumbnails' => [
'name' => 'Show Old Thumbnails On Description Page',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'media',
'help' => 'Whether to show thumbnails for old images on the image\'s description page.',
],
'wgAllowExternalImages' => [
'name' => 'Allow External Images',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'Determines whether or not MediaWiki will allow external images to be rendered inline with text',
],
'wgAllowImageTag' => [
'name' => 'Allow Image Tag',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'Allow img tag to be used in wikitext.',
],
'wgShowArchiveThumbnails' => [
'name' => 'Show Archive Thumbnails',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'media',
'help' => 'Whether to show thumbnails for old images on the image description page.',
],
'wgSVGConverter' => [
'name' => 'SVG Converter',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'list',
'options' => [
'Inkscape' => 'inkscape',
'ImageMagick' => 'ImageMagick',
],
'overridedefault' => 'ImageMagick',
'section' => 'media',
'help' => 'This picks the converter to convert Scalable Vector Graphics (SVG) to PNG. You may want to choose inkscape if your SVG->PNG conversion results in a black image.',
],
'wgMediaViewerEnableByDefault' => [
'name' => 'MediaViewer Enable By Default',
'from' => 'multimediaviewer',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'This enables MediaViewer for everyone.',
],
'wgMSU_checkAutoCat' => [
'name' => 'MsUpload check auto cat',
'from' => 'msupload',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'If set, sets the checkbox for adding a category to a page by default.',
],
'wgMSU_confirmReplace' => [
'name' => 'MsUpload confirm replace',
'from' => 'msupload',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'If set, shows the "Replace file" checkbox.',
],
'wgMSU_showAutoCat' => [
'name' => 'MsUpload show auto cat',
'from' => 'msupload',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'media',
'help' => 'If set, files uploaded while editing a category page will be added to that category.',
],
'wgMSU_useDragDrop' => [
'name' => 'MsUpload use drag and drop',
'from' => 'msupload',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'media',
'help' => 'If set, the drag & drop area will be shown.',
],
// Notification
'wgCookieWarningMoreUrl' => [
'name' => 'CookieWarning More Url',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'text',
'overridedefault' => 'https://meta.miraheze.org/wiki/Privacy_Policy#4._Cookies',
'section' => 'notifications',
'help' => 'Set the URL to your \'More Information\' page.',
],
'wgEchoCrossWikiNotifications' => [
'name' => 'Echo Cross Wiki Notifications',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'notifications',
'help' => 'Whether to enable the cross-wiki notifications feature.',
],
'wgEchoMentionStatusNotifications' => [
'name' => 'Echo Mention Status Notifications',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'notifications',
'help' => 'Enable mention success/failure notifications.',
],
'wmgSiteNoticeOptOut' => [
'name' => 'Opt out of global Miraheze notices',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'notifications',
'help' => 'Opts your wiki out of global Miraheze notices, only showing important notices.',
],
'wgModerationNotificationEnable' => [
'name' => 'Moderation Notification Enable',
'from' => 'moderation',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'notifications',
'help' => 'If set, notification email will be sent to "Moderation Email" each time an edit is queued for moderation.',
],
'wgModerationNotificationNewOnly' => [
'name' => 'Moderation Notification New Only',
'from' => 'moderation',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'notifications',
'help' => 'If set, only notify about new pages (but not about edits in existing pages).',
],
'wgDismissableSiteNoticeForAnons' => [
'name' => 'Dismissable Site Notice For Anons',
'from' => 'dismissablesitenotice',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'notifications',
'help' => 'This allows to set whether or not it should be possible for anonymous visitors of the wiki to dismiss the sitenotice shown. ',
],
// Restricted (where settings that are restricted go)
'wgServer' => [
'name' => 'Custom Domain',
'from' => 'mediawiki',
'restricted' => true,
'type' => 'text',
'overridedefault' => null,
'section' => 'restricted',
'help' => 'By default your wiki is available at https://yourwiki.miraheze.org - a subdomain of Miraheze but you can request us to redirect your wiki to a domain you own. Right now is not yet possible to do it without assistance from our sysadmins, but you can learn more here https://meta.miraheze.org/wiki/Custom_domains',
],
'wgMobileUrlTemplate' => [
'name' => 'Mobile URL',
'from' => 'mediawiki',
'restricted' => true,
'type' => 'text',
'overridedefault' => '',
'section' => 'restricted',
'help' => 'This sets your mobile URL. Defaults to [domain].',
],
'wgDefaultRobotPolicy' => [
'name' => 'Default Robot Policy',
'from' => 'mediawiki',
'restricted' => true,
'type' => 'text',
'overridedefault' => 'index,follow',
'section' => 'restricted',
'help' => 'Allows specifying the default robot policy for all pages on the wiki.',
],
'wgModerationEmail' => [
'name' => 'Moderation Email',
'from' => 'moderation',
'restricted' => true,
'type' => 'text',
// Must match wgPasswordSender from LocalSettings.php
'overridedefault' => 'noreply@miraheze.org',
'section' => 'restricted',
'help' => 'Sets the email for notifications to go to.',
],
'wgAccountCreationThrottle' => [
'name' => 'Account Creation Throttle',
'from' => 'mediawiki',
'restricted' => true,
'type' => 'integer',
'minint' => 0,
'maxint' => 900000000,
'overridedefault' => 5,
'section' => 'restricted',
'help' => 'Number of accounts each IP address may create, 0 to disable.',
],
'wgSVGMetadataCutoff' => [
'name' => 'SVG Metadata Cutoff',
'from' => 'mediawiki',
'restricted' => true,
'type' => 'integer',
'minint' => 0,
'maxint' => 90000000,
'overridedefault' => 262144,
'section' => 'restricted',
'help' => 'Don\'t read SVG metadata beyond this point.',
],
// If necessary we can increase maxint.
'wgMaxArticleSize' => [
'name' => 'Max Article Size',
'from' => 'mediawiki',
'restricted' => true,
'type' => 'integer',
'minint' => 0,
'maxint' => 10000,
'overridedefault' => 2048,
'section' => 'restricted',
'help' => 'Maximum page size in kilobytes.',
],
// Default list must be kept insync with wgFileExtensions in LocalSettings.php
'wgFileExtensions' => [
'name' => 'File Extensions',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'list-multi',
'options' => [
'add' => 'add',
'alist' => 'alist',
'apk' => 'apk',
'apng' => 'apng',
'asv' => 'asv',
'avi' => 'avi',
'bat' => 'bat',
'bib' => 'bib',
'bmp' => 'bmp',
'bst' => 'bst',
'bz' => 'bz',
'bz2' => 'bz2',
'c' => 'c',
'cap' => 'cap',
'cls' => 'cls',
'cpp' => 'cpp',
'crt' => 'crt',
'css' => 'css',
'dae' => 'dae',
'dat' => 'dat',
'data' => 'data',
'desktop' => 'desktop',
'dia' => 'dia',
'djvu' => 'djvu',
'doc' => 'doc',
'docx' => 'docx',
'eot' => 'eot',
'exe' => 'exe',
'fig' => 'fig',
'flac' => 'flac',
'fpd' => 'fpd',
'gif' => 'gif',
'gp' => 'gp',
'gz' => 'gz',
'gz2' => 'gz2',
'h' => 'h',
'hpp' => 'hpp',
'htm' => 'htm',
'html' => 'html',
'hxx' => 'hxx',
'ico' => 'ico',
'ipe' => 'ipe',
'jpeg' => 'jpeg',
'jpg' => 'jpg',
'js' => 'js',
'mat' => 'mat',
'md' => 'md',
'mid' => 'mid',
'mov' => 'mov',
'mp3' => 'mp3',
'mp4' => 'mp4',
'mus' => 'mus',
'odg' => 'odg',
'odp' => 'odp',
'ods' => 'ods',
'odt' => 'odt',
'oga' => 'oga',
'ogg' => 'ogg',
'ogv' => 'ogv',
'ogx' => 'ogx',
'opus' => 'opus',
'otf' => 'otf',
'otg' => 'otg',
'pcap' => 'pcap',
'pdf' => 'pdf',
'perf' => 'perf',
'php' => 'php',
'plot' => 'plot',
'png' => 'png',
'pps' => 'pps',
'ppt' => 'ppt',
'pptx' => 'pptx',
'pub' => 'pub',
'py' => 'py',
'rar' => 'rar',
'rtf' => 'rtf',
'sh' => 'sh',
'spl' => 'spl',
'sty' => 'sty',
'svg' => 'svg',
'swf' => 'swf',
'tar' => 'tar',
'tar.gz' => 'tar.gz',
'tex' => 'tex',
'tif' => 'tif',
'tiff' => 'tiff',
'ttf' => 'ttf',
'txt' => 'txt',
'val' => 'val',
'vit' => 'vit',
'vsd' => 'vsd',
'vst' => 'vst',
'wav' => 'wav',
'webm' => 'webm',
'webp' => 'webp',
'wma' => 'wma',
'wmv' => 'wmv',
'woff' => 'woff',
'woff2' => 'woff2',
'xcf' => 'xcf',
'xls' => 'xls',
'xlsx' => 'xlsx',
'xlxs' => 'xlxs',
'xml' => 'xml',
'xps' => 'xps',
'zip' => 'zip',
],
'overridedefault' => [
'djvu',
'gif',
'ico',
'jpg',
'jpeg',
'ogg',
'pdf',
'png',
'svg',
],
'section' => 'restricted',
'help' => 'This is the list of preferred extensions for uploading files. Uploading files with extensions not selected in this list will trigger a warning.',
],
// Styling (E.G skins/logos etc)
'wgDefaultSkin' => [
'name' => 'Default Skin',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'list',
'options' => [
'CologneBlue' => 'cologneblue',
'Modern' => 'modern',
'MonoBook' => 'monobook',
'Timeless' => 'timeless',
'Vector' => 'vector',
],
'overridedefault' => 'vector',
'section' => 'styling',
'help' => 'This change the visual interface to the selected skin for all users, however it can be changed through user\'s preferences.',
],
'wgLogo' => [
'name' => 'Logo',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'text',
'overridedefault' => null,
'section' => 'styling',
'help' => 'This will replace Miraheze\'s default logo. See https://meta.miraheze.org/wiki/ManageWiki#How_do_I_change_my_logo.2Ffavicon.3F for how you can change it.',
],
'wgFavicon' => [
'name' => 'Favicon',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'text',
'overridedefault' => null,
'section' => 'styling',
'help' => 'A favicon is a shortcut image that is displayed on your visitor\'s browser address bar and in the bookmarks page. Most often it is a smaller version of the logo. See https://meta.miraheze.org/wiki/ManageWiki#How_do_I_change_my_logo.2Ffavicon.3F for how you can add one.',
],
'wgAppleTouchIcon' => [
'name' => 'Apple Touch Icon',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'text',
'overridedefault' => null,
'section' => 'styling',
'help' => 'Favicon for Apple mobile devices. See https://meta.miraheze.org/wiki/ManageWiki#How_do_I_change_my_logo.2Ffavicon.3F on how you can add one.',
],
'wmgMFAutodetectMobileView' => [
'name' => 'MobileFrontend Autodetect Mobile View',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'styling',
'help' => 'f this is not set, then no device detection will be occur.',
],
'wgMetrolookDownArrow' => [
'name' => 'Metrolook Down Arrow',
'from' => 'metrolook',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'styling',
'help' => 'This configuration variable has to be true for the tiles to be generated.',
],
'wgMetrolookUploadButton' => [
'name' => 'Metrolook Upload Button',
'from' => 'metrolook',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'styling',
'help' => 'When enabled, an "Upload file" link is generated in the top menu bar, before the content-specific action links ("History", "Discussion", etc.)',
],
'wgMetrolookBartile' => [
'name' => 'Metrolook Bartile',
'from' => 'metrolook',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'styling',
'help' => 'When "Metrolook Down Arrow" is enabled and "Metrolook Bartile" is enabled, the tile menu will be generated from [[MediaWiki:Metrolook-tiles]]. If "Metrolook Down Arrow" is not set and "Metrolook Bartile" is not set, then the tile menu will be generated from [[MediaWiki:Metrolook-tiles-second]].',
],
'wgMetrolookMobile' => [
'name' => 'Metrolook Mobile',
'from' => 'metrolook',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'styling',
'help' => 'When enabled, makes the UI responsive on mobiles.',
],
'wgMetrolookUseIconWatch' => [
'name' => 'Metrolook Use Icon Watch',
'from' => 'metrolook',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'styling',
'help' => 'When enabled, it uses an icon for the watch/unwatch button.',
],
'wgMetrolookLine' => [
'name' => 'Metrolook Line',
'from' => 'metrolook',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'styling',
'help' => 'If not set, then the img.line element (white divider line in the top menu, between the site name and the down arrow/"Upload file" link) won\'t be generated.',
],
'wgRelatedArticlesFooterWhitelistedSkins' => [
'name' => 'RelatedArticles Footer Whitelisted Skins',
'from' => 'relatedarticles',
'restricted' => false,
'type' => 'list-multi',
'options' => [
'Metrolook' => 'metrolook',
'Minerva' => 'minerva',
'Timeless' => 'timeless',
'Vector' => 'vector'
],
'overridedefault' => [
'minerva',
'timeless',
'vector'
],
'section' => 'styling',
'help' => 'List of skin names (e.g. "minerva", "vector") where related articles will be shown in the footer.',
],
'wgMultiBoilerplateDiplaySpecialPage' => [
'name' => 'MultiBoilerplate Diplay SpecialPage',
'from' => 'multiboilerplate',
'restricted' => false,
'type' => 'check',
'overridedefault' => false,
'section' => 'styling',
'help' => 'if set, will add to the wiki a page named Special:Boilerplates that shows the currently configured boilerplates.',
],
'wgAllowUserCss' => [
'name' => 'Allow User Css',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'styling',
'help' => 'Allow user Cascading Style Sheets (CSS). For example User:/*.css.',
],
'wgAllowUserJs' => [
'name' => 'Allow User Js',
'from' => 'mediawiki',
'restricted' => false,
'type' => 'check',
'overridedefault' => true,
'section' => 'styling',
'help' => 'Allow user JavaScript pages. For example User:/*.js.',
],
+ 'wgDefaultTheme' => [
+ 'name' => 'Default Theme',
+ 'from' => 'theme',
+ 'restricted' => false,
+ 'type' => 'text',
+ 'overridedefault' => 'default',
+ 'section' => 'styling',
+ 'help' => 'Sets which theme is displayed by default when users visit your wiki.',
+ ],
];