Project: Configuration: Perbedaan antara revisi
Dari GBI Danau Bogor Raya
k upd |
k upd |
||
| Baris 1: | Baris 1: | ||
{{DISPLAYTITLE:Konfigurasi situs web}} | {{DISPLAYTITLE:Konfigurasi situs web}} | ||
== Extensions (Bundled with MediaWiki Installation) == | == Extensions (Bundled with MediaWiki Installation) == | ||
<div class="ml-md-6 ml-3 mb-3" style="column-count: 2;"> | <div class="ml-md-6 ml-3 mb-3" style="column-count: 2;"> | ||
| Baris 51: | Baris 48: | ||
== LocalSettings.php == | == LocalSettings.php == | ||
<div class="ml-md-6 ml-3"> | <div class="ml-md-6 ml-3"> | ||
=== Extensions === | |||
<pre> | |||
# | |||
# EXTENSIONS | |||
# | |||
wfLoadExtension( 'DynamicPageList3' ); | |||
require_once "$IP/extensions/FancyBoxThumbs/FancyBoxThumbs.php"; | |||
require_once "$IP/extensions/googleAnalytics/googleAnalytics.php"; | |||
wfLoadExtension( 'JavascriptSlideshow' ); | |||
// wfLoadExtension( 'Lazyload' ); | |||
wfLoadExtension( 'DismissableSiteNotice' ); | |||
wfLoadExtension( 'Lockdown' ); | |||
wfLoadExtension( 'UserMerge' ); | |||
wfLoadExtension( 'Popups' ); | |||
wfLoadExtension( 'MyVariables' ); | |||
wfLoadExtension( 'EmbedVideo' ); | |||
</pre> | |||
=== Permissions === | === Permissions === | ||
<pre> | <pre> | ||
# | |||
# PERMISSIONS | |||
# | |||
$wgGroupPermissions['*']['createaccount'] = false; | $wgGroupPermissions['*']['createaccount'] = false; | ||
$wgGroupPermissions['*']['edit'] = false; | $wgGroupPermissions['*']['edit'] = false; | ||
| Baris 68: | Baris 88: | ||
</pre> | </pre> | ||
=== | === Namespaces === | ||
<pre> | <pre> | ||
$ | # | ||
# NAMESPACES | |||
# | |||
define('NS_INTERNAL', 100); | |||
define('NS_INTERNAL_TALK', 101); | |||
define('NS_LIVESTREAMING', 108); | |||
define('NS_LIVESTREAMING_TALK', 109); | |||
define('NS_HMMOSP', 110); | |||
define('NS_HMMOSP_TALK', 111); | |||
define('NS_ARTICLE', 112); | |||
define('NS_ARTICLE_TALK', 113); | |||
$wgExtraNamespaces[NS_INTERNAL] = "Internal"; | |||
$wgExtraNamespaces[NS_INTERNAL_TALK] = "Pembicaraan_Internal"; | |||
$wgExtraNamespaces[102] = "Khotbah"; | |||
$wgExtraNamespaces[103] = "Pembicaraan_Khotbah"; | |||
$wgExtraNamespaces[104] = "Lirik"; | |||
$wgExtraNamespaces[105] = "Pembicaraan_Lirik"; | |||
// $wgExtraNamespaces[106] = "Portal"; | |||
// $wgExtraNamespaces[107] = "Pembicaraan_Portal"; | |||
$wgExtraNamespaces[NS_LIVESTREAMING] = "LiveStreaming"; | |||
$wgExtraNamespaces[NS_LIVESTREAMING_TALK] = "Pembicaraan_LiveStreaming"; | |||
$wgExtraNamespaces[NS_HMMOSP] = "OSP"; | |||
$wgExtraNamespaces[NS_HMMOSP_TALK] = "Pembicaraan_OSP"; | |||
$wgExtraNamespaces[NS_ARTICLE] = "Article"; | |||
$wgExtraNamespaces[NS_ARTICLE_TALK] = "Pembicaraan_Article"; | |||
$wgContentNamespaces = array (NS_MAIN, 102, 104, NS_HMMOSP, NS_ARTICLE); | |||
$wgArticleCountMethod = 'any'; | |||
$wgNamespacesToBeSearchedDefault = array( | |||
NS_MAIN => true, | |||
NS_TALK => false, | |||
NS_USER => false, | |||
NS_USER_TALK => false, | |||
NS_PROJECT => false, | |||
NS_PROJECT_TALK => false, | |||
NS_IMAGE => true, | |||
NS_IMAGE_TALK => false, | |||
NS_MEDIAWIKI => false, | |||
NS_MEDIAWIKI_TALK => false, | |||
NS_TEMPLATE => false, | |||
NS_TEMPLATE_TALK => false, | |||
NS_HELP => false, | |||
NS_HELP_TALK => false, | |||
NS_CATEGORY => false, | |||
NS_CATEGORY_TALK => false, | |||
NS_INTERNAL => false, | |||
NS_INTERNAL_TALK => false, | |||
102 => true, | |||
103 => false, | |||
104 => true, | |||
105 => false, | |||
// 106 => true, | |||
// 107 => false, | |||
NS_HMMOSP => true, | |||
NS_HMMOSP_TALK => false, | |||
NS_ARTICLE => true, | |||
NS_ARTICLE_TALK => false | |||
); | |||
$wgNamespaceRobotPolicies = array( | |||
NS_TALK => 'noindex', | |||
NS_USER => 'noindex', | |||
NS_USER_TALK => 'noindex', | |||
NS_PROJECT_TALK => 'noindex', | |||
NS_IMAGE_TALK => 'noindex', | |||
NS_MEDIAWIKI_TALK => 'noindex', | |||
NS_TEMPLATE_TALK => 'noindex', | |||
NS_HELP_TALK => 'noindex', | |||
NS_CATEGORY_TALK => 'noindex', | |||
NS_INTERNAL_TALK => 'noindex', | |||
NS_INTERNAL => 'noindex', | |||
103 => 'noindex', | |||
105 => 'noindex', | |||
// 107 => 'noindex', | |||
NS_LIVESTREAMING_TALK => 'noindex', | |||
NS_HMMOSP_TALK => 'noindex', | |||
NS_ARTICLE_TALK=> 'noindex' | |||
); | |||
</pre> | </pre> | ||
=== Tweeki skin === | === Tweeki skin === | ||
<pre> | <pre> | ||
## | # | ||
# TWEEKI CONFIGURATION | |||
# | |||
wfLoadSkin( 'Tweeki' ); | wfLoadSkin( 'Tweeki' ); | ||
$wgDefaultSkin = "tweeki"; | $wgDefaultSkin = "tweeki"; | ||
### BOOTSTRAP 4 ### For Tweeki 1.2.0+ | ### BOOTSTRAP 4 ### For Tweeki 1.2.0+ | ||
$wgTweekiSkinUseBootstrap4 = true; | $wgTweekiSkinUseBootstrap4 = true; | ||
### NAVIGATION ### | ### NAVIGATION ### | ||
| Baris 101: | Baris 210: | ||
// If set to false, the icons in the footer will be replaced by text aquivalents. | // If set to false, the icons in the footer will be replaced by text aquivalents. | ||
$wgTweekiSkinFooterIcons = false; | $wgTweekiSkinFooterIcons = false; | ||
### MISCELLANEOUS ### | ### MISCELLANEOUS ### | ||
#### MISC: Font Awesome #### | #### MISC: Font Awesome #### | ||
// Whether or not to include Font Awesome to allow the use of icons | // Whether or not to include Font Awesome to allow the use of icons | ||
| Baris 116: | Baris 223: | ||
// Whether or not to use Bootstrap's tooltips for buttons using the data-toggle="tooltip" attribute. | // Whether or not to use Bootstrap's tooltips for buttons using the data-toggle="tooltip" attribute. | ||
$wgTweekiSkinUseTooltips = true; | $wgTweekiSkinUseTooltips = true; | ||
## UNSET FOOTER ICONS ## | ## UNSET FOOTER ICONS ## | ||
| Baris 122: | Baris 228: | ||
</pre> | </pre> | ||
=== Extension: FancyBoxThumbs === | |||
<pre> | |||
# | |||
# EXTENSION:FANCYBOXTHUMBS | |||
# | |||
$fbtFancyBoxOptions = '{"openEffect":"elastic", "nextClick":true, "loop":false}'; | |||
</pre> | |||
=== Extension: Lockdown === | |||
<pre> | |||
# | |||
# EXTENSION:LOCKDOWN | |||
# | |||
$wgNamespacePermissionLockdown[NS_INTERNAL]['read'] = [ 'Editor' ]; | |||
$wgNamespacePermissionLockdown[NS_INTERNAL_TALK]['read'] = [ 'Editor' ]; | |||
$wgNamespacePermissionLockdown[NS_USER]['read'] = [ 'Editor' ]; | |||
$wgNamespacePermissionLockdown[NS_USER_TALK]['read'] = [ 'Editor' ]; | |||
$wgNamespacePermissionLockdown[NS_TALK]['read'] = [ 'Editor' ]; | |||
$wgActionLockdown['history'] = [ 'user' ]; | |||
$wgSpecialPageLockdown['Recentchanges'] = [ 'user' ]; | |||
$wgSpecialPageLockdown['Specialpages'] = [ 'user' ]; | |||
$wgSpecialPageLockdown['Relatedchanges'] = [ 'user' ]; | |||
$wgSpecialPageLockdown['RecentChangesLinked'] = ['user']; | |||
$wgSpecialPageLockdown['Perubahan_terkait'] = ['user']; | |||
$wgActionLockdown['history'] = [ 'user' ]; | |||
// prevent inclusion of pages from that namespace | |||
$wgNonincludableNamespaces[] = NS_INTERNAL; | |||
$wgNonincludableNamespaces[] = NS_INTERNAL_TALK; | |||
$wgNonincludableNamespaces[] = NS_MEDIAWIKI; | |||
$wgNonincludableNamespaces[] = NS_MEDIAWIKI_TALK; | |||
</pre> | |||
=== Extension:GoogleAnalytics === | |||
Ganti xxxxxxx-x dengan nomor GoogleAnalytics UA. (Lihat di LocalSettings.php versi existing) | |||
<pre> | |||
# | |||
# EXTENSION:GOOGLEANALYTICS | |||
# | |||
// Replace xxxxxxx-x with YOUR GoogleAnalytics UA number | |||
$wgGoogleAnalyticsAccount = 'XX-XXXXXXXX-X'; | |||
// Add HTML code for any additional web analytics (can be used alone or with $wgGoogleAnalyticsAccount) | |||
$wgGoogleAnalyticsOtherCode = '<script type="text/javascript" src="https://analytics.example.com/tracking.js"></script>'; | |||
// Optional configuration (for defaults see googleAnalytics.php) | |||
// Store full IP address in Google Universal Analytics (see https://support.google.com/analytics/answer/2763052?hl=en for details) | |||
$wgGoogleAnalyticsAnonymizeIP = false; | |||
// Array with NUMERIC namespace IDs where web analytics code should NOT be included. | |||
$wgGoogleAnalyticsIgnoreNsIDs = array(500); | |||
// Array with page names (see magic word Extension:Google Analytics Integration) where web analytics code should NOT be included. | |||
$wgGoogleAnalyticsIgnorePages = array('ArticleX', 'Foo:Bar'); | |||
// Array with special pages where web analytics code should NOT be included. | |||
$wgGoogleAnalyticsIgnoreSpecials = array( 'Userlogin', 'Userlogout', 'Preferences', 'ChangePassword', 'OATH'); | |||
// Use 'noanalytics' permission to exclude specific user groups from web analytics, e.g. | |||
$wgGroupPermissions['sysop']['noanalytics'] = true; | |||
$wgGroupPermissions['bot']['noanalytics'] = true; | |||
// To exclude all logged in users give 'noanalytics' permission to 'user' group, i.e. | |||
$wgGroupPermissions['user']['noanalytics'] = true; | |||
</pre> | |||
=== Extension: Popups === | |||
<pre> | |||
# | |||
# EXTENSION:POPUPS | |||
# | |||
$wgPopupsHideOptInOnPreferencesPage = true; | |||
$wgPopupsOptInDefaultState = '1'; | |||
$wgPopupsReferencePreviewsBetaFeature = false; | |||
</pre> | |||
=== Miscellaneous === | |||
<pre> | |||
$wgNativeImageLazyLoading = true; | |||
</pre> | |||
</div> | </div> | ||
Revisi per 15 Juni 2021 15.18
Extensions (Bundled with MediaWiki Installation)
- Special pages
- CiteThisPage
- Interwiki
- Nuke
- Renameuser
- ReplaceText
- Editors
- WikiEditor
- Other
- SecureLinkFixer
- TextExtracts
- Media handlers
- PdfHandler
- API
- PageImages
- Parser hooks
- CategoryTree
- Cite
- InputBox
- ParserFunctions
- Poem
- TemplateData
Extensions (Non-Bundled)
- DismissableSiteNotice
- DynamicPageList3
- EmbedVideo
- FancyBoxThumbs
- googleAnalytics
- JavascriptSlideshow
- Lockdown
- MyVariables
- Popups
- UserMerge
Lazyloaddigantikan$wgNativeImageLazyLoading = true;
LocalSettings.php
Extensions
# # EXTENSIONS # wfLoadExtension( 'DynamicPageList3' ); require_once "$IP/extensions/FancyBoxThumbs/FancyBoxThumbs.php"; require_once "$IP/extensions/googleAnalytics/googleAnalytics.php"; wfLoadExtension( 'JavascriptSlideshow' ); // wfLoadExtension( 'Lazyload' ); wfLoadExtension( 'DismissableSiteNotice' ); wfLoadExtension( 'Lockdown' ); wfLoadExtension( 'UserMerge' ); wfLoadExtension( 'Popups' ); wfLoadExtension( 'MyVariables' ); wfLoadExtension( 'EmbedVideo' );
Permissions
# # PERMISSIONS # $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['Editor']['edit'] = true; $wgGroupPermissions['*']['upload'] = false; $wgGroupPermissions['user']['upload'] = true; $wgGroupPermissions['user']['upload_by_url'] = true; $wgGroupPermissions['*']['reupload'] = false; $wgGroupPermissions['Developer']['editinterface'] = true; $wgGroupPermissions['Developer']['editsitecss'] = true;
Namespaces
#
# NAMESPACES
#
define('NS_INTERNAL', 100);
define('NS_INTERNAL_TALK', 101);
define('NS_LIVESTREAMING', 108);
define('NS_LIVESTREAMING_TALK', 109);
define('NS_HMMOSP', 110);
define('NS_HMMOSP_TALK', 111);
define('NS_ARTICLE', 112);
define('NS_ARTICLE_TALK', 113);
$wgExtraNamespaces[NS_INTERNAL] = "Internal";
$wgExtraNamespaces[NS_INTERNAL_TALK] = "Pembicaraan_Internal";
$wgExtraNamespaces[102] = "Khotbah";
$wgExtraNamespaces[103] = "Pembicaraan_Khotbah";
$wgExtraNamespaces[104] = "Lirik";
$wgExtraNamespaces[105] = "Pembicaraan_Lirik";
// $wgExtraNamespaces[106] = "Portal";
// $wgExtraNamespaces[107] = "Pembicaraan_Portal";
$wgExtraNamespaces[NS_LIVESTREAMING] = "LiveStreaming";
$wgExtraNamespaces[NS_LIVESTREAMING_TALK] = "Pembicaraan_LiveStreaming";
$wgExtraNamespaces[NS_HMMOSP] = "OSP";
$wgExtraNamespaces[NS_HMMOSP_TALK] = "Pembicaraan_OSP";
$wgExtraNamespaces[NS_ARTICLE] = "Article";
$wgExtraNamespaces[NS_ARTICLE_TALK] = "Pembicaraan_Article";
$wgContentNamespaces = array (NS_MAIN, 102, 104, NS_HMMOSP, NS_ARTICLE);
$wgArticleCountMethod = 'any';
$wgNamespacesToBeSearchedDefault = array(
NS_MAIN => true,
NS_TALK => false,
NS_USER => false,
NS_USER_TALK => false,
NS_PROJECT => false,
NS_PROJECT_TALK => false,
NS_IMAGE => true,
NS_IMAGE_TALK => false,
NS_MEDIAWIKI => false,
NS_MEDIAWIKI_TALK => false,
NS_TEMPLATE => false,
NS_TEMPLATE_TALK => false,
NS_HELP => false,
NS_HELP_TALK => false,
NS_CATEGORY => false,
NS_CATEGORY_TALK => false,
NS_INTERNAL => false,
NS_INTERNAL_TALK => false,
102 => true,
103 => false,
104 => true,
105 => false,
// 106 => true,
// 107 => false,
NS_HMMOSP => true,
NS_HMMOSP_TALK => false,
NS_ARTICLE => true,
NS_ARTICLE_TALK => false
);
$wgNamespaceRobotPolicies = array(
NS_TALK => 'noindex',
NS_USER => 'noindex',
NS_USER_TALK => 'noindex',
NS_PROJECT_TALK => 'noindex',
NS_IMAGE_TALK => 'noindex',
NS_MEDIAWIKI_TALK => 'noindex',
NS_TEMPLATE_TALK => 'noindex',
NS_HELP_TALK => 'noindex',
NS_CATEGORY_TALK => 'noindex',
NS_INTERNAL_TALK => 'noindex',
NS_INTERNAL => 'noindex',
103 => 'noindex',
105 => 'noindex',
// 107 => 'noindex',
NS_LIVESTREAMING_TALK => 'noindex',
NS_HMMOSP_TALK => 'noindex',
NS_ARTICLE_TALK=> 'noindex'
);
Tweeki skin
#
# TWEEKI CONFIGURATION
#
wfLoadSkin( 'Tweeki' );
$wgDefaultSkin = "tweeki";
### BOOTSTRAP 4 ### For Tweeki 1.2.0+
$wgTweekiSkinUseBootstrap4 = true;
### NAVIGATION ###
#### NAVIGATION: Hiding Page Elements ####
// make an element hideable with the {{#tweekihide:}} parser function
// (used on the main page)
$wgTweekiSkinHideable = [ 'firstHeading', 'sidebar-right', 'subnav' ];
// Elements in this array will be hidden for users who are NOT logged in.
$wgTweekiSkinHideAnon = [ 'subnav' => true, 'PERSONAL' => true,
'TOOLBOX' => true, 'EDIT-EXT' => true, 'TOOLBOX-EXT' => true ];
// Elements in this array will only be shown to users
// who have chosen in their preferences to show "advanced features".
$wgTweekiSkinHideNonAdvanced = [ 'EDIT-EXT-special' => false ];
#### NAVIGATION: Footer ####
// If set to false, the icons in the footer will be replaced by text aquivalents.
$wgTweekiSkinFooterIcons = false;
### MISCELLANEOUS ###
#### MISC: Font Awesome ####
// Whether or not to include Font Awesome to allow the use of icons
$wgTweekiSkinUseAwesome = true;
#### Bootstrap Theme ####
// Whether or not to include the code for Bootstrap's theme (enhanced styling for buttons etc.).
$wgTweekiSkinUseBootstrapTheme = true;
##### Tooltips #####
// Whether or not to use Bootstrap's tooltips for buttons using the data-toggle="tooltip" attribute.
$wgTweekiSkinUseTooltips = true;
## UNSET FOOTER ICONS ##
unset ($wgFooterIcons['poweredby']['mediawiki']);
Extension: FancyBoxThumbs
#
# EXTENSION:FANCYBOXTHUMBS
#
$fbtFancyBoxOptions = '{"openEffect":"elastic", "nextClick":true, "loop":false}';
Extension: Lockdown
# # EXTENSION:LOCKDOWN # $wgNamespacePermissionLockdown[NS_INTERNAL]['read'] = [ 'Editor' ]; $wgNamespacePermissionLockdown[NS_INTERNAL_TALK]['read'] = [ 'Editor' ]; $wgNamespacePermissionLockdown[NS_USER]['read'] = [ 'Editor' ]; $wgNamespacePermissionLockdown[NS_USER_TALK]['read'] = [ 'Editor' ]; $wgNamespacePermissionLockdown[NS_TALK]['read'] = [ 'Editor' ]; $wgActionLockdown['history'] = [ 'user' ]; $wgSpecialPageLockdown['Recentchanges'] = [ 'user' ]; $wgSpecialPageLockdown['Specialpages'] = [ 'user' ]; $wgSpecialPageLockdown['Relatedchanges'] = [ 'user' ]; $wgSpecialPageLockdown['RecentChangesLinked'] = ['user']; $wgSpecialPageLockdown['Perubahan_terkait'] = ['user']; $wgActionLockdown['history'] = [ 'user' ]; // prevent inclusion of pages from that namespace $wgNonincludableNamespaces[] = NS_INTERNAL; $wgNonincludableNamespaces[] = NS_INTERNAL_TALK; $wgNonincludableNamespaces[] = NS_MEDIAWIKI; $wgNonincludableNamespaces[] = NS_MEDIAWIKI_TALK;
Extension:GoogleAnalytics
Ganti xxxxxxx-x dengan nomor GoogleAnalytics UA. (Lihat di LocalSettings.php versi existing)
#
# EXTENSION:GOOGLEANALYTICS
#
// Replace xxxxxxx-x with YOUR GoogleAnalytics UA number
$wgGoogleAnalyticsAccount = 'XX-XXXXXXXX-X';
// Add HTML code for any additional web analytics (can be used alone or with $wgGoogleAnalyticsAccount)
$wgGoogleAnalyticsOtherCode = '<script type="text/javascript" src="https://analytics.example.com/tracking.js"></script>';
// Optional configuration (for defaults see googleAnalytics.php)
// Store full IP address in Google Universal Analytics (see https://support.google.com/analytics/answer/2763052?hl=en for details)
$wgGoogleAnalyticsAnonymizeIP = false;
// Array with NUMERIC namespace IDs where web analytics code should NOT be included.
$wgGoogleAnalyticsIgnoreNsIDs = array(500);
// Array with page names (see magic word Extension:Google Analytics Integration) where web analytics code should NOT be included.
$wgGoogleAnalyticsIgnorePages = array('ArticleX', 'Foo:Bar');
// Array with special pages where web analytics code should NOT be included.
$wgGoogleAnalyticsIgnoreSpecials = array( 'Userlogin', 'Userlogout', 'Preferences', 'ChangePassword', 'OATH');
// Use 'noanalytics' permission to exclude specific user groups from web analytics, e.g.
$wgGroupPermissions['sysop']['noanalytics'] = true;
$wgGroupPermissions['bot']['noanalytics'] = true;
// To exclude all logged in users give 'noanalytics' permission to 'user' group, i.e.
$wgGroupPermissions['user']['noanalytics'] = true;
Extension: Popups
# # EXTENSION:POPUPS # $wgPopupsHideOptInOnPreferencesPage = true; $wgPopupsOptInDefaultState = '1'; $wgPopupsReferencePreviewsBetaFeature = false;
Miscellaneous
$wgNativeImageLazyLoading = true;
System Messages
| Message Name | Teks |
|---|---|
| tweeki-editsection-text | [Edit] |
| tweeki-footer-custom | LOGIN-EXT |
| tweeki-login | Login |
| tweeki-navbar-left | mainpage, Perihal, *GBI Danau Bogor Raya, *GBI Rayon 7, *GBI Jalan Gatot Subroto, *Gereja Bethel Indonesia|Sinode Gereja Bethel Indonesia, *Gembala Sidang, *Gembala Pembina, *Ibadah_online_(live_streaming)|Arsip ibadah online, Pengajaran, *Artikel, *Pengakuan Iman GBI, *Pengajaran Dasar Gereja Bethel Indonesia|Pengajaran Dasar GBI, *Ayo Baca Alkitab, *Ayo Saat Teduh, *Kehidupan Orientasi Melayani|Kehidupan Orientasi Melayani (KOM), *Pentakosta Ketiga, *Sikap teologis|Sikap Teologis GBI Jl Gatot Subroto, *Pandangan GBI|Sikap Teologis Sinode GBI, Hubungi kami, *Project:Media Sosial|Media Sosial, *Persembahan, *Hotline|Telepon/WhatsApp |
| tweeki-navbar-right | TOOLBOX-EXT,PERSONAL,SEARCH |
Halaman Utama
Parser function tambahan di dalam Halaman Utama:
{{#tweekihide:sidebar-right|sidebar|firstheading|catlinks}}