Template:KillMarkers/doc: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "{{Documentation subpage}} {{lua|Module:Unstrip}} == Usage == Implements <code>mw.text.killmarkers( s )</code>: remove references and other :mw:Strip_marker#Example..." |
Caleb Cooper (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
{{lua|Module:Unstrip}} |
{{lua|Module:Unstrip}}{{Commons Import}} |
||
== Usage == |
== Usage == |
||
Implements <code>mw.text.killmarkers( s )</code>: remove references and other [[:mw:Strip_marker#Examples|parser tags]] from the input string <code>s</code>. |
Implements <code>mw.text.killmarkers( s )</code>: remove references and other [[:mw:Strip_marker#Examples|parser tags]] from the input string <code>s</code>. |
||
Latest revision as of 17:12, 18 October 2020
| This template uses Lua: |
| This page was automatically imported from Commons any changes will be overwritten, the source page is here () |
Usage
Implements mw.text.killmarkers( s ): remove references and other parser tags from the input string s.
- mw:Extension:Scribunto/Lua reference manual
- 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
- ↑ "Example reference A".
- ↑ "Example reference B".
- ↑ (Ghost reference) "Example reference C".