MediaWiki master
ParserOutputFlags.php
Go to the documentation of this file.
1<?php
2
14namespace MediaWiki\Parser;
15
28enum ParserOutputFlags: string {
29
30 // These flags are currently stored as ParserOutput properties
31
43 case NO_GALLERY = 'mw-NoGallery';
44
51 case ENABLE_OOUI = 'mw-EnableOOUI';
52
59 case INDEX_POLICY = 'mw-IndexPolicy';
60
67 case NO_INDEX_POLICY = 'mw-NoIndexPolicy';
68
75 case NEW_SECTION = 'mw-NewSection';
76
83 case HIDE_NEW_SECTION = 'mw-HideNewSection';
84
94 case PREVENT_CLICKJACKING = 'mw-PreventClickjacking';
95
96 // These flags are stored in the ParserOutput::$mFlags array
97
106 case SHOW_TOC = 'show-toc';
107
116 case NO_TOC = 'no-toc';
117
126 case NO_SECTION_EDIT_LINKS = 'no-section-edit-links';
127
135 case COLLAPSIBLE_SECTIONS = 'collapsible-sections';
136
137 // See RenderedRevision::outputVariesOnRevisionMetadata for the
138 // following flags.
139
148 case VARY_REVISION = 'vary-revision';
149
158 case VARY_REVISION_ID = 'vary-revision-id';
159
167 case VARY_REVISION_TIMESTAMP = 'vary-revision-timestamp';
168
177 case VARY_REVISION_SHA1 = 'vary-revision-sha1';
178
184 case VARY_REVISION_EXISTS = 'vary-revision-exists';
185
193 case VARY_PAGE_ID = 'vary-page-id';
194
201 case VARY_USER = 'vary-user';
202
209 case USER_SIGNATURE = 'user-signature';
210
220 case IS_PREVIEW = 'is-preview';
221
229 case USE_PARSOID = 'use-parsoid';
230
242 case HAS_ASYNC_CONTENT = 'has-async-content';
243
251 case ASYNC_NOT_READY = 'async-not-ready';
252
257 public static function values(): array {
258 return array_column( self::cases(), 'value' );
259 }
@ values
Disable magic gallery on category page (NOGALLERY).