Modulo:Lingvonomo: Malsamoj inter versioj

[kontrolita revizio][kontrolita revizio]
Enhavo forigita Enhavo aldonita
e aldono
e aldono
Linio 1:
-- modul lingvonomo -- 2021-0607-1701
-- main functions:
-- language -- creates a link to a language article and an adverb like text
Linio 834:
italic = args['kursiva'] or args['italic'] or ""
link = args['ligilo'] or args['link'] or ""
short = args["mallonge"]
-- for alternative text
au = args['aŭ'] or args['or']
Linio 898 ⟶ 899:
vorto = " kaj "
end
local krampo1 = "[["
local krampo2 = "]]"
local streko = "|"
if short == "1" or short == "jes" then
name = ""
linktext = ""
krampo1 = ""
krampo2 = ""
streko = ""
end
 
if text ~= " " then
Linio 903 ⟶ 914:
if (c~="") or (b~="") or (s~="") then
if link ~= "no" and link ~= "ne" then
r = link1 .. s .. w .. link2 .. "[["krampo1 .. name .. '|'streko .. linktext .. krampo2 .. ']]&nbsp;<span style="' .. c .. b .. '">' .. i .. l .. i .. "</span>" .. link3
if l2 ~= "" then
r = r .. vorto .. '<span style="' .. c .. b .. '">' .. i .. l2 .. i .. "</span>" .. link3
Linio 915 ⟶ 926:
else
if link ~= "no" and link ~="ne" then
r = "[["krampo1 .. name .. '|'streko .. linktext .. krampo2 .. "]]&nbsp;" .. i .. l .. i
if l2 ~= "" then
r = r .. vorto .. i .. l2 .. i
Linio 929 ⟶ 940:
if (c~="") or (b~="") or (s~="") then
if link ~= "no" and link ~= "ne" then
r = link1 .. s .. w .. link2 .. "[["krampo1 .. name .. '|'streko .. linktext .. krampo2 .. ']]&nbsp;' .. link3
else
r = link1 .. s .. w .. link2 .. linktext .. '&nbsp;' .. link3
Linio 935 ⟶ 946:
else
if link ~= "no" and link ~="ne" then
r = "[["krampo1 .. name .. '|'streko .. linktext .. krampo2 .. "]]&nbsp;"
else
r = linktext .. "&nbsp;"