:KillMarkers/설명문서

-offbeat.persona (토론 | 기여)님의 2020년 4월 3일 (금) 23:19 판 (새 문서: {{Documentation subpage}} {{lua|Module:Unstrip}} == Usage == Implements <code>mw.text.killmarkers( s )</code>: remove references and other :mw:Strip_marker#Examples|parser...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

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

See also