Изворни код странице Модул:Roman
Пређи на навигацију
Пређи на претрагу
Немате дозволу да уређујете ову страницу из следећег разлога:
Можете да видите и копирате извор ове странице.
-- This module implements {{Roman}}.
local p = {}
-- This function implements the {{overline}} template.
local function overline(s)
return mw.ustring.format( '<span style="text-decoration:overline;">%s</span>', s )
end
-- Gets the Roman numerals for a given numeral table. Returns both the string of
-- numerals and the value of the number after it is finished being processed.
local function getLetters(num, t)
local ret = {}
for _, v in ipairs(t) do
local val, letter = unpack(v)
while num >= val do
num = num - val
table.insert(ret, letter)
end
end
000
1:0
Шаблон који се користи на овој страници:
Назад на страницу Модул:Roman.