Namespace: WikitextConstants

config/WikitextConstants~WikitextConstants

Namespaces

HTML
Media

Valid media options:

  • Prefix options are of the form "alt=foo"
  • Simple options are of the form "center"
.
Output
Sanitizer

Members

(static) BlockScopeCloseTags :Set

In the PHP parser, these block tags close block-tag scope.

In the PHP parser, these block tags close block-tag scope. See doBlockLevels in the PHP parser (includes/parser/Parser.php).

Type:
Source:

(static) BlockScopeOpenTags :Set

In the PHP parser, these block tags open block-tag scope.

In the PHP parser, these block tags open block-tag scope. See doBlockLevels in the PHP parser (includes/parser/Parser.php).

Type:
Source:

(static) HTMLTagsRequiringSOLContext :Set

These HTML tags will be generated only if the corresponding wikitext occurs in a SOL context.

These HTML tags will be generated only if the corresponding wikitext occurs in a SOL context.

Type:
Source:

(static) HTMLTagsWithWTEquivalents :Set

These HTML tags have native wikitext representations.

These HTML tags have native wikitext representations. All other HTML tags would have to be emitted as HTML tags in wikitext.

Type:
Source:

(static) LCFlagMap :Map

Map LanguageConverter wikitext flags to readable JSON field names.

Map LanguageConverter wikitext flags to readable JSON field names.

Type:
Source:

(static) LCNameMap :Map

Map JSON field names to LanguageConverter wikitext flags.

Map JSON field names to LanguageConverter wikitext flags. This information is derived from .LCFlagMap and set below.

Type:
Source:

(static) SolSpaceSensitiveTags :Set

Leading whitespace on new lines changes wikitext parsing for these tags (*#;:=).

Leading whitespace on new lines changes wikitext parsing for these tags (*#;:=).

Type:
Source:

(static) StrongIndentPreSuppressingTags :Set

Leading whitespace on new lines in these elements does not lead to indent-pre.

Leading whitespace on new lines in these elements does not lead to indent-pre. This applies to all nested content in these tags. Ex: content in table-cells nested in blocktags do not induce indent pres

These tags should match $openmatch regexp in doBlockLevels:

$openmatch = preg_match( '/(?:<table|<blockquote|<h1|<h2|<h3|<h4|<h5|<h6|<pre|<tr|<p|<ul|<ol|<dl|<li|<\\/tr|<\\/td|<\\/th)/iS', $t )

PHP parser handling is line-based. Our handling is DOM-children based. So, there might be edge cases where behavior will be different.

Type:
Source:

(static) WeakIndentPreSuppressingTags :Set

Leading whitespace on new lines in these elements does not lead to indent-pre.

Leading whitespace on new lines in these elements does not lead to indent-pre. This only applies to immediate children (while skipping past zero-wikitext tags). (Ex: content in table-cells induce indent pres)

Type:
Source:

(static) WikitextTagsWithTrimmableWS :Set

These HTML tags come from native wikitext markup and (as long as they are not literal HTML tags in the wikitext source) should have whitespace trimmed from their content.

These HTML tags come from native wikitext markup and (as long as they are not literal HTML tags in the wikitext source) should have whitespace trimmed from their content.

Type:
Source:

(static) WTQuoteTags :Set

These wikitext tags are composed with quote-chars.

These wikitext tags are composed with quote-chars.

Type:
Source:

(static) WTTagsWithNoClosingTags :Set

These HTML tags have native wikitext representations.

These HTML tags have native wikitext representations. The wikitext equivalents do not have closing tags.

Type:
Source:

(static) WtTagWidths :Map

Known wikitext tag widths.

Known wikitext tag widths. These are known statically but other widths are computed or updated based on actual wikitext usage.

Type:
Source:

(static) ZeroWidthWikitextTags :Set

HTML tags whose wikitext equivalents are zero-width.

HTML tags whose wikitext equivalents are zero-width. This information is derived from WtTagWidths and set below.

Type:
Source: