Current configuration on the wiki
Find a file
C. Scott Ananian 06ab90f163 Add new ParserOutput::{get,set}OutputFlag() interface
This is a uniform mechanism to access a number of bespoke boolean
flags in ParserOutput.  It allows extensibility in core (by adding new
field names to ParserOutputFlags) without exposing new getter/setter
methods to Parsoid.  It replaces the ParserOutput::{get,set}Flag()
interface which (a) doesn't allow access to certain flags, and (b) is
typically called with a string rather than a constant, and (c) has a
very generic name.  (Note that Parser::setOutputFlag() already called
these "output flags".)

In the future we might unify the representation so that we store
everything in $mFlags and don't have explicit properties in
ParserOutput, but those representation details should be invisible to
the clients of this API.  (We might also use a proper enumeration
for ParserOutputFlags, when PHP supports this.)

There is some overlap with ParserOutput::{get,set}ExtensionData(), but
I've left those methods as-is because (a) they allow for non-boolean
data, unlike the *Flag() methods, and (b) it seems worthwhile to
distingush properties set by extensions from properties used by core.

Code search:
https://codesearch.wmcloud.org/search/?q=%5BOo%5Dut%28put%29%3F%28%5C%28%5C%29%29%3F-%3E%28g%7Cs%29etFlag%5C%28&i=nope&files=&excludeFiles=&repos=

Bug: T292868
Change-Id: I39bc58d207836df6f328c54be9e3330719cebbeb
2021-10-15 14:25:54 -04:00
.phan Using @return never documentation on always-throw-function 2021-09-07 17:29:03 +02:00
.pipeline
cache
docs
extensions
images
includes Add new ParserOutput::{get,set}OutputFlag() interface 2021-10-15 14:25:54 -04:00
languages Merge "Rename linter-pager-* messages to avoid conflict with Linter extension" 2021-10-14 01:06:25 +00:00
maintenance profiler: Remove dependency on WebRequest from Profiler 2021-10-09 03:00:45 +00:00
mw-config
resources mediawiki.rcfilters.filters.ui: Simplify ItemMenuOptionWidget 2021-10-14 20:24:33 +00:00
skins
tests Hard deprecate ParserOutput::addTrackingCategory() 2021-10-15 14:18:26 -04:00
.dockerignore
.editorconfig
.eslintignore build: Add /cache to eslintignore 2021-09-24 00:47:22 +01:00
.eslintrc.json
.fresnel.yml
.gitattributes
.gitignore
.gitreview
.mailmap Update credits ahead of the 1.37 release 2021-09-14 10:07:31 +03:00
.phpcs.xml Remove $wgShellLocale, always use C 2021-09-24 17:25:01 -07:00
.stylelintrc.json
.svgo.config.js
.vsls.json
api.php
autoload.php Add new ParserOutput::{get,set}OutputFlag() interface 2021-10-15 14:25:54 -04:00
CODE_OF_CONDUCT.md
composer.json Upgrading wikimedia/wrappedstring (v3.2.0 => v4.0.1) 2021-10-12 23:30:27 +00:00
composer.local.json-sample
COPYING
CREDITS Update credits ahead of the 1.37 release 2021-09-14 10:07:31 +03:00
DEVELOPERS.md docs: Document in DEVELOPERS.md how to stop or restart the thing 2021-10-12 16:52:44 +00:00
docker-compose.yml MediaWiki-Docker: Remove injection of MW_SCRIPT_PATH 2021-09-11 22:32:58 +00:00
FAQ
Gruntfile.js
HISTORY Add 1.31.16/1.35.4/1.36.2 to HISTORY 2021-09-30 22:37:56 +00:00
img_auth.php
index.php
INSTALL Prepare for REL1_37 cut, labelling master as 1.38-alpha 2021-09-13 19:19:42 -07:00
jsduck.json
load.php resourceloader: Avoid repeatly calls to getter functions 2021-09-26 01:55:13 +02:00
opensearch_desc.php
package-lock.json build: Updating dependencies 2021-10-04 06:38:39 +00:00
package.json build: Updating dependencies 2021-10-04 06:38:39 +00:00
phpunit.xml.dist PHPUnit: enable convertDeprecationsToExceptions 2021-09-25 10:05:18 +00:00
README.md
RELEASE-NOTES-1.37 Merge "Add $wgParserEnableLegacyMediaDOM to REL1-37 release notes" 2021-10-14 20:41:34 +00:00
RELEASE-NOTES-1.38 Add new ParserOutput::{get,set}OutputFlag() interface 2021-10-15 14:25:54 -04:00
rest.php
SECURITY
thumb.php
thumb_handler.php
UPGRADE

MediaWiki

MediaWiki is a free and open-source wiki software package written in PHP. It serves as the platform for Wikipedia and the other Wikimedia projects, used by hundreds of millions of people each month. MediaWiki is localised in over 350 languages and its 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 hundreds of extensions;
  • scalable and suitable for both small and large sites;
  • simple to install, working on most hardware/software combinations; and
  • available in your language.

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

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.