Module:rad-pronunciation: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 303: Line 303:


     if #rhymes > 0 and show_rhymes then
     if #rhymes > 0 and show_rhymes then
        rhymes_show = "\n* Rhymes:"
    rhymes_show = "\n* Rhyme"
    if #rhymes > 1 then rhymes_show = rhymes_show .. "s" end
    rhymes_show = rhymes_show .. ":"


         for num, rhyme in ipairs(rhymes) do
         for num, rhyme in ipairs(rhymes) do
             if rhymes_show ~= "\n* Rhymes:" then
             if num > 1 then
                 rhymes_show = rhymes_show .. ","
                 rhymes_show = rhymes_show .. ","
             end
             end
Line 313: Line 315:
             if rhyme_count < 2 then
             if rhyme_count < 2 then
             rhymes_show = rhymes_show ..
             rhymes_show = rhymes_show ..
             " <span class=\"IPA\">" .. rhyme .. "</span>[[Category:" .. rhyme_cat .. "]]" ..
             " <span class=\"IPA\">-" .. rhyme .. "</span>[[Category:" .. rhyme_cat .. "]]" ..
                " <sup>(no other rhymes on site)</sup>"
                " <sup>(no other rhymes on site)</sup>"
         else
         else

Navigation menu