Extension:Chrome Menu/fr

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:Chrome Menu and the translation is 7% complete.
Other languages:
Manuel des extensions MediaWiki
OOjs UI icon advanced-invert.svg
Chrome Menu
État de la version : non-maintenu
ChromeMenu.jpg
Description Create pages with "Dropdown Menus"
Auteur(s) Eric Fortin (Kenyu73discussion)
Dernière version 0.1 - 2009-04-25
MediaWiki
Licence Licence publique générale GNU v3.0
Téléchargement Page du projet
Subversion [Aide ]

Naviguer dans le code source
Voir les changements dans le code

Note Note : Aucune mise à jour de localisation fournies par Translatewiki.net .

Vérifier la matrice des utilisations et des versions.

This allows the author to create dropdown menus easily within a page. The links are Wiki syntax compatible.

  • dedicated CSS file for easy customization
  • dedicated JavaScript file

Based off the javascript code from Dynamic Drive

Usage

<menu name=myMenu align=center>
menu1=
  [http://www.drudgereport.com DrudgeReport]
  [http://www.MediaWiki.com MediaWiki]
  [[SomeWikiPage]]
|-|
menu2=
  [http://www.maxkeiser.com MaxKeiser]
  [http://www.google.com Google]
</menu>
  • Menus are delimited by: "|-|"
  • Menus must have unique names if more than one used per wiki page

Installation

To install this extension, add the following to LocalSettings.php :

require_once("$IP/extensions/ChromeMenu/ChromeMenu.php");
  • Note: As of beta version 0.1, I have the following hardcoded in chrome.js, which may or may not need to be changed for other wiki installs. Veuillez noter que le code utilise mediawiki par défaut. Most sites will probably have to change this to get the menu arrow gifs to display.
 offsetLeft: -150, // this sets the dropdown location
 offsetTop: -35, // this sets the dropdown location
 dropdownindicator: '<img src="/mediawiki/extensions/ChromeMenu/down.gif" border="0" />',