Jump to content
Wikipedia The Free Encyclopedia

Module:Wikitext Parsing/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Aidan9382 (talk | contribs) at 13:05, 9 March 2023 (rough idea). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision .Revision as of 13:05, 9 March 2023 by Aidan9382 (talk | contribs) (rough idea)
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Module:Wikitext Parsing.
It may contain usage information, categories and other content that is not part of the original module page.


Usage

This module is a Proof-Of-Content module to do with the rare processing error involved in functions like Module:Transcluder's getParameters(). The primary function, EscapeEscapedContent, will run any content within certain tags or comments through mw.text.nowiki, to avoid it being processed, allowing even the most absurd wikisyntax to be parsed through basic means.

EscapeEscapedContentV2 is an alternative to the main function which instead removes some text instead of simply hiding it, such as removing html comments fully instead of just nowiki'ing it.

This currently isn't used in any real modules as it's somewhat untested, probably expensive, and definitely excessive, hence the name (if a multi-line nowiki tag is causing you issues, maybe it's the target page's fault, not the module's).

Shortfalls: Currently unsure about the situation of <includeonly>...</includeonly> and how it's handled during processing, so it isn't handled by the module yet, though this isn't likely to matter much (hopefully).


AltStyle によって変換されたページ (->オリジナル) /