Template:KillMarkers/doc

From English Wikipedia @ Freddythechick

This function processes the content provided by |1= using the mw.text.killMarkers function. It removes references and other parser tags from the input content. Note: Removing a <ref>...</ref> tag may cause "ghost" references (one that's not in text, but still appears in the reference section). See the "with" example below.

Usage

{{KillMarkers|Text to process}}

Example

Without: <syntaxhighlight lang="wikitext"> According to math, .[1] </syntaxhighlight>

→ According to math, .[2]

With: <syntaxhighlight lang="wikitext"> According to math, . </syntaxhighlight>

→ According to math, .

References

  1. ^ "Example reference A".
  2. ^ "Example reference A".
  3. ^ (Ghost reference) "Example reference A".
  4. ^ (Ghost reference) "Example reference A".

See also