Jump to content

Module:US elections imagemap/utils/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Elli (talk | contribs) at 05:50, 26 May 2021 (Usage: didn't realize I had this typo'd lol). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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}}.