Difference between revisions of "Module:Sandbox/Luis150902/cleanup/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Renamed user awfwvowjvwrvnwio
(Cleanup)
blackwiki>Renamed user awfwvowjvwrvnwio
(Adding semicolons)
Line 5: Line 5:
 
<code><nowiki>{{</nowiki>#invoke:Sandbox/Luis150902/cleanup|main|''string''}}</code>, where ''string'' is the string to be escaped. This eases the editing of wiki markup containing bidirectional text. Inserting <code>&#38;&#35;61&#59;</code> (escaped form of <code>{{=}}</code>) is displayed as <code>&#59;61&#35;&#38;</code> between right-to-left characters.
 
<code><nowiki>{{</nowiki>#invoke:Sandbox/Luis150902/cleanup|main|''string''}}</code>, where ''string'' is the string to be escaped. This eases the editing of wiki markup containing bidirectional text. Inserting <code>&#38;&#35;61&#59;</code> (escaped form of <code>{{=}}</code>) is displayed as <code>&#59;61&#35;&#38;</code> between right-to-left characters.
  
* Test 1: {{#invoke:Sandbox/Luis150902/cleanup|main|A}} returned {{#invoke:Sandbox/Luis150902/cleanup|main|A}}
+
* Test 1: {{#invoke:Sandbox/Luis150902/cleanup|main|A}} returned A
* Test 2: {{#invoke:Sandbox/Luis150902/cleanup|main|B}} returned {{#invoke:Sandbox/Luis150902/cleanup|main|B}}
+
* Test 2: {{#invoke:Sandbox/Luis150902/cleanup|main|B}} returned B
* Test 3: {{#invoke:Sandbox/Luis150902/cleanup|main|א}} returned &#x05d0  
+
* Test 3: {{#invoke:Sandbox/Luis150902/cleanup|main|א}} returned &#x05d0;
* Test 4: {{#invoke:Sandbox/Luis150902/cleanup|main|אתבש}} returned &#x05d0&#x05ea&#x05d1&#x05e9 (Atbash)
+
* Test 4: {{#invoke:Sandbox/Luis150902/cleanup|main|אתבש}} returned &#x05d0;&#x05ea;&#x05d1;&#x05e9; (Atbash)
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 22:41, 6 January 2017

Usage

{{#invoke:Sandbox/Luis150902/cleanup|main|string}}, where string is the string to be escaped. This eases the editing of wiki markup containing bidirectional text. Inserting &#61; (escaped form of =) is displayed as ;61#& between right-to-left characters.

  • Test 1: A returned A
  • Test 2: B returned B
  • Test 3: א returned א
  • Test 4: אתבש returned אתבש (Atbash)