Module:R:fr:DAF
Μετάβαση στην πλοήγηση
Πήδηση στην αναζήτηση
Module:R:fr:DAF » « documentation
Στοιχεία για το Λεξικό της Γαλλικής Ακαδημίας (Dictionnaire de l’Académie française)
στο πρότυπο {{R:DAF}}
ή {{R:fr:DAF}}
-- [[wikt:el:Sarri.greek]] 2023.11.18. editions of www.dictionnaire-academie.fr
-- [[Template:R:DAF]] / [[Template:R:fr:DAF]]
local export = {}
-- ====================== errors
-- Use it with writing: if blahblah then return errorhere('xxxxxx') end
errorhere = function(errstring)
return '<div class="error">' .. errstring .. '</div>[[Κατηγορία:Σελίδες με σφάλματα στο Πρότυπο Beekes]]'
end
-- ====================== full data
function export.main(frame)
-- local args = frame:getParent().args -- for Templates
local args = frame.args -- to invoke
--
local code = args[1] or ''
if mw.ustring.find(args[1], '^A1') then
result = "1<sup>re</sup> édition (1694), 1η έκδοση"
elseif mw.ustring.find(args[1], '^A2') then
result = "2<sup>e</sup> édition (1718), 2η έκδοση"
elseif mw.ustring.find(args[1], '^A3') then
result = "3<sup>e</sup> édition (1740), 3η έκδοση"
elseif mw.ustring.find(args[1], '^A4') then
result = "4<sup>e</sup> édition (1762), 4η έκδοση"
elseif mw.ustring.find(args[1], '^A5') then
result = "5<sup>e</sup> édition (1798), 5η έκδοση"
elseif mw.ustring.find(args[1], '^A6') then
result = "6<sup>e</sup> édition (1835), 6η έκδοση"
elseif mw.ustring.find(args[1], '^A7') then
result = "7<sup>e</sup> édition (1878), 7η έκδοση"
elseif mw.ustring.find(args[1], '^A8') then
result = "8<sup>e</sup> édition (1935), 8η έκδοση"
elseif mw.ustring.find(args[1], '^A9') then
result = "9<sup>e</sup> édition (1992-), 9η έκδοση"
end
return result
end -- close function
-- ====================== mini data (edition number only) (for repetitions)
function export.ed(frame)
-- local args = frame:getParent().args -- for Templates
local args = frame.args -- to invoke
--
local edition = args[1] or ''
if args[1] == '1' then
result = "1<sup>re</sup> édition (1694), 1η έκδοση"
elseif args[1] == '2' then
result = "2<sup>e</sup> édition (1718), 2η έκδοση"
elseif args[1] == '3' then
result = "3<sup>e</sup> édition (1740), 3η έκδοση"
elseif args[1] == '4' then
result = "4<sup>e</sup> édition (1762), 4η έκδοση"
elseif args[1] == '5' then
result = "5<sup>e</sup> édition (1798), 5η έκδοση"
elseif args[1] == '6' then
result = "6<sup>e</sup> édition (1835), 6η έκδοση"
elseif args[1] == '7' then
result = "7<sup>e</sup> édition (1878), 7η έκδοση"
elseif args[1] == '8' then
result = "8<sup>e</sup> édition (1935), 8η έκδοση"
elseif args[1] == '9' then
result = "9<sup>e</sup> édition (1992-), 9η έκδοση"
end
return result
end -- close function
return export