Template:KillMarkers/doc
![]() | This is a documentation subpage for Template:KillMarkers. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 115,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
![]() | This template uses Lua: |
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
- ^ "Example reference A".
- ^ "Example reference A".
- ^ (Ghost reference) "Example reference A".
- ^ (Ghost reference) "Example reference A".