Модул:Cycling race: Разлика помеѓу преработките
[проверена преработка] | [проверена преработка] |
Избришана содржина Додадена содржина
new feature |
update |
||
Ред 25:
"Destination på tur", "Hold", "Startende ryttere", "Sluttende ryttere", "Gennemsnitlig fart", "Pris", "Resultater", "Vinder", "Toer", "Treer", "Point", "Bjergtrøje",
"Pointtrøje", "Ungdomstrøje", "Mest angrebsivrige", "Kombination", "Holdkonkurrence", "Picture", "Caption", "Map", "Special 1", "Special 2"}
l10nDef["//de.wikipedia.org"] = {"
"Start", "Ziel", "Teams", "Fahrer am Start", "Fahrer im Ziel", "
"Dritter", "Punktewertung", "Bergwertung", "Sprintwertung", "Nachwuchswertung", "Kämpferischster Fahrer", "Kombinationswertung", "Teamwertung", "Bild", "Beschriftung",
"Karte", "Special 1", "Special 2"}
Ред 39:
"Irabazlea", "Bigarrena", "Hirugarrena", "Puntuak", "Mendiak", "Esprintak", "Gazteak", "Saiatuena", "Konbinatua", "Taldeak", "Picture", "Caption", "Map", "Special 1", "Special 2"}
l10nDef["//fi.wikipedia.org"] = {"Kilpailun tiedot", "Nimi", "Kilpailu", "Kilpailut", "Etapit", "Päivä", "Päivät", "Matka", "Maa", "Maat",
"Lähtöpaikka", "Saapumispaikka", "Joukkueet", "Osallistuneet pyöräilijät", "Maaliin saapuneet pyöräilijät", "Keskinopeus", "
"Kolmas", "Pistekilpailu", "Mäkikirikilpailu", "Sprintit", "Nuoret", "Yritteliäin", "Yhdistelmä", "Joukkue", "
l10nDef["//fo.wikipedia.org"] = {"Smálutir", "Leið", "Kapping", "Kappingar", "Teinar", "Dagfesting", "Dagfestingar", "Strekki", "Land", "Lond", "Byrjunarbýur",
"Málbýur", "Lið", "Byrjandi súkklarar", "Fullførandi súkklarar", "Miðalferð", "Virðisløn", "Palmares", "Vinnari", "Nr. 2", "Nr. 3", "Stig", "Fjøll",
Ред 83:
l10nDef["//es.wikipedia.org"] = {"[[d:Wikidata:WikiProject Cycling/Documentation/infobox|Documentación]]", "In Wikidata missing:"}
l10nDef["//eu.wikipedia.org"] = {"[[d:Wikidata:WikiProject Cycling/Documentation/infobox|Dokumentazioa]]", "In Wikidata missing:"}
l10nDef["//fi.wikipedia.org"] = {"[[d:Wikidata:WikiProject Cycling/Documentation/infobox|Ohjesivu]]", "In Wikidata missing:"}
l10nDef["//fo.wikipedia.org"] = {"[[d:Wikidata:WikiProject Cycling/Documentation/infobox|Dokumentation]]", "In Wikidata missing:"}
l10nDef["//hu.wikipedia.org"] = {"[[d:Wikidata:WikiProject Cycling/Documentation/infobox|Dokumentáció]]", "In Wikidata missing:"}
Ред 259 ⟶ 260:
elseif m ~= m2 then t.starttime = lang:formatDate( "Y. j. F", b1 )
else t.starttime = lang:formatDate( "Y. j.", b1 )
end end
if wiki == "//pl.wikipedia.org" then
local date_pl = {"stycznia", "lutego", "marca", "kwietnia", "maja", "czerwca", "lipca", "sierpnia", "września", "października", "listopada", "grudnia"}
if y ~= y2 then t.starttime = lang:formatDate( "j ", b1 ) .. date_pl[tonumber(lang:formatDate( "n", b1 ))] .. lang:formatDate( " Y", b1 )
elseif m ~= m2 then t.starttime = lang:formatDate( "j ", b1 ) .. date_pl[tonumber(lang:formatDate( "n", b1 ))]
else t.starttime = lang:formatDate( "j", b1 )
end end
end -- if a1
if a2 == true and t.endtime == "" then
Ред 290 ⟶ 297:
else t.endtime = lang:formatDate( "j. F", b2 )
end end
if wiki == "//pl.wikipedia.org" then
local date_pl = {"stycznia", "lutego", "marca", "kwietnia", "maja", "czerwca", "lipca", "sierpnia", "września", "października", "listopada", "grudnia"}
t.endtime = lang:formatDate( "j ", b2 ) .. date_pl[tonumber(lang:formatDate( "n", b2 ))] .. lang:formatDate( " Y", b2 ) end
end -- if a2
Ред 318 ⟶ 328:
if wiki == "//lv.wikipedia.org" then
t.time = lang:formatDate( "Y. j. F", b1 ) end
if wiki == "//pl.wikipedia.org" then
local date_pl = {"stycznia", "lutego", "marca", "kwietnia", "maja", "czerwca", "lipca", "sierpnia", "września", "października", "listopada", "grudnia"}
t.time = lang:formatDate( "j ", b1 ) .. date_pl[tonumber(lang:formatDate( "n", b1 ))] .. lang:formatDate( " Y", b1 ) end
end
Ред 536 ⟶ 549:
if i ~= nil and j ~= nil then
t.previous = string.sub(k, 1, i) .. span1 .. string.gsub(string.sub(k, i+1, j-1), "%D", "") .. string.sub(k, j)
else
else t.previous = string.gsub(k, "%D", "") if t.previous ~= "" then t.previous = span1 .. t.previous end end▼
if string.find(k, "%d%d%d%d") == nil then t.previous = "" else t.previous = string.sub(k, string.find(k, "%d%d%d%d")) end
▲
end
k = t.next
Ред 543 ⟶ 559:
if i ~= nil and j ~= nil then
t.next = string.sub(k, 1, i) .. string.gsub(string.sub(k, i+1, j-1), "%D", "") .. span2 .. string.sub(k,j)
else
else t.next = string.gsub(k, "%D", "") if t.next ~="" then t.next = t.next .. span2 end end ▼
if string.find(k, "%d%d%d%d") == nil then t.next = "" else t.next = string.sub(k, string.find(k, "%d%d%d%d")) end
end
tt.caption = string.gsub(tt.caption, "{{(%w+)}}", function (n) return frame:expandTemplate{ title = n } end)
Ред 731 ⟶ 750:
if wiki == "//ca.wikipedia.org" or wiki == "//es.wikipedia.org" then
time = lang:formatDate( "j", date ) .." de ".. lang:formatDate( "F", date ) .." de ".. lang:formatDate( "Y", date ) end
if wiki == "//de.wikipedia.org" or wiki == "//da
time = lang:formatDate( "j. F Y", date ) end
if wiki == "//en.wikipedia.org" then
Ред 745 ⟶ 764:
local _, _, y2, m2, d2 = string.find(date, "(%d+)-(%d+)-0*(%d+)")
time = frame:expandTemplate{ title = 'Template:Birth date and age2', args = { y1, m1, d1, y2, m2, d2 } } end
if wiki == "//fi.wikipedia.org" then
time = mw.ustring.gsub(lang:formatDate( "j. F Y", date ), "%a+", "%0ta") end
if wiki == "//pl.wikipedia.org" then
local date_pl = {"stycznia", "lutego", "marca", "kwietnia", "maja", "czerwca", "lipca", "sierpnia", "września", "października", "listopada", "grudnia"}
time = lang:formatDate( "d ", date ) .. date_pl[tonumber(lang:formatDate( "n", date ))] .. lang:formatDate( " Y", date ) end
return time
end
Ред 1.210 ⟶ 1.233:
local day = tostring(tonumber(d[num]))
if day == "1" and (wiki == "//fr.wikipedia.org") then day = "1<sup>er</sup>"
else if wiki == "//fr.wikipedia.org" or wiki == "//eo.wikipedia.org" or wiki == "//de.wikipedia.org" then day = day .. "." end end
if wiki == "//lv.wikipedia.org" then stageNr = series_ordinal[num] end
local month = func_month(m[num])
Ред 1.307 ⟶ 1.330:
l10nDef["no"] = {"jan.", "feb.", "mar.", "apr.", "mai", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "des."}
l10nDef["nl"] = {"jan.", "feb.", "maart", "apr.", "mei", "juni", "juli", "aug.", "sept.", "okt.", "nov.", "dec."}
l10nDef["pl"] = {"
l10nDef["pt"] = {"jan.", "fev.", "março", "abril", "maio", "junho", "julho", "agosto", "set.", "out.", "nov.", "dez."}
l10nDef["ro"] = {"Ian.", "Feb.", "Mar.", "Apr.", "Mai", "Iun.", "Iul.", "Aug.", "Sep.", "Oct.", "Nov.", "Dec."}
Ред 1.505 ⟶ 1.528:
Q218c={"[[File:Flag of Romania (1952-1965).svg|border|20px|ROU]]","+1952","+1965"},
Q218d={"[[File:Flag of Romania (1948-1952).svg|border|20px|ROU]]","+1948","+1952"},
Q218e={"[[File:Flag of Romania.svg|border|20px|ROU]]","+1867-07-01","+1948"},
Q224a={"[[File:Flag of Croatia.svg|border|20px|CRO]]","+1990-12-21",""},
Q224b={"[[File:Flag of Croatia (white chequy).svg|border|20px|CRO]]","+1990-06-27","+1990-12-21"}
}
|