扩展:Chrome菜单

This page is a translated version of the page Extension:Chrome Menu and the translation is 25% complete.
Other languages:
English • ‎español • ‎français • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
Chrome Menu
发布状态: 未维护
ChromeMenu.jpg
描述 Create pages with "Dropdown Menus"
作者 Eric Fortin (Kenyu73talk)
最新版本 0.1 - 2009-04-25
许可协议 GPL
下载 项目页面
Subversion [帮助]

浏览源代码
查看代码更改

注意 注意: 无法由Translatewiki.net 提供本地化更新。
检查使用和版本矩阵。

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

用法

<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

安装

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. Please note that the code uses mediawiki by default. 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" />',

我的其他扩展

Current MediaWiki Projects

Extension:Calendar (Kenyu73) -- wikipage calendar
Extension:MW Calendar -- database calendar
Extension:LaunchExternal
Extension:Presentation
Extension:Tabber
Extension:Menu