Module:US elections imagemap/utils/doc: Difference between revisions
Appearance
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> |
* <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 fromstr
.split(str, sep)
splitstr
into a table of strings at eachsep
.
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}}
.