Jump to content

Module talk:Escape/testcases

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Codehydro (talk | contribs) at 21:51, 14 January 2015. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Original:

test { test {\{ test, \test, \{,test\ \ \ {\

Using internal method to remove {:

{{#invoke:Escape|main|mode=kill|{{#invoke:Escape/testcases|test_string2}}|{}}

test test { test, test, {,test \

Using {{replace}} to remove {:

{{#invoke:Escape|main|mode=undo|{{replace|{{#invoke:Escape|main|mode=text|{{#invoke:Escape/testcases|test_string2}}}}|{|}}}}

test test { test, test, {,test \

No removal of { between escape/unescape (removal of escape only):

test { test {{ test, test, {,test {\

Restore revert to original after escape

{{#invoke:Escape|main|mode=undo
|{{#invoke:Escape|main|mode=text|{{#invoke:Escape/testcases|test_string2}}}}
|\
}}

test { test {\{ test, \test, \{,test\ \ \ {\

Remove the word test if not escaped and then place a different escape char in the place of the old (for use by something else):

Note: The '%' char is a special in Lua, so use '%%' if that is the desired replacement. Otherwise, just a single char is fine (or a word).

{{#invoke:Escape|main|mode=kill
|{{#invoke:Escape/testcases|test_string2}}
|test
|%%
}}

{ {%{ , %test, %{,% % % {\