Current configuration on the wiki
Find a file
Bartosz Dziewoński 285c52039b Revamp classic edit toolbar not to hardcode paths in HTML
Also, try out a way to have per-module LESS variables defined in PHP.
This might come in handy in the future… Maybe for skin theme support?

(I recommend reviewing the file changes in the order below. :D)

includes/resourceloader/ResourceLoaderFileModule.php
  * Pass the context (ResourceLoaderContext) deeper down via
    readStyleFiles() and readStyleFile(). We need it to compile the
    .less files for the right language.
  * Extract LESS compiler creation to getLessCompiler().
  * Allow passing a LESS compiler instance to compileLessFile(), rather
    than getting one after the method is called.

  All of the changes are backwards-compatible.

includes/resourceloader/ResourceLoaderEditToolbarModule.php
  * New module to support getting the language data and passing it to
    LESS variables.

  It might be a good idea to factor out a reusable class for a LESS
  module with additional variables, but that would require more
  attention to design than I gave it.

resources/src/mediawiki.action/mediawiki.action.edit.toolbar/mediawiki.action.edit.toolbar.less
  * Glue code to use the language data defined by the module above and
    put it in final CSS.

includes/EditPage.php
  * Do not hardcode image URLs in output HTML, as they are provided in
    CSS now. This gets rid of some usage of globals.

  In fact, we should be able to finally move the inline JavaScript
  calls out of getEditToolbar(), but I'm already introducing too many
  changes for one patch. That can be done later.

languages/Language.php
  * Add getImageFiles() to complement existing getImageFile() method.
    Misleadingly named, it returns paths for images for the toolbar
    only (and no other ones at all).

skins/common/ → resources/src/mediawiki.action/mediawiki.action.edit.toolbar/
  * Moved all of the button images to new location.

  Also, boring cleanup that was harder before because we treated the
  paths as public API:
  * Placed default ones in en/ subdirectory.
  * Renamed cyrl/ to ru/.
  * Renamed ksh/button_S_italic.png → ksh/button_italic.png.

languages/messages/
  * Adjusting paths and filenames for the changes above.

resources/src/mediawiki.action/mediawiki.action.edit.css
resources/src/mediawiki.action/mediawiki.action.edit.js
  * Added styles and updated the script to make it possible to have
    non-<img> elements as toolbar buttons.
  * Consolidated styles that were already required, but defined
    somewhere else:
    * `cursor: pointer;` (from shared.css)
    * `vertical-align: middle;` (from commonElements.css)

Bug: 69277
Change-Id: I39d8ed4258c7da0fe4fe4c665cdb26c86420769c
2014-09-13 23:16:23 +02:00
assets Move mediawiki.png to assets/ directory 2014-09-05 20:03:39 +02:00
cache Revert .htaccess permissions back to 0644 2013-10-28 14:38:07 -07:00
docs Merge "Allow extensions to indicate a username doesn't exist" 2014-09-04 22:41:27 +00:00
extensions Update release notes and documentation about skins 2014-08-13 21:58:01 +02:00
images Remove some silly references to skins/common/ 2014-08-07 02:05:42 +02:00
includes Revamp classic edit toolbar not to hardcode paths in HTML 2014-09-13 23:16:23 +02:00
languages Revamp classic edit toolbar not to hardcode paths in HTML 2014-09-13 23:16:23 +02:00
maintenance Merge "resourceloader: Pass a Config to the ResourceLoader constructor" 2014-09-05 23:06:31 +00:00
mw-config Merge "Use a custom MediaWiki logo during installation" 2014-09-03 22:52:05 +00:00
resources Revamp classic edit toolbar not to hardcode paths in HTML 2014-09-13 23:16:23 +02:00
serialized Generate Utf8Case.ser directly from UnicodeData.txt 2014-01-06 18:22:24 -05:00
skins Revamp classic edit toolbar not to hardcode paths in HTML 2014-09-13 23:16:23 +02:00
tests Revamp classic edit toolbar not to hardcode paths in HTML 2014-09-13 23:16:23 +02:00
.gitattributes Make *.sh files use LF 2014-05-10 20:26:03 +00:00
.gitignore Allow use of phpunit.phar with MediaWiki's phpunit.php test entry point 2014-08-02 21:41:38 +00:00
.gitreview Revert "Applied patches to new WMF 1.21wmf11 branch" 2013-03-04 18:39:47 +00:00
.jscsrc build: Update grunt-jscs (formerly grunt-jscs-checker) from 0.4.4 to 0.6.1 2014-07-18 13:46:08 -07:00
.jshintignore Split /resources into /resources/lib and /resources/src 2014-04-07 12:21:21 -07:00
.jshintrc Update jscs and jshint config 2014-05-16 16:07:41 +02:00
.travis.yml Make travis notifications go to #mediawiki-feed 2014-08-12 12:49:02 +01:00
api.php Merge "Api request log: improve module retrieval" 2014-07-31 17:32:35 +00:00
api.php5 Clean up access points 2014-03-28 01:05:30 +00:00
composer.json Add Composer managed libraries 2014-05-28 02:10:41 +00:00
COPYING Update README & COPYING 2013-08-01 17:11:31 -07:00
CREDITS Added myself to CREDITS 2014-07-28 16:54:59 -04:00
FAQ Use HTTPS for the link in FAQ 2013-10-31 14:01:22 +00:00
HISTORY Merge RELEASE-NOTES-1.23 into HISTORY 2014-06-12 19:28:17 -04:00
img_auth.php img_auth: fix mismatched profiling 2014-09-05 16:04:42 -07:00
img_auth.php5 Clean up access points 2014-03-28 01:05:30 +00:00
index.php Use PHP_VERSION constant instead of phpversion() function call 2014-07-09 16:46:35 -07:00
index.php5 Clean up access points 2014-03-28 01:05:30 +00:00
INSTALL http://www.mediawiki.org --> https://www.mediawiki.org 2014-01-28 07:06:02 +00:00
load.php resourceloader: Pass a Config to the ResourceLoader constructor 2014-09-05 22:59:45 +00:00
load.php5 Clean up access points 2014-03-28 01:05:30 +00:00
opensearch_desc.php phpcs: More require/include is not a function 2013-05-21 23:26:28 +02:00
opensearch_desc.php5 Clean up access points 2014-03-28 01:05:30 +00:00
profileinfo.php Fix phpcs stuff in profileinfo.php 2014-08-11 22:32:04 +01:00
profileinfo.php5 Clean up access points 2014-03-28 01:05:30 +00:00
README Link to bugzilla.wikimedia.org in README for consistency 2014-03-23 10:52:22 +00:00
README.mediawiki
RELEASE-NOTES-1.24 Release notes for b1d215726e 2014-09-05 14:55:10 -07:00
StartProfiler.sample Profiling: Fix StartProfiler.sample, link in docs/scripts.txt 2014-07-07 19:05:31 -04:00
thumb.php Correct variable names in @param to match method declarations 2014-08-13 21:48:28 +02:00
thumb.php5 Clean up access points 2014-03-28 01:05:30 +00:00
thumb_handler.php Clean up access points 2014-03-28 01:05:30 +00:00
thumb_handler.php5 Clean up access points 2014-03-28 01:05:30 +00:00
UPGRADE http://www.mediawiki.org --> https://www.mediawiki.org 2014-01-28 07:06:02 +00:00
wiki.phtml Clean up access points 2014-03-28 01:05:30 +00:00

== MediaWiki ==

MediaWiki is a popular and free, open-source wiki software package written in
PHP. It serves as the platform for Wikipedia and the other projects of the Wikimedia
Foundation, which deliver content in over 280 languages to more than half a billion
people each month. MediaWiki's reliability and robust feature set have earned it a
large and vibrant community of third-party users and developers.

MediaWiki is:

* feature-rich and extensible, both on-wiki and with over 2,000 extensions;
* scalable and suitable for both small and large sites;
* available in your language; and
* simple to install, working on most hardware/software combinations.

For system requirements, installation, and upgrade details, see the files
RELEASE-NOTES, INSTALL, and UPGRADE.

* Ready to get started?
** https://www.mediawiki.org/wiki/Download
* Looking for the technical manual?
** https://www.mediawiki.org/wiki/Manual:Contents
* Seeking help from a person?
** https://www.mediawiki.org/wiki/Communication
* Looking to file a bug report or a feature request?
** https://bugzilla.wikimedia.org/
* Interested in helping out?
** https://www.mediawiki.org/wiki/How_to_contribute

MediaWiki is the result of global collaboration and cooperation. The CREDITS
file lists technical contributors to the project. The COPYING file explains
MediaWiki's copyright and license (GNU General Public License, version 2 or
later). Many thanks to the Wikimedia community for testing and suggestions.