View source for Module:Roman
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- 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
Templates used on this page:
- Template:Endplainlist (view source)
- Template:Green (view source)
- Template:High-use (view source)
- Template:Lua sidebar (view source)
- Template:Lua sidebar/styles.css (view source)
- Template:Module other (view source)
- Template:Module rating (view source)
- Template:Ombox (view source)
- Template:Plainlist (view source)
- Template:Sidebar (view source)
- Template:Tl (view source)
- Module:Arguments (view source)
- Module:Effective protection level (view source)
- Module:High-use (view source)
- Module:Message box (view source)
- Module:Message box/configuration (view source)
- Module:No globals (view source)
- Module:Redirect (view source)
- Module:Roman/doc (view source)
- Module:Sidebar (view source)
- Module:Sidebar/configuration (view source)
- Module:Sidebar/styles.css (view source)
- Module:Transclusion count (view source)
- Module:Transclusion count/data/R (view source)
- Module:Yesno (view source)
Return to Module:Roman.