Jump to content

Module:US elections imagemap/utils/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
this module is finished
m Usage: didn't realize I had this typo'd lol
 
Line 5: Line 5:


* <code>stripspaces(str)</code> strips spaces from <code>str</code>.
* <code>stripspaces(str)</code> strips spaces from <code>str</code>.
* <code>stripspaces(str, sep)</code> split <code>str</code> into a table of strings at each <code>sep</code>.
* <code>split(str, sep)</code> split <code>str</code> into a table of strings at each <code>sep</code>.


Unlike many other string utilities on Wikipedia, these are designed to be called from another Lua script easily — ''not'' to be called directly with <code><nowiki>{{#invoke}}</nowiki></code>.
Unlike many other string utilities on Wikipedia, these are designed to be called from another Lua script easily — ''not'' to be called directly with <code><nowiki>{{#invoke}}</nowiki></code>.

Latest revision as of 05:50, 26 May 2021

Usage

[edit]

String utilities for Module:US elections imagemap.

  • stripspaces(str) strips spaces from str.
  • split(str, sep) split str into a table of strings at each sep.

Unlike many other string utilities on Wikipedia, these are designed to be called from another Lua script easily — not to be called directly with {{#invoke}}.