Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Example  





3 References  





4 See also  














Template:KillMarkers






Авар

فارسی
Македонски

Bahasa Melayu


Simple English
سنڌي
Slovenščina
Tagalog

Türkçe
Tiếng Vit

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


{{{1}}}

Usage

Implements mw.text.killmarkers( s ): remove references and other parser tags from the input string s.

mw:Extension:Scribunto/Lua reference manual#mw.text.killMarkers
See parser tags description mw:Strip marker.

Note: removing a <ref> tag may cause "ghost" references (not in text, but appearing in reference section). See "with" example below.

Example

Without:

Hello world.<ref>{{cite web|url=https://www.example.com/|title=Example reference A}}</ref>
→ Hello world.[1]

With:

{{KillMarkers|Hello world.<ref>{{cite web|url=https://www.example.com/|title=Example reference B}}</ref>}}
→ Hello world.

Ghost reference created:

{{KillMarkers|Hello world.<ref>(Ghost reference) {{cite web|url=https://www.example.com/|title=Example reference C}}</ref>}}
→ Hello world.

References

  1. ^ "Example reference A".
  • ^ "Example reference B".
  • ^ (Ghost reference) "Example reference C".
  • See also


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:KillMarkers&oldid=1054548355"

    Categories: 
    Lua-based templates
    Wikicode string manipulation templates
    Hidden categories: 
    Wikipedia extended-confirmed-protected templates
    Navigational boxes without horizontal lists
     



    This page was last edited on 10 November 2021, at 17:59 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki