پودمان:QuranTextTranslate
ظاهر
-- This module implements {{QuranTextTranslate}}.
local p = {}
function p.render(frame)
local args = frame:getParent().args
local rows = {}
local i = 1
while args["row" .. i .. "col1"] or args["row" .. i .. "col2"] do
local col1 = args["row" .. i .. "col1"] and
string.format('<span class="quran-resizable-text-content">%s</span>', args["row" .. i .. "col1"]) or "" -- << اصلاح شد
local col2 = args["row" .. i .. "col2"] and
string.format('<span class="quran-resizable-text-content">%s</span>', args["row" .. i .. "col2"]) or "" -- << اصلاح شد
table.insert(rows, string.format(
'<div class="quran-table-row"><div class="quran-table-cell quran-right-cell">%s</div><div class="quran-table-cell quran-left-cell">%s</div></div>',
col1, col2
))
i = i + 1
end
return string.format('<div class="quran-responsive-table">%s</div>', table.concat(rows, ""))
end
return p
-- [[Category:Template:Triple tab Quran]]