Movatterモバイル変換


[0]ホーム

URL:


MediaWiki master
Namespaces |Classes |Enumerations
MediaWiki\Parser Namespace Reference

Namespaces

namespace  Parsoid
 

Classes

class  BlockLevelPass
 
class  CacheTime
 Parser cache specific expiry check.More...
 
class  ContentHolder
 
class  CoreMagicVariables
 Expansions of core magic variables, used by the parser.More...
 
class  CoreParserFunctions
 Various core parser functions, registered in every Parser.More...
 
class  CoreTagHooks
 Various tag hooks, registered in every Parser.More...
 
class  DateFormatter
 Date formatter.More...
 
class  DateFormatterFactory
 
class  LinkHolderArray
 
class  MagicWord
 This class encapsulates "magic words" such as "#redirect",NOTOC, etc.More...
 
class  MagicWordArray
 Class for handling an array of magic words.More...
 
class  MagicWordFactory
 Store information about magic words, and create/cache MagicWord objects.More...
 
class  MWTidy
 Class to interact with and configure Remex tidy.More...
 
class  Parser
 PHP Parser - Processes wiki markup (which uses a more user-friendly syntax, such as "[[link]]" for making links), and provides a one-way transformation of that wiki markup it into (X)HTML output / markup (which in turn the browser understands, and can display).More...
 
class  ParserCache
 Cache for ParserOutput objects corresponding to the latest page revisions.More...
 
class  ParserCacheFactory
 
class  ParserCacheFilter
 
interface  ParserCacheMetadata
 Read-only interface for metadata about a ParserCache entry.More...
 
class  ParserFactory
 
class  ParserObserver
 
class  ParserOptions
 Set options of the Parser.More...
 
class  ParserOutput
 ParserOutput is a rendering of a Content object or a message.More...
 
class  ParserOutputLinkTypes
 
class  PPCustomFrame_Hash
 Expansion frame with custom arguments.More...
 
class  PPDPart_Hash
 
class  PPDStack_Hash
 Stack class to help Preprocessor::preprocessToObj()More...
 
class  PPDStackElement_Hash
 
interface  PPFrame
 
class  PPFrame_Hash
 An expansion frame, used as a context to expand the result of preprocessToObj()More...
 
interface  PPNode
 There are three types of nodes:More...
 
class  PPNode_Hash_Array
 
class  PPNode_Hash_Attr
 
class  PPNode_Hash_Text
 
class  PPNode_Hash_Tree
 
class  PPTemplateFrame_Hash
 Expansion frame with template arguments.More...
 
class  Preprocessor
 
class  Preprocessor_Hash
 Differences from DOM schema:More...
 
class  RemexRemoveTagHandler
 Helper class for Sanitizer::removeSomeTags().More...
 
class  RemexStripTagHandler
 Helper class for Sanitizer::stripAllTags().More...
 
class  RevisionOutputCache
 Cache for ParserOutput objects.More...
 
class  Sanitizer
 HTML sanitizer forMediaWiki.More...
 
class  StripState
 

Enumerations

enum  ParserOutputFlags : string {values }
 
enum  ParserOutputStringSets : string {values }
 

Enumeration Type Documentation

◆ ParserOutputFlags

enumMediaWiki::Parser::ParserOutputFlags : string
Enumerator
values 

Disable magic gallery on category page (NOGALLERY).

ResourceLoader modules to load.

This is used to selectively disable the auto-magic thumbnail gallery on thumbnail pages.

See also
MainConfigSchema::CategoryMagicGallery
ParserOutput::getNoGallery()
ParserOutput::setNoGallery() Whether OOUI should be enabled.
ParserOutput::getEnableOOUI()
ParserOutput::setEnableOOUI() Force index policy to be 'index'.
ParserOutput::getIndexPolicy()
ParserOutput::setIndexPolicy() Force index policy to be 'noindex'.
ParserOutput::getIndexPolicy()
ParserOutput::setIndexPolicy() Show a new section link?
ParserOutput::getNewSection()
ParserOutput::setNewSection() Hide the new section link?
ParserOutput::getHideNewSection()
ParserOutput::setHideNewSection() The prevent-clickjacking flag
ParserOutput::getPreventClickjacking()
ParserOutput::setPreventClickjacking() Show the table of contents in the skin?

This is a /suggestion/ based on whether the TOC is "largeenough" and other factors, and is intended mostly for skins which want to match the behavior of the traditional inline ToC. Suppress the table of contents in the skin?

This reflects the use of the__NOTOC__ magic word in the article (possibly modified by__TOC__ or__FORCETOC__), and represents an explicit request from the author to hide the TOC. Suppress the section edit links?

This reflects theParserOptions::getSuppressSectionEditLinks() flag and affects the default value ofenableSectionEditLinks inParserOutput::getText(). Wrap section contents to allow collapsing them?

This reflects the ParserOptions::getCollapsibleSections() flag. Informs the edit saving system that... Similar to VARY_REVISION, but used if we didn't guess the ID correctly. Informs the edit saving system that getting the canonical output after revision insertion requires a parse that used that exact revision ID. Similar to VARY_REVISION, but used if we didn't guess the timestamp correctly. Informs the edit saving system that getting the canonical output after revision insertion requires a parse that used an actual revision timestamp. Similar to VARY_REVISION, but used if we didn't guess the content correctly. Similar to VARY_REVISION Similar to VARY_REVISION, but used if we didn't guess the page id correctly. Informs the edit saving system that getting the canonical output after page insertion requires a parse that used that exact page id. Similar to VARY_REVISION. Informs the edit saving system that getting the canonical output after revision insertion requires a parse that used the actual user ID. Used to avoid extremely stale user signature timestamps (T84843). Set if the signature wikitext contains another '~~~~' or similar (T230652). Set when the parse is done in "preview mode".

When the parse is done in "previous mode" various shortcuts are taken to work around the fact that the parsed text does not yet have an actual revision ID, revision time, etc.

See also
ParserOptions::getIsPreview() Set when the parse was done with parsoid; clearif the parse was done with the legacy parser (or unknown).
ParserOptions::getUseParsoid() Setif this page contains content which could be asynchronous, evenif the content was "ready" at the time of the parse.

This ensures that when the page expires from the cache and the page is reparsed, RefreshLinksJob will also be re-run since the content could be different from the last parse. (T373256) Set if this page contains asynchronous content which was not ready by the time the output was generated.

At present this reduces the cache TTL. (T373256) Return the ParserOutputFlags, as an array of string flag values.

Returns
list<string>
See also
\MediaWiki\Output\OutputPage::addModules
ParserOutput::addModules
ParserOutput::getModules Style-onlyResourceLoader modules to load.
\MediaWiki\Output\OutputPage::addModuleStyles
ParserOutput::addModuleStyles
ParserOutput::getModuleStyles Extra values for the Content-Security-Policy default-src directive.
ParserOutput::addExtraCSPDefaultSrc
ParserOutput::getExtraCSPDefaultSrcs Extra values for the Content-Security-Policy script-src directive.
ParserOutput::addExtraCSPScriptSrc
ParserOutput::getExtraCSPScriptSrcs Extra values for the Content-Security-Policy style-src directive.
ParserOutput::addExtraCSPStyleSrc
ParserOutput::getExtraCSPStyleSrcs Return the ParserOutputStringSets, as an array of string flag values.
Returns
list<string>

Definition at line41 of fileParserOutputFlags.php.

◆ ParserOutputStringSets

enumMediaWiki::Parser::ParserOutputStringSets : string
Enumerator
values 

Disable magic gallery on category page (NOGALLERY).

ResourceLoader modules to load.

This is used to selectively disable the auto-magic thumbnail gallery on thumbnail pages.

See also
MainConfigSchema::CategoryMagicGallery
ParserOutput::getNoGallery()
ParserOutput::setNoGallery() Whether OOUI should be enabled.
ParserOutput::getEnableOOUI()
ParserOutput::setEnableOOUI() Force index policy to be 'index'.
ParserOutput::getIndexPolicy()
ParserOutput::setIndexPolicy() Force index policy to be 'noindex'.
ParserOutput::getIndexPolicy()
ParserOutput::setIndexPolicy() Show a new section link?
ParserOutput::getNewSection()
ParserOutput::setNewSection() Hide the new section link?
ParserOutput::getHideNewSection()
ParserOutput::setHideNewSection() The prevent-clickjacking flag
ParserOutput::getPreventClickjacking()
ParserOutput::setPreventClickjacking() Show the table of contents in the skin?

This is a /suggestion/ based on whether the TOC is "largeenough" and other factors, and is intended mostly for skins which want to match the behavior of the traditional inline ToC. Suppress the table of contents in the skin?

This reflects the use of the__NOTOC__ magic word in the article (possibly modified by__TOC__ or__FORCETOC__), and represents an explicit request from the author to hide the TOC. Suppress the section edit links?

This reflects theParserOptions::getSuppressSectionEditLinks() flag and affects the default value ofenableSectionEditLinks inParserOutput::getText(). Wrap section contents to allow collapsing them?

This reflects the ParserOptions::getCollapsibleSections() flag. Informs the edit saving system that... Similar to VARY_REVISION, but used if we didn't guess the ID correctly. Informs the edit saving system that getting the canonical output after revision insertion requires a parse that used that exact revision ID. Similar to VARY_REVISION, but used if we didn't guess the timestamp correctly. Informs the edit saving system that getting the canonical output after revision insertion requires a parse that used an actual revision timestamp. Similar to VARY_REVISION, but used if we didn't guess the content correctly. Similar to VARY_REVISION Similar to VARY_REVISION, but used if we didn't guess the page id correctly. Informs the edit saving system that getting the canonical output after page insertion requires a parse that used that exact page id. Similar to VARY_REVISION. Informs the edit saving system that getting the canonical output after revision insertion requires a parse that used the actual user ID. Used to avoid extremely stale user signature timestamps (T84843). Set if the signature wikitext contains another '~~~~' or similar (T230652). Set when the parse is done in "preview mode".

When the parse is done in "previous mode" various shortcuts are taken to work around the fact that the parsed text does not yet have an actual revision ID, revision time, etc.

See also
ParserOptions::getIsPreview() Set when the parse was done with parsoid; clearif the parse was done with the legacy parser (or unknown).
ParserOptions::getUseParsoid() Setif this page contains content which could be asynchronous, evenif the content was "ready" at the time of the parse.

This ensures that when the page expires from the cache and the page is reparsed, RefreshLinksJob will also be re-run since the content could be different from the last parse. (T373256) Set if this page contains asynchronous content which was not ready by the time the output was generated.

At present this reduces the cache TTL. (T373256) Return the ParserOutputFlags, as an array of string flag values.

Returns
list<string>
See also
\MediaWiki\Output\OutputPage::addModules
ParserOutput::addModules
ParserOutput::getModules Style-onlyResourceLoader modules to load.
\MediaWiki\Output\OutputPage::addModuleStyles
ParserOutput::addModuleStyles
ParserOutput::getModuleStyles Extra values for the Content-Security-Policy default-src directive.
ParserOutput::addExtraCSPDefaultSrc
ParserOutput::getExtraCSPDefaultSrcs Extra values for the Content-Security-Policy script-src directive.
ParserOutput::addExtraCSPScriptSrc
ParserOutput::getExtraCSPScriptSrcs Extra values for the Content-Security-Policy style-src directive.
ParserOutput::addExtraCSPStyleSrc
ParserOutput::getExtraCSPStyleSrcs Return the ParserOutputStringSets, as an array of string flag values.
Returns
list<string>

Definition at line38 of fileParserOutputStringSets.php.


[8]ページ先頭

©2009-2025 Movatter.jp