Module:Rank-n scale: Difference between revisions
No edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
local p = {} | |||
local infobox = require('Module:Infobox') | local infobox = require('Module:Infobox') | ||
local function rotate_word(str, n) -- rotate word s by n steps | local function rotate_word(str, n) -- rotate word s by n steps | ||
| Line 88: | Line 88: | ||
end | end | ||
function p.create_infobox( | function p.create_infobox(frame) | ||
local mv = max_variety( | local scale = frame.args["scale"] | ||
local bdc = bright_dark_chiral( | local mv = max_variety(scale) | ||
local bdc = bright_dark_chiral(scale) | |||
local brightest_mode | local brightest_mode | ||
| Line 115: | Line 116: | ||
{"Has strict variety?", mv["is strict?"]}, | {"Has strict variety?", mv["is strict?"]}, | ||
} | } | ||
return infobox.build_multilink( | return infobox.build_multilink(scale, entries) | ||
end | end | ||