Module:Sandbox/Aurelain/Link/doc: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "This module is intended as a supporting muscle for the LinkIcon template. ==clean()== Removes the following words from a text: * <code>Basic </code> * <code>Advanced </code> * <code>Expert </code> * <code>_special</code> * <code>Masterful </code> {{Color|yellow|Input:}} <pre><nowiki> {{#invoke:Sandbox/Aurelain/Link|clean |Lorem,Basic ,Advanced , Expert ,_special,Masterful ,Ipsum }} </nowiki></pre> {{Color|lime|Output:}} {{#invoke:Sandbox/Aurelain..."
 
No edit summary
Line 11: Line 11:
{{Color|yellow|Input:}} <pre><nowiki>
{{Color|yellow|Input:}} <pre><nowiki>
{{#invoke:Sandbox/Aurelain/Link|clean
{{#invoke:Sandbox/Aurelain/Link|clean
|Lorem,Basic ,Advanced , Expert ,_special,Masterful ,Ipsum
|Lorem,Basic ,Advanced ,Expert ,_special,Masterful ,Ipsum
}}
}}
</nowiki></pre>
</nowiki></pre>
Line 17: Line 17:
{{Color|lime|Output:}}
{{Color|lime|Output:}}
{{#invoke:Sandbox/Aurelain/Link|clean
{{#invoke:Sandbox/Aurelain/Link|clean
|Lorem,Basic ,Advanced , Expert ,_special,Masterful ,Ipsum
|Lorem,Basic ,Advanced ,Expert ,_special,Masterful ,Ipsum
}}
}}

Revision as of 17:02, 25 August 2026

This module is intended as a supporting muscle for the LinkIcon template.

clean()

Removes the following words from a text:

  • Basic
  • Advanced
  • Expert
  • _special
  • Masterful

Input:

{{#invoke:Sandbox/Aurelain/Link|clean
|Lorem,Basic ,Advanced ,Expert ,_special,Masterful ,Ipsum
}}

Output: Lorem,,,,,,Ipsum