Module:Arguments/doc: Difference between revisions
From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
Content deleted Content added
→Custom trimming and blank removal: new section name, copy edit |
use value consistently for valueFunc, and tweak whitespace |
||
Line 83:
trim = false,
removeBlanks = false,
valueFunc = function (key,
-- Code for processing one argument
end,
Line 116:
<source lang="lua">
local args = getArgs(frame, {
valueFunc = function (key, value)
if key == 1 then
return value
Line 132:
<source lang="lua">
local args = getArgs(frame, {
valueFunc = function (key, value)
value = mw.ustring.lower(value)
if mw.ustring.find(value, '%S') then
Line 147:
<source lang="lua">
local args = getArgs(frame, {
valueFunc = function (key, value)
if key == 1 then
return value
Line 165:
<source lang="lua">
local args = getArgs(frame, {
valueFunc = function (key, value)
if type(value) == 'string' then
value = mw.ustring.lower(value)
|