10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 65: | Line 65: | ||
local IPA_no_auto = false | local IPA_no_auto = false | ||
local syllables_no_auto = false | local syllables_no_auto = false | ||
local show_rhymes = true | |||
local mode = "IPA" | local mode = "IPA" | ||
local mode_dialect = "standard" | local mode_dialect = "standard" | ||
Line 74: | Line 75: | ||
while args[i] ~= nil or args[i+1] ~= nil do | while args[i] ~= nil or args[i+1] ~= nil do | ||
mw.log("Processing argument " .. i .. ".") | mw.log("Processing argument " .. i .. ".") | ||
if parameter[args[i]] ~= nil then -- mode changer | if args[i] == "no rhyme" or args[i] == "norhyme" or args[i] == "no rhymes" or args[i] == "norhymes" then | ||
show_rhymes = false | |||
elseif parameter[args[i]] ~= nil then -- mode changer | |||
mode = args[i] | mode = args[i] | ||
mode_dialect = "standard" | mode_dialect = "standard" | ||
Line 226: | Line 229: | ||
local rhymes_show = "" | local rhymes_show = "" | ||
if #rhymes > 0 then | if #rhymes > 0 and show_rhymes then | ||
rhymes_show = "\n* Rhymes:" | rhymes_show = "\n* Rhymes:" | ||