Module:qlu-nouns: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Tag: Manual revert
mNo edit summary
Line 227: Line 227:
end
end


local function make_table(data)
local function make_table(data, branch)
local wikicode = {'{| class="prettytable inflection-table vsSwitcher" data-toggle-category="inflection"\n'}
local wikicode = {'{| class="prettytable inflection-table vsSwitcher" data-toggle-category="inflection"\n'}
table.insert(wikicode, '! colspan="5" class="vsToggleElement" style="text-align:left;min-width: 25em;background:#' ..
table.insert(wikicode, '! colspan="5" class="vsToggleElement" style="text-align:left;min-width: 25em;background:#' ..
  '" | ')
data.latincolour[1] .. '" | ')
table.insert(wikicode, branch_links[branch] .. ' declension of #head\n')


make_headers(data, wikicode)
make_headers(data, wikicode)
make_case(data, wikicode, "nominative")
make_case(data, wikicode, "nominative", branch)
make_case(data, wikicode, "genitive")
make_case(data, wikicode, "genitive", branch)
make_case(data, wikicode, "dative")
make_case(data, wikicode, "dative", branch)
make_case(data, wikicode, "accusative")
make_case(data, wikicode, "accusative-ablative", branch)


table.insert(wikicode, "|}")
table.insert(wikicode, "|}")
1,749

edits

Navigation menu