48,406
edits
No edit summary |
No edit summary |
||
| Line 117: | Line 117: | ||
local function make_table(data) | local function make_table(data) | ||
local wikicode = mw.getCurrentFrame():expandTemplate{ | |||
title = 'inflection-table-top', | |||
args = { | |||
title = 'Declension of {word} ({decl})', | |||
palette = 'brown', | |||
} | |||
} .. [=[ | |||
| class="Tugv" style="font-size: 400%; color: #b41a00; min-width: 0" | <span style="position: relative; top: -10px;">x</span> | |||
! singular | |||
! plural | |||
|- | |||
! asematic | |||
| {word} | |||
| {word} | |||
|- | |||
! sematic | |||
| {word} | |||
| {word} | |||
|- | |||
! class="secondary" | inessive | |||
| {word} | |||
| {word} | |||
|- | |||
! class="secondary" | illative | |||
| {word} | |||
| {word} | |||
|- | |||
! class="secondary" | elative | |||
| {word} | |||
| {word} | |||
|- | |||
! class="secondary" | comitative | |||
| {word} | |||
| {word} | |||
|- | |||
! class="secondary" | essive | |||
| {word} | |||
| {word} | |||
|- | |||
]=] .. mw.getCurrentFrame():expandTemplate{ | |||
title = 'inflection-table-bottom', | |||
} | |||
local forms = {} | |||
forms.word = data.word | |||
forms.decl = data.decl | |||
return require('Module:string_utilities').format(wikicode, forms) | |||
end | end | ||
| Line 132: | Line 180: | ||
local data = {} | local data = {} | ||
data.word = args[1] | |||
data.decl = args.decl or detect_decl(args[1], args.schiz) | data.decl = args.decl or detect_decl(args[1], args.schiz) | ||