Aucun résumé des modifications |
|||
Ligne 6 : | Ligne 6 : | ||
<br/> | <br/> | ||
:{{code|collapse=Extrait de {{img |/images/file.jpg|width=16}}LocalSettings.php| lang=php|code= | :{{code|collapse=Extrait de {{img |/images/file.jpg|width=16}}LocalSettings.php| lang=php|code= | ||
require_once("$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php"); | |||
require_once("$IP/extensions/ | function wfProfileIn( $arg) {}; | ||
function wfProfileOut( $arg) {}; | |||
wfLoadExtension("WikiEditor" ); | |||
$wgDefaultUserOptions['usebetatoolbar'] = 1; | $wgDefaultUserOptions['usebetatoolbar'] = 1; | ||
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; | $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; | ||
Ligne 23 : | Ligne 20 : | ||
#ajout de code HTML | #ajout de code HTML | ||
require_once("$IP/extensions/easyaddHTML.php"); | #disabled require_once("$IP/extensions/easyaddHTML.php"); | ||
# | |||
require_once("$IP/extensions/ | ##Category Viewer | ||
require_once("$IP/extensions/CategoryView/CategoryView.php"); | |||
wfLoadExtension( 'CategoryTree' ); | |||
#utilisé pour le plan du site | #utilisé pour le plan du site | ||
wfLoadExtension('NiceCategoryList'); | |||
#fonctions speciales | #fonctions speciales | ||
require_once("$IP/extensions/UserFunctions/UserFunctions.php"); | require_once("$IP/extensions/UserFunctions/UserFunctions.php"); | ||
wfLoadExtension("ParserFunctions"); | |||
$wgPFEnableStringFunctions = true; | |||
$wgUFAllowedNamespaces[NS_MAIN] = true; | $wgUFAllowedNamespaces[NS_MAIN] = true; | ||
Ligne 48 : | Ligne 46 : | ||
#UserAdmin est une extension qui permet aux administrateurs d'ajouter des utilisateurs | #UserAdmin est une extension qui permet aux administrateurs d'ajouter des utilisateurs | ||
require_once("$IP/extensions/UserAdmin/UserAdmin | //require_once("$IP/extensions/UserAdmin/UserAdmin.php"); | ||
#piwik => matomo | |||
wfLoadExtension("Matomo"); | |||
$wgMatomoURL = "piwik.jltryoen.fr/"; | |||
$wgMatomoIDSite = "1"; | |||
#pour ajouter des keyword | #pour ajouter des keyword | ||
require_once('extensions/MetaKeywordsTag.php'); | require_once('extensions/MetaKeywordsTag.php'); | ||
wfLoadExtension('WikiSEO'); | |||
#pour ajouter des favoris | |||
wfLoadExtension("Favorites"); | |||
# | #pour ajouter wikipedia | ||
require_once("$IP/extensions/ | require_once("$IP/extensions/Wikipedia/wikipedia.php"); | ||
require_once("$IP/extensions/Wikipedia/wikipediaparser.php"); | |||
# DeleteHistory | # DeleteHistory | ||
Ligne 77 : | Ligne 71 : | ||
#Extension DeleteOldRevisions obsolete with version 1.24.0 | #Extension DeleteOldRevisions obsolete with version 1.24.0 | ||
$wgGroupPermissions['sysop']['DeleteOldRevisions'] = true; | |||
require_once("$IP/extensions/DeleteOldRevisions2/SpecialDeleteOldRevisions2.php"); | |||
#Extension ExpandTemplates | #Extension ExpandTemplates | ||
require_once("$IP/extensions/ExpandTemplates/ExpandTemplates.php"); | #require_once("$IP/extensions/ExpandTemplates/ExpandTemplates.php"); | ||
#purge | #purge | ||
wfLoadExtension( "Purge" ); | |||
$wgGroupPermissions['user']['purge'] = false; | |||
$wgGroupPermissions['sysop']['purge'] = true; | |||
#htmltags | #htmltags | ||
wfLoadExtension( "HTMLTags" ); | |||
$wgHTMLTagsAttributes['a'] = array( 'href', 'class' , 'data-toggle',); | $wgHTMLTagsAttributes['a'] = array( 'href', 'class' , 'data-bs-toggle','aria-expanded', 'aria-controls'); | ||
$wgHTMLTagsAttributes['img'] = array( 'src', 'style', 'width' ); | $wgHTMLTagsAttributes['img'] = array( 'src', 'style', 'width' ); | ||
$wgHTMLTagsAttributes['i'] = array( 'class' ); | $wgHTMLTagsAttributes['i'] = array( 'class' ); | ||
$wgHTMLTagsAttributes['div'] = array( 'class' ); | |||
$wgHTMLTagsAttributes['option'] = array( 'onClick' ); | |||
$wgHTMLTagsAttributes['select'] = array( 'width','style' ); | |||
#tabs | #tabs | ||
wfLoadExtension("Tabber"); | |||
#contactpage | #contactpage | ||
wfLoadExtension("ContactPage"); | |||
$wgContactConfig['default'] = array( | |||
$ | 'RecipientUser' => 'root', // Must be the name of a valid account which also has a verified e-mail-address added to it. | ||
'SenderName' => 'Contact Form on ' . $wgSitename, // "Contact Form on" needs to be translated | |||
'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required | |||
'RequireDetails' => false, // Either "true" or "false" as required | |||
'IncludeIP' => true, // Either "true" or "false" as required | |||
'MustBeLoggedIn' => false, // Check if the user is logged in before rendering the form | |||
'AdditionalFields' => array( | |||
'Text' => array( | |||
'label-message' => 'emailmessage', | |||
'type' => 'textarea', | |||
'rows' => 20, | |||
'required' => true, // Either "true" or "false" as required | |||
), | |||
), | |||
// Added in MW 1.26 | |||
'DisplayFormat' => 'table', // See HTMLForm documentation for available values. | |||
'RLModules' => array(), // Resource loader modules to add to the form display page. | |||
'RLStyleModules' => array(), // Resource loader CSS modules to add to the form display page. | |||
); | |||
#notitle | #notitle | ||
wfLoadExtension("NoTitle"); | |||
#PipeEscape | #PipeEscape | ||
Ligne 111 : | Ligne 125 : | ||
##CSS CSS extension | ##CSS CSS extension | ||
wfLoadExtension("CSS"); | |||
##slideshow | ##slideshow | ||
Ligne 121 : | Ligne 133 : | ||
##categorycloud | ##categorycloud | ||
require_once "$IP/extensions/ | wfLoadExtension("WikiCategoryTagCloud"); | ||
##variables | |||
wfLoadExtension( 'Variables' ); | |||
##autoincrement | |||
require_once "$IP/extensions/Autoincrement/Autoincrement.php"; | |||
## | |||
require_once "$IP/extensions/Hello/helloparser.php"; | |||
require_once "$IP/extensions/Meteo/meteoparser.php"; | |||
## | |||
#require_once( "$IP/extensions/FileSystemListing/FileSystemListing.php" ); | |||
## | |||
#Semanti mediawiki | |||
wfLoadExtension( 'SemanticMediaWiki' ); | |||
enableSemantics( $semanticURL, true ); | |||
$GLOBALS['sespSpecialProperties'] = array('_PAGEID'); | |||
define('NS_DEMO' , 202); | |||
$wgExtraNamespaces[NS_DEMO] = "Demo"; | |||
define('NS_RACE' , 203); | |||
$wgExtraNamespaces[NS_RACE] = "Race"; | |||
define('NS_MUSIC' , 204); | |||
$wgExtraNamespaces[NS_MUSIC] = "Music"; | |||
$smwgNamespacesWithSemanticLinks[NS_DEMO] = True; | |||
$smwgNamespacesWithSemanticLinks[NS_RACE] = True; | |||
$smwgNamespacesWithSemanticLinks[NS_MUSIC] = True; | |||
$smwgNamespacesWithSemanticLinks[NS_TEMPLATE] = True; | |||
$smwgPageSpecialProperties = array( '_CDAT' ); | |||
$wgDisableCounters = False; | |||
wfLoadExtension( 'SemanticResultFormats' ); | |||
wfLoadExtension( 'SemanticExtraSpecialProperties' ); | |||
wfLoadExtension( 'SemanticExtraSpecialProperties' ); | |||
wfLoadExtension( 'ModernTimeline' ); | |||
$srfgFormats = array('calendar', 'broadtable','outline', 'tagcloud', 'timeline', 'eventcalendar','table', 'eventline','list', 'icalendar','sparkline'); | |||
//require_once( "$IP/extensions/SMWAskAPI/SMWAskAPI.php" ); | |||
## | |||
wfLoadExtension("DataTransfer"); | |||
## | |||
wfLoadExtension("DeleteBatch"); | |||
##fullcalendar | |||
require_once("$IP/extensions/FullCalendar/fullcalendarparser.php"); | |||
wfLoadExtension( 'MagicNoCache' ); | |||
wfLoadExtension( 'SecureInclude' ); | |||
$wg_include_allowed_features['iframe'] = true; | |||
wfLoadExtension( 'AutoSitemap' ); | |||
require_once("$IP/extensions/AutoSitemap/config.php"); | |||
wfLoadExtension('FontAwesome'); | |||
<keywords content="MediaWiki,extensions" />
{{#!: wiki text }}
dans la partie qui contient le pipe pour que mediawiki ne l’interprète pas
Utiliser l'extension
Voir l'extension