Template:KillMarkers/doc

< Template:KillMarkers
Revision as of 09:30, 30 October 2024 by Muskit Gergous (talk | contribs) (Created page with "{{Documentation subpage}} {{High-use}} {{Lua|Module:Unstrip}} This function processes the content provided by {{Para|1}} using the mw.text.killMarkers function. It removes references and other parser tags from the input content. Note: Removing a {{Tag|ref}} tag may cause "ghost" references (one that's not in text, but still appears in the reference section). See the "with"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

According to math, <math>2 + 2 = 4</math>.<ref>{{cite web|url=https://www.example.com/|title=Example reference A}}</ref>
→ According to math, .[1]

With:

{{KillMarkers|According to math, <math>2 + 2 = 4</math>.<ref>(Ghost reference) {{cite web|url=https://www.example.com/|title=Example reference A}}</ref>}}
→ According to math, .

References

  1. "Example reference A".
  2. (Ghost reference) "Example reference A".

See also