Изворни код странице Модул:ParameterCount
Пређи на навигацију
Пређи на претрагу
Немате дозволу да уређујете ову страницу из следећег разлога:
Можете да видите и копирате извор ове странице.
-- This module produces a count of all the arguments passed to it.
local yesno = require('Module:Yesno')
-- Trim a string
local function trim(s)
return s:match('^%s*(.-)%s*$')
end
-- Test whether a string is blank
local function isBlank(s)
return not s:find('%S')
end
-- Tests whether a string is a valid positional key, and if so, returns it. If
-- the key is invalid, this returns nil.
local function isPositionalKey(s)
s = trim(s)
if s:find('^[1-9][0-9]*$') then
return tonumber(s)
000
1:0
Шаблон који се користи на овој страници:
Назад на страницу Модул:ParameterCount.