Module talk:Sandbox/Matroc/Misc

Testing multiple functions in a module

  • Reverse
  • {{#Invoke: Sandbox/Matroc/Misc|reverse|Reverse this String}}
  • Pad Left
  • {{#Invoke: Sandbox/Matroc/Misc|padleft|This is test|.|20}}
  • Pad Right
  • {{#Invoke: Sandbox/Matroc/Misc|padright|This is a test|.|20}}
  • Note: Trim left - right - both is just code for use within a module to strip spaces within a parameter - just snippets
  • Trim left
  • {{#Invoke: Sandbox/Matroc/Misc|trimleft| This is a test }}
  • Trim right
  • {{#Invoke: Sandbox/Matroc/Misc|trimright| This is a test }}
  • Trim both
  • {{#Invoke: Sandbox/Matroc/Misc|trimboth| This is a test }}