[перевірена версія][перевірена версія]
Вилучено вміст Додано вміст
м Відкинуто редагування Gzhegozh (обговорення) до зробленого Nickispeaki
Мітка: Відкіт
Немає опису редагування
Рядок 2:
-- #invoke. It is intended for use by other Lua modules, and should not be
-- called from #invoke directly.
-- Цей модуль забезпечує легку передачу аргументів до Scribunto з #invoke.
-- Цей модуль призначено для використання у інших модулях Lua.
-- Цей модуль не має використовуватися безпосередньо.
 
local libraryUtil = require('libraryUtil')
Рядок 13 ⟶ 10:
-- Generate four different tidyVal functions, so that we don't have to check the
-- options every time we call it.
-- Створення чотирьох різних tidyVal функцій, так що ми не повинні перевірити
-- опції щоразу при їх визові.
 
local function tidyValDefault(key, val)
Рядок 131 ⟶ 126:
 
-- We test for false specifically here so that nil (the default) acts like true.
-- ми тестуємо на хибність тут, тому nil (за замовчуванням) діє як істинність
if found or options.frameOnly == false then
pargs = parent.args
Рядок 141 ⟶ 135:
else
-- options.wrapper isn't set, so check the other options.
-- options.wrapper не встановлено, отож перевіримо інші опції.
if not options.parentOnly then
fargs = frame.args
Рядок 294 ⟶ 287:
-- the value in metaArgs, so that __index, __pairs and __ipairs do
-- not use a previous existing value, if present; and we also need
-- to memorizememoize the nil in nilArgs, so that the value isn't looked
-- up in the argument tables if it is accessed again.
--]]