Modulo:Babel: Malsamoj inter versioj

[kontrolita revizio][kontrolita revizio]
Enhavo forigita Enhavo aldonita
aldono el la modula provejo
aktualigo el la modula provejo
Linio 1:
-- Babel -- 2015070520150706
 
function subtitle(text)
Linio 419:
end
 
if args.flag == "yes" or args.flago == "jes" or args.flag == nil or args.flag == "" then
-- code for the templatetemplates {{UzantoLando}}, {{UzantoLandoFlago}} and {{Lando}}
-- little box with flag
-- code for the template {{UzantoLando}}
if args.lando ~= nil and args.lando ~= "" then
local l1 = args.lando
local l2 = args.loko or ""
local l3 = args.lokospeco or ""
local n = args.nomo or args.Nomo or ""
local l2flag = args.lokoflag or ""args.flago
body_cells:wikitext( frame:preprocess('{{UzantoLando|lando=' .. l1 .. '|loko=' .. l2
-- for title before the information about the user's country
.. '|lokospeco=' .. l3 .. '|nomo=' .. n .. '|kat=' .. k .. '|babel-larĝo=jes|floso=left}}') )
local ntitle = args.Nomo['lando-titolo'] or ""
end
elseif if args.flagtitle == "no" or args.flago =~= "ne" then
body_cells:wikitext( frame:preprocesssubtitle('{{Loko|1=' title))
-- little box without flag
end
-- code for the template {{Lando}}
 
if args.lando ~= nil and args.lando ~= "" then
if args.flag == "yes" or args.flagoflag == "jes" or args.flag == nil or args.flag == "" then
local l1 = args.lando
-- little box with flag
local l2 = args.loko or ""
body_cells:wikitext( frame:preprocess('{{UzantoLando|lando=' .. l1 .. '|loko=' .. l2
local n = args.Nomo or ""
.. '|lokospeco=' .. l3 .. '|nomo=' .. n .. '|kat=' .. k .. '|babel-larĝo=jes|floso=left}}') )
body_cells:wikitext( frame:preprocess('{{Loko|1='
elseif flag == "no" or flago == "ne" then
.. l1 .. '|2=' .. l2 .. '|3=' .. n .. '|kat=' .. k .. '|babel-larĝo=jes}}') )
-- little box without flag
end
body_cells:wikitext( frame:preprocess('{{UzantoLandoLoko|lando1=' .. l1 .. '|loko=' .. l2
else
.. l1 .. '|2=' .. l2 .. '|3=' .. n .. '|kat=' .. k .. '|babel-larĝo=jes}}') )
-- if the value of args.flag or args.flago hasn't a sense
elseif mw.ustring.sub(flag,-4,-1) == ".jpg" or mw.ustring.sub(flag,-4,-1) == ".png"
-- little box with flag
or mw.ustring.sub(flag,-4,-1) == ".svg" or mw.ustring.sub(flag,-5,-1) == ".jpeg" then
-- code for the template {{UzantoLando}}
local l1f = args.landoflag
if args.lando ~= nil and args.lando ~= "" then
body_cells:wikitext( frame:preprocess('{{UzantoLandoFlago|lando=' .. l1 .. '|loko=' .. l2
local l1 = args.lando
.. '|lokospeco=' .. l3 .. '|nomo=' .. n .. '|katflagloko=' .. kf .. '|babel-larĝo=jes|floso=left}}') )
local l2 = args.loko or ""
else
local l3 = args.lokospeco or ""
body_cells:wikitext( frame:preprocess('{{UzantoLando|lando=' .. l1 .. '|loko=' .. l2
local n = args.nomo or ""
.. '|lokospeco=' .. l3 .. '|nomo=' .. n .. '|kat=' .. k .. '|babel-larĝo=jes|floso=left}}') )
body_cells:wikitext( frame:preprocess('{{UzantoLando|lando=' .. l1 .. '|loko=' .. l2
end
.. '|lokospeco=' .. l3 .. '|nomo=' .. n .. '|kat=' .. k .. '|babel-larĝo=jes|floso=left}}') )
 
end
end
-- code for the template {{DevenLoĝLoko}}
Linio 463 ⟶ 462:
local ll3 = args['loĝlokspeco'] or ""
local n = args.nomo or ""
-- for title before the information about the user's countries
local title = args['devenlando-titolo'] or ""
if title ~= "" then
body_cells:wikitext(subtitle(title))
end
body_cells:wikitext( frame:preprocess('{{DevenLoĝLoko|devenlando='
.. dl1 .. '|devenloko=' .. dl2 .. '|devenlokspeco=' .. dl3 .. '|loĝlando='
.. ll1 .. '|loĝloko=' .. ll2 .. '|loĝlokspeco=' .. ll3
.. '|nomo=' .. n .. '|kat=' .. k .. '|babel-larĝo=jes|floso=left|marĝeno=0}}') )
end
Linio 472 ⟶ 476:
if args.UTC ~= nil and args.UTC ~= "" then
local u = args.UTC
-- for title before the information about the user's UTC
local l2title = args.loko['UTC-titolo'] or ""
if title ~= "" then
body_cells:wikitext(subtitle(title))
end end
body_cells:wikitext( frame:preprocess('{{UTC|' ..u .. '|kat=' .. k .. '|babel-larĝo=jes|floso=left}}') )
end
Linio 479 ⟶ 488:
local p = args['sul-projekto']
local l = args['sul-lingvo'] or ""
-- for title before the information about the user's SUL
local l3title = args.lokospeco['sul-titolo'] or ""
if title ~= "" then
body_cells:wikitext(subtitle(title))
end
body_cells:wikitext( frame:preprocess('{{Uzanto SUL|1=' .. l .. '|2=' .. p
.. '|nocat=' .. k .. '|babel-larĝo=jes|floso=left}}') )