10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 306: | Line 306: | ||
for num, rhyme in ipairs(rhymes) do | for num, rhyme in ipairs(rhymes) do | ||
if | if rhymes_show ~= "\n* Rhymes:" then | ||
rhymes_show = rhymes_show .. "," | rhymes_show = rhymes_show .. "," | ||
end | end | ||
rhymes_show = | local rhyme_cat = "Rhymes:Radestrian/" .. rhyme | ||
local rhyme_count = mw.site.stats.pagesInCategory(rhyme_cat, "pages") | |||
if rhyme_count < 2 then | |||
rhymes_show = rhymes_show .. | |||
" <span class=\"IPA\">" .. rhyme .. "</span>[[Category:" .. rhyme_cat .. "]]" .. | |||
" <sup>(no other rhymes on site)</sup>" | |||
else | |||
rhymes_show = rhymes_show .. | |||
" <span class=\"IPA\">[[:Category:" .. rhyme_cat .. "|-" .. rhyme .. "]]</span>[[Category:" .. rhyme_cat .. "]]" .. | |||
" <sup>(" .. rhyme_count .. ")</sup>" | |||
end | |||
end | end | ||
end | end |