יחידה:Citation/CS1: הבדלים בין גרסאות בדף
מ התאמות לעברית |
מאין תקציר עריכה |
||
| שורה 8: | שורה 8: | ||
properties_cats = {}; -- for categorizing citations based on certain properties, language of source for instance | properties_cats = {}; -- for categorizing citations based on certain properties, language of source for instance | ||
} | } | ||
function local_date( date ) | |||
return mw.ustring.format( '<span style="direction:rtl;unicode-bidi:embed;">%s</span>', mw.getContentLanguage():formatDate('j xg Y', Date)) -- local canonical format for dates | |||
end | |||
-- Whether variable is set or not | -- Whether variable is set or not | ||
| שורה 2,102: | שורה 2,106: | ||
end | end | ||
if is_set(Title) then | |||
-- bidi isolation. ideally we should use here bidi-isolate once browsers supports it properly. | |||
Title = mw.ustring.format( '<span style="unicode-bidi:embed;">%s</span>', Title) | |||
end | |||
Title = Title .. TransTitle; | Title = Title .. TransTitle; | ||
| שורה 2,412: | שורה 2,420: | ||
local pgtext = Position .. Page .. Pages .. At; | local pgtext = Position .. Page .. Pages .. At; | ||
if is_set(Date) then | if is_set(Date) then | ||
IsValidDate, LocalDate = pcall(local_date, Date) | |||
if IsValidDate then | |||
Date = LocalDate | |||
end | |||
end | end | ||
if is_set(Authors) then | if is_set(Authors) then | ||