This page is a translated version of the page OOUI and the translation is 45% complete.
Outdated translations are marked like this.




  • 可预备使用的小部件、布局和窗体,可以直接安装并很容易扩展;
  • 在不支持JavaScript的情况下,兼容PHP服务器端的输出;
  • 可轻松混合和匹配以创建自定义用户界面的元素。

OOUI is available in MediaWiki Core, as well as on npm, Composer, and through cdnjs. OOUI implements a "WikimediaUI" theme – conforming to Wikimedia Foundation's design style guide. Interfaces built within MediaWiki use this theme by default, though different MediaWiki skins can and do over-ride this. 参见在MediaWiki使用OOUI的文档It is successfully in use in 40+ web products by Wikimedia Foundation and volunteer developers. Note, that the library was originally created for the entire user interface of VisualEditor, on top of the OOjs primer (Object-Oriented JavaScript, hence OOUI's former name "OOjs UI"). It has later been extended to serve MediaWiki Core with PHP implemented widgets or responsive interfaces in project Advanced Mobile Contributions.

OOUI is pronounced oh-oh-you-eye.

Future of OOUI alongside Codex

Codex's toolkit will replace OOUI as the default user interface library. Currently development at the Wikimedia Foundation is focused on Codex, the design system for Wikimedia. It features guidelines and a set of tools: design tokens, components, and icons.

New OOUI feature development is limited only to products that are bound to it and have not (yet) been adapted to use Codex instead.

Note that in JS-only gadgets and userscripts, Codex can't replace OOUI as of September 2023, at least not in any practical way. For gadget/userscript developers, there is currently no successor for OOUI available. You can participate in the discussion about enabling Codex for gadgets and userscripts.




  • API文档,由doc.wikimedia.org的源代码自动生成