틀:KillMarkers
{{{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>{{웹 인용|url=https://www.example.com/|title=Example reference A}}</ref>
- → Hello world.[1]
With:
{{KillMarkers|Hello world.<ref>{{웹 인용|url=https://www.example.com/|title=Example reference B}}</ref>}}
- → Hello world.
Ghost reference created:
{{KillMarkers|Hello world.<ref>(Ghost reference) {{웹 인용|url=https://www.example.com/|title=Example reference C}}</ref>}}
- → Hello world.
References
편집- ↑ “Example reference A”.
- ↑ “Example reference B”.
- ↑ (Ghost reference) “Example reference C”.