Moduł:odmiana-przymiotnik-czeski: Różnice pomiędzy wersjami

[wersja przejrzana][wersja przejrzana]
Usunięta treść Dodana treść
wymiana spolglosek w temacie przymiotnikow odmiany twardej (Specjalna:Diff/7503568)
obocznosc w stopniu wyzszym (Specjalna:Diff/7503568)
 
Linia 92:
end
 
function appendSoftDeclensionFormsTo( t, stem, stem2 )
function makeForm( ending )
local form = stem .. ending
if stem2 and stem2 ~= '' then
form = form .. '<br>' .. stem2 .. ending
end
return form
end
appendHeaderTo( t, true )
t:tag( 'tr' )
:tag( 'td' ):addClass( 'forma' ):wikitext( '[[mianownik]]' ):done()
:tag( 'td' ):attr( 'colspan', 4 ):wikitext( stem ..makeForm( 'í' ) ):done()
:tag( 'td' ):attr( 'colspan', 4 ):wikitext( stem ..makeForm( 'í' ) ):done()
t:tag( 'tr' )
:tag( 'td' ):addClass( 'forma' ):wikitext( '[[dopełniacz]]' ):done()
:tag( 'td' ):attr( 'colspan', 2 ):wikitext( stem ..makeForm( 'ího' ) ):done()
:tag( 'td' ):wikitext( stem ..makeForm( 'í' ) ):done()
:tag( 'td' ):wikitext( stem ..makeForm( 'ího' ) ):done()
:tag( 'td' ):attr( 'colspan', 4 ):wikitext( stem ..makeForm( 'ích' ) ):done()
t:tag( 'tr' )
:tag( 'td' ):addClass( 'forma' ):wikitext( '[[celownik]]' ):done()
:tag( 'td' ):attr( 'colspan', 2 ):wikitext( stem ..makeForm( 'ímu' ) ):done()
:tag( 'td' ):wikitext( stem ..makeForm( 'í' ) ):done()
:tag( 'td' ):wikitext( stem ..makeForm( 'ímu' ) ):done()
:tag( 'td' ):attr( 'colspan', 4 ):wikitext( stem ..makeForm( 'ím' ) ):done()
t:tag( 'tr' )
:tag( 'td' ):addClass( 'forma' ):wikitext( '[[biernik]]' ):done()
:tag( 'td' ):wikitext( stem ..makeForm( 'ího' ) ):done()
:tag( 'td' ):attr( 'colspan', 3 ):wikitext( stem ..makeForm( 'í' ) ):done()
:tag( 'td' ):attr( 'colspan', 4 ):wikitext( stem ..makeForm( 'í' ) ):done()
t:tag( 'tr' )
:tag( 'td' ):addClass( 'forma' ):wikitext( '[[wołacz]]' ):done()
:tag( 'td' ):attr( 'colspan', 4 ):wikitext( stem ..makeForm( 'í' ) ):done()
:tag( 'td' ):attr( 'colspan', 4 ):wikitext( stem ..makeForm( 'í' ) ):done()
t:tag( 'tr' )
:tag( 'td' ):addClass( 'forma' ):wikitext( '[[miejscownik]]' ):done()
:tag( 'td' ):attr( 'colspan', 2 ):wikitext( stem ..makeForm( 'ím' ) ):done()
:tag( 'td' ):wikitext( stem ..makeForm( 'í' ) ):done()
:tag( 'td' ):wikitext( stem ..makeForm( 'ím' ) ):done()
:tag( 'td' ):attr( 'colspan', 4 ):wikitext( stem ..makeForm( 'ích' ) ):done()
t:tag( 'tr' )
:tag( 'td' ):addClass( 'forma' ):wikitext( '[[narzędnik]]' ):done()
:tag( 'td' ):attr( 'colspan', 2 ):wikitext( stem ..makeForm( 'ím' ) ):done()
:tag( 'td' ):wikitext( stem ..makeForm( 'í' ) ):done()
:tag( 'td' ):wikitext( stem ..makeForm( 'ím' ) ):done()
:tag( 'td' ):attr( 'colspan', 4 ):wikitext( stem ..makeForm( 'ími' ) ):done()
end
 
Linia 221 ⟶ 231:
local base = frame.args.base
local comparative = frame.args.comparative
local comparative2 = frame.args.comparative2
local t = mw.html.create( 'table' )
Linia 263 ⟶ 274:
local compLabel = '&nbsp;stopień wyższy <strong>' .. comparative .. '</strong>'
if comparative2 ~= '' then
compLabel = compLabel .. ' / <strong>' .. comparative2 .. '</strong>'
end
compTable:tag( 'tr' )
Linia 268 ⟶ 283:
local compStem = mw.ustring.sub( comparative, 1, -2 )
local compStem2 = mw.ustring.sub( comparative2, 1, -2 )
appendSoftDeclensionFormsTo( compTable, compStem, compStem2 )
t:tag( 'tr' )
Linia 281 ⟶ 297:
local superlative = 'nej' .. comparative
local supLabel = '&nbsp;stopień najwyższy <strong>' .. superlative .. '</strong>'
if comparative2 ~= '' then
supLabel = supLabel .. ' / <strong>nej' .. comparative2 .. '</strong>'
end
supTable:tag( 'tr' )
Linia 286 ⟶ 306:
local supStem = mw.ustring.sub( superlative, 1, -2 )
local supStem2 = comparative2 ~= '' and 'nej' .. mw.ustring.sub( comparative2, 1, -2 ) or ''
appendSoftDeclensionFormsTo( supTable, supStem, supStem2 )
t:tag( 'tr' )