Difference between revisions of "Template:KillMarkers"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(Created page with '{{#invoke:Kill markers|main|1={{{1}}}}}<!-- <noinclude>{{documentation}}</noinclude>-->')
 
imported>DePiep
Line 1: Line 1:
 
{{#invoke:Kill markers|main|1={{{1}}}}}<!--
 
{{#invoke:Kill markers|main|1={{{1}}}}}<!--
  
<noinclude>{{documentation}}</noinclude>-->
+
--><noinclude>{{documentation}}</noinclude>

Revision as of 10:46, 21 April 2019

Script error: No such module "Kill markers".

Template documentation[view] [edit] [history] [purge]

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>}}
Script error: No such module "Kill markers".

Ghost reference created:

{{KillMarkers|Hello world.<ref>(Ghost reference) {{cite web|url=https://www.example.com/|title=Example reference C}}</ref>}}
Script error: No such module "Kill markers".

References

  1. "Example reference A".

See also