Ligne 15 : | Ligne 15 : | ||
! Extension !! Description | ! Extension !! Description | ||
|- | |- | ||
| {{favorites|like=Extension:Autoincrement|output=css3treeviewshort}} || Incrémenter une variable statique dans les modèles | | {{favorites|like=Extension:Autoincrement|output=css3treeviewshort}} || Incrémenter une variable statique dans les modèles | ||
{{syntaxhighlight| lang=text|code = | {{syntaxhighlight| lang=text|code = | ||
Ligne 48 : | Ligne 38 : | ||
|- | |- | ||
| {{favorites|like=Extension:NoTitle|output=css3treeviewshort}} ||{{clear}} Masquer le titre d'une page {{clear}} | | {{favorites|like=Extension:NoTitle|output=css3treeviewshort}} ||{{clear}} Masquer le titre d'une page {{clear}} | ||
|} | |- | ||
| <favorites like="Pipe Escape" output="css3treeviewshort"/> || La caractère '''{{pipe}}''' est interprété dans les modèles comme séparateur de paramètres | |||
: exemple: | |||
: {{syntaxhighlight| lang=text|code = | |||
<nowiki> | |||
{{#!: media|wikitext}} | |||
</nowiki> | |||
}} | |||
=> {{#!: media|wikitext}} | |||
|- | |||
| {{favorites|like=Extension:Purge|output=css3treeviewshort}} ||{{clear}} Purger le cache d'une page; ajoute l'action ?purge {{clear}} | |||
|- | |||
| {{favorites|like=Extension:SyntaxHighlight|output=css3treeviewshort}} ||{{clear}} coloration syntaxique de code {{clear}} | |||
|- | |||
| {{favorites|like=Extension:Tabber|output=css3treeviewshort}} ||{{clear}} Ajouter des onglets à une page {{clear}} | |||
|- | |||
| {{favorites|like=Extension:Variables|output=css3treeviewshort}} ||{{clear}} Ajouter des variables à un template {{clear}} | |||
|- | |||
| {{favorites|like=Extension:WikiCategoryTagCloud|output=css3treeviewshort}} ||{{clear}} Affiche un cloud pour des categories {{clear}} | |||
|- | |||
| {{favorites|like=Extension:WikiSEO|output=css3treeviewshort}} ||{{clear}} Met à jour les tags du header d'une page {{clear}} | |||
| | |||
} | |||
== Fichier LocalSettings.php == | == Fichier LocalSettings.php == |
<keywords content="MediaWiki,extensions" />
Voir MediaWikiBootStrap5
Extension | Description | |
---|---|---|
Incrémenter une variable statique dans les modèles
{{AUTOINCREMENT}}, {{AUTOINCREMENT}}, {{AUTOINCREMENT}}
| ||
ex: SiteMap | ||
| ||
ex: Plan du site | ||
ex: Contact | ||
| ||
| ||
Insérer des icones "fontawesome" ex: Langage invalide Vous devez spécifier un langage comme ceci : <source lang="html4strict">...</source> Langages supportés pour la coloration syntaxique : 4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, aimms, algol68, apache, applescript, apt_sources, arm, asm, asp, asymptote, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, c_winapi, caddcl, cadlisp, cfdg, cfm, chaiscript, chapel, cil, clearcase, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, cpp-winapi, csharp, css, cuesheet, d, dart, dcl, dcpu16, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, ezt, f1, falcon, fo, fortran, freebasic, freeswitch, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, haxe, hicest, hq9plus, html4strict, html5, icon, idl, ini, inno, intercal, io, ispfpanel, j, java, java5, javascript, jcl, jquery, kixtart, klonec, klonecpp, latex, lb, ldif, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, nagios, netrexx, newlisp, nginx, nimrod, nsis, oberon2, objc, objeck, ocaml, ocaml-brief, octave, oobas, oorexx, oracle11, oracle8, oxygene, oz, parasail, parigp, pascal, pcre, per, perl, perl6, pf, php, php-brief, pic16, pike, pixelbender, pli, plsql, postgresql, postscript, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, pys60, python, q, qbasic, qml, racket, rails, rbs, rebol, reg, rexx, robots, rpmspec, rsplus, ruby, rust, sas, scala, scheme, scilab, scl, sdlbasic, smalltalk, smarty, spark, sparql, sql, standardml, stonescript, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, upc, urbi, uscript, vala, vb, vbnet, vbscript, vedit, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic xxcodexx
| ||
| ||
La caractère |
est interprété dans les modèles comme séparateur de paramètres
{{#!: media|wikitext}}
| ||
| ||
| ||
| ||
| ||
| ||
|
} Fichier LocalSettings.phprequire_once("$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php"); require_once("$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php"); function wfProfileIn( $arg) {}; function wfProfileOut( $arg) {}; wfLoadExtension("WikiEditor" ); $wgDefaultUserOptions['usebetatoolbar'] = 1; $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; $wgDefaultUserOptions['wikieditor-highlight'] = 1; #control categories require_once("$IP/extensions/CategoryControl/CategoryControl.php"); require_once("$IP/extensions/CategoryControl/config.php"); #ajout de code HTML #disabled require_once("$IP/extensions/easyaddHTML.php"); ##Category Viewer require_once("$IP/extensions/CategoryView/CategoryView.php"); #utilisé pour le plan du site wfLoadExtension('NiceCategoryList'); #fonctions speciales require_once("$IP/extensions/UserFunctions/UserFunctions.php"); wfLoadExtension("ParserFunctions"); $wgPFEnableStringFunctions = true; $wgUFAllowedNamespaces[NS_MAIN] = true; # User Functions enabled in User Mainspace, but not in Main one. $wgUFAllowedNamespaces = array( NS_MAIN => false, NS_USER => true ); # Enable all User Functions in all NS numbered from 0 to 200 $wgUFAllowedNamespaces = array_fill(0, 200, true); #piwik => matomo wfLoadExtension("Matomo"); $wgMatomoURL = "piwik.jltryoen.fr/"; $wgMatomoIDSite = "1"; #pour ajouter des keyword require_once('extensions/MetaKeywordsTag.php'); wfLoadExtension('WikiSEO'); #pour ajouter des favoris wfLoadExtension("Favorites"); #pour ajouter wikipedia require_once("$IP/extensions/Wikipedia/wikipedia.php"); require_once("$IP/extensions/Wikipedia/wikipediaparser.php"); #purge wfLoadExtension( "Purge" ); $wgGroupPermissions['user']['purge'] = false; $wgGroupPermissions['sysop']['purge'] = true; #htmltags wfLoadExtension( "HTMLTags" ); $wgHTMLTagsAttributes['a'] = array( 'href', 'class' , 'data-bs-toggle','aria-expanded', 'aria-controls'); $wgHTMLTagsAttributes['img'] = array( 'src', 'style', 'width' ); $wgHTMLTagsAttributes['i'] = array( 'class' ); $wgHTMLTagsAttributes['div'] = array( 'class' ); $wgHTMLTagsAttributes['option'] = array( 'onClick' ); $wgHTMLTagsAttributes['select'] = array( 'width','style' ); #tabs wfLoadExtension("Tabber"); #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 wfLoadExtension("NoTitle"); #PipeEscape require_once("$IP/extensions/PipeEscape/PipeEscape.php"); ##CSS CSS extension wfLoadExtension("CSS"); ##slideshow require_once("$IP/extensions/SlideShow/slideshowparser.php"); ##categorycloud 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','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");
Comment puis-je insérer des pages HTML dans les pages wikiUne solution : l'extension addHTML
l'extension n'est plus compatible avec la version 1.19.1
Je l'ai remplacé par
Cette extension n'est plus maintenue, en voilà le code
$wgHooks['ParserFirstCallInit'][] = "efSampleSetup"; function efSampleSetup(Parser $parser) { $parser->setHook( 'addhtml', 'efSampleRender' ); return true; } function checkPageEditRestriction( &$title ) // v1.1 feature // where $title is a Mediawiki Title class object instance { $proceed = false; $state = $title->getRestrictions('edit'); foreach ($state as $index => $group ) if ( $group == 'sysop' ) $proceed = true; return $proceed; } function efSampleRender( $input, $args, $parser, PPFrame $frame ) { // Nothing exciting here, just escape the user-provided // input and throw it back out again if (!checkPageEditRestriction( $parser->mTitle )) return "unauthorized usage of <b>addHtml</b> extension."; return $input; }
< addhtml> <iframe src="http://stim.com/" width=600 height=500> </iframe> </ addhtml>
== Mes extensions ==
|