Dokumentationen för denna modul kan skapas på Modul:fr-verb-artikel/dok /test
-- Denna modul tabulerar konjugationen för franska verb.
-- Modulen anropar ] som sköter själva konjugeringen.
-- Denna modul hanterar enbart den visuella framställningen av dessa.
-- Denna modul anropas i sin tur av en mall, just nu {{fr-verb-test}}.
-- Upphovsman och kontaktperson: ]
local export = {}
local tabell = {}
local p=require("Modul:fr-verb-konj") -- för konjugeringarna
local glink=require("Modul:grammar-link") -- för motsvarigheten till {{g-cell}}
export.show = function ( argument )
local artikelnamn = argument.args
q = p.konjugera(artikelnamn)
-- följande tre rader används enbart i felsökningssyfte
if (argument.args == "ja") then
return q
end
-- hjälpverb: "avoir" eller "être" ?
local auxil_verb = argument.args -- främst användarens
if (auxil_verb == "") then
auxil_verb = q -- annars modulens förslag
end
if (auxil_verb == "") then
auxil_verb = "avoir" -- annars avoir
end
-- ska det böjas opersonligt? (exempelvis "falloir")
local opers = false -- normalfallet är nej, inte opersonlig
-- vissa verb *kan* bara böjas opersonligt, då
-- är det nödvändigt
if (q) then
opers = true
elseif (argument.args == "ja") then -- annars, vad begär användaren?
opers = true
elseif (argument.args == "j") then
opers = true
end
-- reflexivt? (exempelvis "se méfier")
local reflexivt_verb = false
if (q) then
reflexivt_verb = true
elseif (argument.args == "ja") then -- annars, vad begär användaren?
reflexivt_verb = true
elseif (argument.args == "j") then
reflexivt_verb = true
end
-- text om "betydelser"
local betydelser_text = argument.args
-- hantera alternativformerna först
displaytexts = {}
local bojningsformer = {
'indikativ_present_1pers_sg',
'indikativ_present_2pers_sg',
'indikativ_present_3pers_sg',
'indikativ_present_1pers_pl',
'indikativ_present_2pers_pl',
'indikativ_present_3pers_pl',
'indikativ_imparfait_1pers_sg',
'indikativ_imparfait_2pers_sg',
'indikativ_imparfait_3pers_sg',
'indikativ_imparfait_1pers_pl',
'indikativ_imparfait_2pers_pl',
'indikativ_imparfait_3pers_pl',
'indikativ_passesimple_1pers_sg',
'indikativ_passesimple_2pers_sg',
'indikativ_passesimple_3pers_sg',
'indikativ_passesimple_1pers_pl',
'indikativ_passesimple_2pers_pl',
'indikativ_passesimple_3pers_pl',
'indikativ_futur_1pers_sg',
'indikativ_futur_2pers_sg',
'indikativ_futur_3pers_sg',
'indikativ_futur_1pers_pl',
'indikativ_futur_2pers_pl',
'indikativ_futur_3pers_pl',
'konjunktiv_present_1pers_sg',
'konjunktiv_present_2pers_sg',
'konjunktiv_present_3pers_sg',
'konjunktiv_present_1pers_pl',
'konjunktiv_present_2pers_pl',
'konjunktiv_present_3pers_pl',
'konjunktiv_imparfait_1pers_sg',
'konjunktiv_imparfait_2pers_sg',
'konjunktiv_imparfait_3pers_sg',
'konjunktiv_imparfait_1pers_pl',
'konjunktiv_imparfait_2pers_pl',
'konjunktiv_imparfait_3pers_pl',
'konditional_present_1pers_sg',
'konditional_present_2pers_sg',
'konditional_present_3pers_sg',
'konditional_present_1pers_pl',
'konditional_present_2pers_pl',
'konditional_present_3pers_pl',
'imp_2pers_sg',
'imp_1pers_pl',
'imp_2pers_pl'
}
for bojningsformnummer = 1, 45 do
if (q.."_alt"] ~= "") then
if(q ~= "") then
displaytexts] = glink.link(q],"infl","fr")..", "..glink.link(q.."_alt"],"infl","fr").."<sup>1</sup>"
else
displaytexts] = glink.link(q],"infl","fr")..", "..glink.link(q.."_alt"],"infl","fr")
end
else
displaytexts] = glink.link(q],"infl","fr")
end
end
displaytexts = glink.link(q,"perfpart","fr")
displaytexts = glink.link(q,"perfpart","fr")
displaytexts = glink.link(q,"perfpart","fr").." / "..glink.link(q,"perfpart","fr")
displaytexts = glink.link(q,"perfpart","fr").." / "..glink.link(q,"perfpart","fr")
-- sen, själva tabellen
table.insert(tabell,"")
table.insert(tabell,"{| class=\"NavFrameContainer grammar-hide\"")
table.insert(tabell,"|-")
table.insert(tabell,"|<div class=\"NavFrame\">")
if (betydelser_text ~= "") then
table.insert(tabell,"<div class=\"NavHead\" style=\"text-align: center;\">Böjningar av ''"..artikelnamn.."''<br> <i>"..betydelser_text.."</i></div>")
else
table.insert(tabell,"<div class=\"NavHead\" style=\"text-align: center;\">Böjningar av ''"..artikelnamn.."''</div>")
end
table.insert(tabell,"<div class=\"NavContent\">")
table.insert(tabell,"{| class=\"grammar template-fr-verb-er min\" cellspacing=\"0\" data-lang=\"fr\" data-h3=\"verb\"")
if (betydelser_text ~= "") then
table.insert(tabell,"!class=\"main\" rowspan=\"2\"|Böjningar av ''"..q.." "..betydelser_text.."''")
else
table.insert(tabell,"!class=\"main\" rowspan=\"2\"|Böjningar av ''"..q.."''")
end
if(opers) then
table.insert(tabell,"!class=\"main\"|Personliga former")
else
table.insert(tabell,"!class=\"main\" colspan=\"6\"|Personliga former")
end
table.insert(tabell,"|-")
if(opers) then
table.insert(tabell,"!3:e pers. sing.")
else
table.insert(tabell,"!1:a pers. sing.")
table.insert(tabell,"!2:a pers. sing.")
table.insert(tabell,"!3:e pers. sing.")
table.insert(tabell,"!1:a pers. plur.")
table.insert(tabell,"!2:a pers. plur.")
table.insert(tabell,"!3:e pers. plur.")
end
table.insert(tabell,"|-")
table.insert(tabell,"!'''indikativ'''")
if(opers) then
table.insert(tabell,"!il")
else
table.insert(tabell,"!je, j'")
table.insert(tabell,"!tu")
table.insert(tabell,"!il elle on")
table.insert(tabell,"!nous")
table.insert(tabell,"!vous")
table.insert(tabell,"!ils elles")
end
table.insert(tabell,"|-")
table.insert(tabell,"!présent <!-- presens -->")
if(opers) then
table.insert(tabell,"|"..displaytexts)
elseif(reflexivt_verb) then
table.insert(tabell,"|me "..displaytexts)
table.insert(tabell,"|te "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
table.insert(tabell,"|nous "..displaytexts)
table.insert(tabell,"|vous "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
else
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
end
table.insert(tabell,"|-")
table.insert(tabell,"!imparfait <!-- imperfekt, kontinuerligt (jfr. engelskans \"I was ...ing\") -->")
if(opers) then
table.insert(tabell,"|"..displaytexts)
elseif(reflexivt_verb) then
table.insert(tabell,"|me "..displaytexts)
table.insert(tabell,"|te "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
table.insert(tabell,"|nous "..displaytexts)
table.insert(tabell,"|vous "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
else
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
end
table.insert(tabell,"|-")
table.insert(tabell,"!passé simple <!-- preteritum -->")
if(opers) then
table.insert(tabell,"|"..displaytexts)
elseif(reflexivt_verb) then
table.insert(tabell,"|me "..displaytexts)
table.insert(tabell,"|te "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
table.insert(tabell,"|nous "..displaytexts)
table.insert(tabell,"|vous "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
else
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
end
table.insert(tabell,"|-")
table.insert(tabell,"!futur simple <!-- futurum -->")
if(opers) then
table.insert(tabell,"|"..displaytexts)
elseif(reflexivt_verb) then
table.insert(tabell,"|me "..displaytexts)
table.insert(tabell,"|te "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
table.insert(tabell,"|nous "..displaytexts)
table.insert(tabell,"|vous "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
else
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
end
table.insert(tabell,"|-")
table.insert(tabell,"!passé composé <!-- perfekt -->")
if (opers) then
table.insert(tabell,"|a "..displaytexts)
elseif(q == "") then
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
elseif(reflexivt_verb) then
table.insert(tabell,"|me suis "..displaytexts)
table.insert(tabell,"|t’es "..displaytexts)
table.insert(tabell,"|s’est "..displaytexts)
table.insert(tabell,"|nous sommes "..displaytexts)
table.insert(tabell,"|vous êtes "..displaytexts)
table.insert(tabell,"|se sont "..displaytexts)
elseif (auxil_verb == "avoir") then
table.insert(tabell,"|ai "..displaytexts)
table.insert(tabell,"|as "..displaytexts)
table.insert(tabell,"|a "..displaytexts)
table.insert(tabell,"|avons "..displaytexts)
table.insert(tabell,"|avez "..displaytexts)
table.insert(tabell,"|ont "..displaytexts)
elseif (auxil_verb == "être") then
table.insert(tabell,"|suis "..displaytexts.."(e)")
table.insert(tabell,"|es "..displaytexts.."(e)")
table.insert(tabell,"|est "..displaytexts.."(e)")
table.insert(tabell,"|sommes "..displaytexts.."(e)s")
table.insert(tabell,"|êtes "..displaytexts.."(e)(s)")
table.insert(tabell,"|sont "..displaytexts.."(e)s")
end
table.insert(tabell,"|-")
table.insert(tabell,"!passé antérieur <!-- egentligen samma sak som pluskvamperfekt -->")
if (opers) then
table.insert(tabell,"|eut "..displaytexts)
elseif(q == "") then
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
elseif(reflexivt_verb) then
table.insert(tabell,"|me fus "..displaytexts)
table.insert(tabell,"|te fus "..displaytexts)
table.insert(tabell,"|se fut "..displaytexts)
table.insert(tabell,"|nous fûmes "..displaytexts)
table.insert(tabell,"|vous fûtes "..displaytexts)
table.insert(tabell,"|se furent "..displaytexts)
elseif (auxil_verb == "avoir") then
table.insert(tabell,"|eus "..displaytexts)
table.insert(tabell,"|eus "..displaytexts)
table.insert(tabell,"|eut "..displaytexts)
table.insert(tabell,"|eûmes "..displaytexts)
table.insert(tabell,"|eûtes "..displaytexts)
table.insert(tabell,"|eurent "..displaytexts)
elseif (auxil_verb == "être") then
table.insert(tabell,"|fus "..displaytexts.."(e)")
table.insert(tabell,"|fus "..displaytexts.."(e)")
table.insert(tabell,"|fut "..displaytexts.."(e)")
table.insert(tabell,"|fûmes "..displaytexts.."(e)s")
table.insert(tabell,"|fûtes "..displaytexts.."(e)(s)")
table.insert(tabell,"|furent "..displaytexts.."(e)s")
end
table.insert(tabell,"|-")
table.insert(tabell,"!plus-que-parfait <!-- pluskvamperfekt -->")
if (opers) then
table.insert(tabell,"|avait "..displaytexts)
elseif(q == "") then
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
elseif(reflexivt_verb) then
table.insert(tabell,"|m’étais "..displaytexts)
table.insert(tabell,"|t’étais "..displaytexts)
table.insert(tabell,"|s’était "..displaytexts)
table.insert(tabell,"|nous étions "..displaytexts)
table.insert(tabell,"|vous étiez "..displaytexts)
table.insert(tabell,"|s’étaient "..displaytexts)
elseif (auxil_verb == "avoir") then
table.insert(tabell,"|avais "..displaytexts)
table.insert(tabell,"|avais "..displaytexts)
table.insert(tabell,"|avait "..displaytexts)
table.insert(tabell,"|avions "..displaytexts)
table.insert(tabell,"|aviez "..displaytexts)
table.insert(tabell,"|avaient "..displaytexts)
elseif (auxil_verb == "être") then
table.insert(tabell,"|étais "..displaytexts.."(e)")
table.insert(tabell,"|étais "..displaytexts.."(e)")
table.insert(tabell,"|était "..displaytexts.."(e)")
table.insert(tabell,"|étions "..displaytexts.."(e)s")
table.insert(tabell,"|étiez "..displaytexts.."(e)(s)")
table.insert(tabell,"|étaient "..displaytexts.."(e)s")
end
table.insert(tabell,"|-")
table.insert(tabell,"!futur antérieur <!-- futurumperfekt (\"jag ska ha ...t\") -->")
if (opers) then
table.insert(tabell,"|aura "..displaytexts)
elseif(q == "") then
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
elseif(reflexivt_verb) then
table.insert(tabell,"|me serai "..displaytexts)
table.insert(tabell,"|te seras "..displaytexts)
table.insert(tabell,"|se sera "..displaytexts)
table.insert(tabell,"|nous serons "..displaytexts)
table.insert(tabell,"|vous serez "..displaytexts)
table.insert(tabell,"|se seront "..displaytexts)
elseif (auxil_verb == "avoir") then
table.insert(tabell,"|aurai "..displaytexts)
table.insert(tabell,"|auras "..displaytexts)
table.insert(tabell,"|aura "..displaytexts)
table.insert(tabell,"|aurons "..displaytexts)
table.insert(tabell,"|aurez "..displaytexts)
table.insert(tabell,"|auront "..displaytexts)
elseif (auxil_verb == "être") then
table.insert(tabell,"|serai "..displaytexts.."(e)")
table.insert(tabell,"|seras "..displaytexts.."(e)")
table.insert(tabell,"|sera "..displaytexts.."(e)")
table.insert(tabell,"|serons "..displaytexts.."(e)s")
table.insert(tabell,"|serez "..displaytexts.."(e)(s)")
table.insert(tabell,"|seront "..displaytexts.."(e)s")
end
table.insert(tabell,"|-")
table.insert(tabell,"!'''konjunktiv'''")
if (opers) then
table.insert(tabell,"!qu'il")
else
table.insert(tabell,"!que je, que j'")
table.insert(tabell,"!que tu")
table.insert(tabell,"!qu'il qu'elle qu'on")
table.insert(tabell,"!que nous")
table.insert(tabell,"!que vous")
table.insert(tabell,"!qu'ils qu'elles")
end
table.insert(tabell,"|-")
table.insert(tabell,"!présent <!-- presens -->")
if (opers) then
table.insert(tabell,"|"..displaytexts)
elseif(reflexivt_verb) then
table.insert(tabell,"|me "..displaytexts)
table.insert(tabell,"|te "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
table.insert(tabell,"|nous "..displaytexts)
table.insert(tabell,"|vous "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
else
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
end
table.insert(tabell,"|-")
table.insert(tabell,"!imparfait <!-- imperfekt -->")
if (opers) then
table.insert(tabell,"|"..displaytexts)
elseif(reflexivt_verb) then
table.insert(tabell,"|me "..displaytexts)
table.insert(tabell,"|te "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
table.insert(tabell,"|nous "..displaytexts)
table.insert(tabell,"|vous "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
else
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
end
table.insert(tabell,"|-")
table.insert(tabell,"!passé <!-- preteritum -->")
if (opers) then
table.insert(tabell,"|ait "..displaytexts)
elseif(q == "") then
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
elseif(reflexivt_verb) then
table.insert(tabell,"|me sois "..displaytexts)
table.insert(tabell,"|te sois "..displaytexts)
table.insert(tabell,"|se soit "..displaytexts)
table.insert(tabell,"|nous soyons "..displaytexts)
table.insert(tabell,"|vous soyez "..displaytexts)
table.insert(tabell,"|se soient "..displaytexts)
elseif (auxil_verb == "avoir") then
table.insert(tabell,"|aie "..displaytexts)
table.insert(tabell,"|aies "..displaytexts)
table.insert(tabell,"|ait "..displaytexts)
table.insert(tabell,"|ayons "..displaytexts)
table.insert(tabell,"|ayez "..displaytexts)
table.insert(tabell,"|aient "..displaytexts)
elseif (auxil_verb == "être") then
table.insert(tabell,"|sois "..displaytexts.."(e)")
table.insert(tabell,"|sois "..displaytexts.."(e)")
table.insert(tabell,"|soit "..displaytexts.."(e)")
table.insert(tabell,"|soyons "..displaytexts.."(e)s")
table.insert(tabell,"|soyez "..displaytexts.."(e)(s)")
table.insert(tabell,"|soient "..displaytexts.."(e)s")
end
table.insert(tabell,"|-")
table.insert(tabell,"!plus-que-parfait <!-- pluskvamperfekt -->")
if (opers) then
table.insert(tabell,"|eût "..displaytexts)
elseif(q == "") then
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
elseif(reflexivt_verb) then
table.insert(tabell,"|me fusse "..displaytexts)
table.insert(tabell,"|te fusses "..displaytexts)
table.insert(tabell,"|se fût "..displaytexts)
table.insert(tabell,"|nous fussions "..displaytexts)
table.insert(tabell,"|vous fussiez "..displaytexts)
table.insert(tabell,"|se fussent "..displaytexts)
elseif (auxil_verb == "avoir") then
table.insert(tabell,"|eusse "..displaytexts)
table.insert(tabell,"|eusses "..displaytexts)
table.insert(tabell,"|eût "..displaytexts)
table.insert(tabell,"|eussions "..displaytexts)
table.insert(tabell,"|eussiez "..displaytexts)
table.insert(tabell,"|eussent "..displaytexts)
elseif (auxil_verb == "être") then
table.insert(tabell,"|fusse "..displaytexts.."(e)")
table.insert(tabell,"|fusses "..displaytexts.."(e)")
table.insert(tabell,"|fût "..displaytexts.."(e)")
table.insert(tabell,"|fussions "..displaytexts.."(e)s")
table.insert(tabell,"|fussiez "..displaytexts.."(e)(s)")
table.insert(tabell,"|fussent "..displaytexts.."(e)s")
end
table.insert(tabell,"|-")
table.insert(tabell,"!'''konditionalis'''")
if (opers) then
table.insert(tabell,"!il elle on")
else
table.insert(tabell,"!je, j'")
table.insert(tabell,"!tu")
table.insert(tabell,"!il elle on")
table.insert(tabell,"!nous")
table.insert(tabell,"!vous")
table.insert(tabell,"!ils elles")
end
table.insert(tabell,"|-")
table.insert(tabell,"!présent <!-- presens -->")
if (opers) then
table.insert(tabell,"|"..displaytexts)
elseif (reflexivt_verb) then
table.insert(tabell,"|me "..displaytexts)
table.insert(tabell,"|te "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
table.insert(tabell,"|nous "..displaytexts)
table.insert(tabell,"|vous "..displaytexts)
table.insert(tabell,"|se "..displaytexts)
else
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
end
table.insert(tabell,"|-")
table.insert(tabell,"!passé 1<sup>re</sup> forme <!-- preteritum, 1:a formen -->")
if (opers) then
table.insert(tabell,"|aurait "..displaytexts)
elseif(q == "") then
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
elseif (reflexivt_verb) then
table.insert(tabell,"|me serais "..displaytexts)
table.insert(tabell,"|te serais "..displaytexts)
table.insert(tabell,"|se serait "..displaytexts)
table.insert(tabell,"|nous serions "..displaytexts)
table.insert(tabell,"|vous seriez "..displaytexts)
table.insert(tabell,"|se seraient "..displaytexts)
elseif (auxil_verb == "avoir") then
table.insert(tabell,"|aurais "..displaytexts)
table.insert(tabell,"|aurais "..displaytexts)
table.insert(tabell,"|aurait "..displaytexts)
table.insert(tabell,"|aurions "..displaytexts)
table.insert(tabell,"|auriez "..displaytexts)
table.insert(tabell,"|auraient "..displaytexts)
elseif (auxil_verb == "être") then
table.insert(tabell,"|serais "..displaytexts.."(e)")
table.insert(tabell,"|serais "..displaytexts.."(e)")
table.insert(tabell,"|serait "..displaytexts.."(e)")
table.insert(tabell,"|serions "..displaytexts.."(e)s")
table.insert(tabell,"|seriez "..displaytexts.."(e)(s)")
table.insert(tabell,"|seraient "..displaytexts.."(e)s")
end
table.insert(tabell,"|-")
table.insert(tabell,"!passé 2<sup>de</sup> forme <!-- preteritum, 2:a formen -->")
if (opers) then
table.insert(tabell,"|eût "..displaytexts)
elseif(q == "") then
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"|")
elseif (auxil_verb == "avoir") then
table.insert(tabell,"|eusse "..displaytexts)
table.insert(tabell,"|eusses "..displaytexts)
table.insert(tabell,"|eût "..displaytexts)
table.insert(tabell,"|eussions "..displaytexts)
table.insert(tabell,"|eussiez "..displaytexts)
table.insert(tabell,"|eussent "..displaytexts)
elseif (auxil_verb == "être") then
table.insert(tabell,"|fusse "..displaytexts.."(e)")
table.insert(tabell,"|fusses "..displaytexts.."(e)")
table.insert(tabell,"|fût "..displaytexts.."(e)")
table.insert(tabell,"|fussions "..displaytexts.."(e)s")
table.insert(tabell,"|fussiez "..displaytexts.."(e)(s)")
table.insert(tabell,"|fussent "..displaytexts.."(e)s")
end
table.insert(tabell,"|-")
if (not opers) then
table.insert(tabell,"!'''imperativ'''")
table.insert(tabell,"!")
table.insert(tabell,"!(tu)")
table.insert(tabell,"!")
table.insert(tabell,"!(nous)")
table.insert(tabell,"!(vous)")
table.insert(tabell,"!")
table.insert(tabell,"|-")
table.insert(tabell,"!présent <!-- presens -->")
if(reflexivt_verb) then
table.insert(tabell,"| ")
table.insert(tabell,"|"..displaytexts.."-toi")
table.insert(tabell,"| ")
table.insert(tabell,"|"..displaytexts.."-nous")
table.insert(tabell,"|"..displaytexts.."-vous")
table.insert(tabell,"| ")
else
table.insert(tabell,"| ")
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"| ")
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"| ")
end
table.insert(tabell,"|-")
table.insert(tabell,"!passé <!-- preteritum -->")
if (q == "") then
table.insert(tabell,"| ")
table.insert(tabell,"|")
table.insert(tabell,"| ")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"| ")
elseif (reflexivt_verb) then
table.insert(tabell,"| ")
table.insert(tabell,"|")
table.insert(tabell,"| ")
table.insert(tabell,"|")
table.insert(tabell,"|")
table.insert(tabell,"| ")
elseif (auxil_verb == "avoir") then
table.insert(tabell,"| ")
table.insert(tabell,"|aie "..displaytexts)
table.insert(tabell,"| ")
table.insert(tabell,"|ayons "..displaytexts)
table.insert(tabell,"|ayez "..displaytexts)
table.insert(tabell,"| ")
elseif (auxil_verb == "être") then
table.insert(tabell,"| ")
table.insert(tabell,"|sois "..displaytexts.."(e)")
table.insert(tabell,"| ")
table.insert(tabell,"|soyons "..displaytexts.."(e)s")
table.insert(tabell,"|soyez "..displaytexts.."(e)(s)")
table.insert(tabell,"| ")
end
table.insert(tabell,"|-")
end
table.insert(tabell,"!class=\"main\" colspan=7|Opersonliga former")
table.insert(tabell,"|-")
if (opers) then
table.insert(tabell,"!infinitif présent <!-- presensinfinitiv -->")
table.insert(tabell,"|"..glink.link(q,"infl","fr"))
table.insert(tabell,"|-")
table.insert(tabell,"!participe présent <!-- presensparticip -->")
table.insert(tabell,"|"..glink.link(q,"prespart","fr"))
table.insert(tabell,"|-")
table.insert(tabell,"!infinitif passé <!-- preterituminfinitiv -->")
table.insert(tabell,"|avoir "..displaytexts)
table.insert(tabell,"|-")
table.insert(tabell,"!participe passé<!-- perfektparticip -->")
table.insert(tabell,"|"..displaytexts)
table.insert(tabell,"|-")
table.insert(tabell,"!gérondif présent <!-- presensgerundium -->")
table.insert(tabell,"|en "..glink.link(q,"prespart","fr"))
table.insert(tabell,"|-")
table.insert(tabell,"!gérondif passé <!-- preteritumgerundium -->")
table.insert(tabell,"|en ayant "..displaytexts)
table.insert(tabell,"|-")
table.insert(tabell,"!participe passé <!-- perfektparticip -->")
table.insert(tabell,"|ayant "..displaytexts)
else
table.insert(tabell,"!infinitif présent <!-- presensinfinitiv -->")
table.insert(tabell,"|colspan=2|"..glink.link(q,"infl","fr"))
table.insert(tabell,"!colspan=2|participe présent <!-- presensparticip -->")
table.insert(tabell,"|colspan=2|"..glink.link(q,"prespart","fr"))
table.insert(tabell,"|-")
table.insert(tabell,"!infinitif passé <!-- preterituminfinitiv -->")
if(q == "") then
table.insert(tabell,"|colspan=2|")
elseif (auxil_verb == "avoir") then
table.insert(tabell,"|colspan=2|avoir "..displaytexts)
elseif (auxil_verb == "être") then
table.insert(tabell,"|colspan=2|être "..displaytexts.."(e)(s)")
end
table.insert(tabell,"!colspan=2|participe passé<!-- perfektparticip -->, sing mask / fem")
table.insert(tabell,"|colspan=2|"..displaytexts)
table.insert(tabell,"|-")
table.insert(tabell,"!gérondif présent <!-- presensgerundium -->")
if(q == "") then
table.insert(tabell,"|colspan=2|")
else
table.insert(tabell,"|colspan=2|en "..glink.link(q,"prespart","fr"))
end
table.insert(tabell,"!colspan=2|participe passé<!-- perfektparticip -->, plur mask / fem")
table.insert(tabell,"|colspan=2|"..displaytexts)
table.insert(tabell,"|-")
table.insert(tabell,"!gérondif passé <!-- preteritumgerundium -->")
if(q == "") then
table.insert(tabell,"|colspan=2|")
elseif (auxil_verb == "avoir") then
table.insert(tabell,"|colspan=2|en ayant "..displaytexts)
elseif (auxil_verb == "être") then
table.insert(tabell,"|colspan=2|en étant "..displaytexts.."(e)(s)")
end
table.insert(tabell,"!colspan=2|participe passé <!-- perfektparticip -->")
if(q == "") then
table.insert(tabell,"|colspan=2|")
elseif (auxil_verb == "avoir") then
table.insert(tabell,"|colspan=2|ayant "..displaytexts)
elseif (auxil_verb == "être") then
table.insert(tabell,"|colspan=2|étant "..displaytexts.."(e)(s)")
end
end
if(q ~= "") then
table.insert(tabell,"<p> ")
table.insert(tabell,"</p>")
table.insert(tabell,"</td></tr>")
table.insert(tabell,"<tr>")
-- table.insert(tabell,"<td colspan=\"7\" class=\"note\"><div><table><tbody><tr>") -- <tbody> onödig?
table.insert(tabell,"<td colspan=\"7\" class=\"note\"><div><table><tr>")
table.insert(tabell,"<th>Not:</th>")
table.insert(tabell,"<td>")
table.insert(tabell,"<ol><li>"..q.."</li></ol>")
table.insert(tabell,"</td>")
-- table.insert(tabell,"</tr></tbody></table></div>") -- </tbody> onödig?
table.insert(tabell,"</tr></table></div>")
end
table.insert(tabell,"|}")
table.insert(tabell,"</div></div>")
table.insert(tabell,"|}")
utskrift = table.concat(tabell, '\n')
return utskrift
--return tabell
end
return export