346
edits
No edit summary |
(try to combine the two frontend languages into one backend module.) |
||
Line 39: | Line 39: | ||
function p.version_tag(frame) | function p.version_tag(frame) | ||
local version = parse_version(frame.args[1]) | local version = parse_version(frame.args[1]) | ||
local lang = frame.args[2] | |||
local current = if_greater_function(version) == 0 | local current = if_greater_function(version) == 0 | ||
local previ = if_greater_function(version) == 1 | local previ = if_greater_function(version) == 1 | ||
Line 70: | Line 71: | ||
result = result:format(bordercolor, bgcolor, bordercolor) | result = result:format(bordercolor, bgcolor, bordercolor) | ||
if trunk then | if trunk then | ||
if lang == "EN" then | |||
result = result .. "'''''This article pertains to a feature of Elin which is unrelease in stable version.''" | |||
else | |||
result = result .. "'''''この記事は、Elinの未リリースバージョンの機能に関するものです。''" | |||
end | |||
else | else | ||
result = result .. "''''' | if lang == "EN" then | ||
result = result .. "'''''Version " | |||
else | |||
result = result .. "'''''バージョン " | |||
end | |||
if unknown then | if unknown then | ||
result = result .. "Unknown" | result = result .. "Unknown" | ||
Line 80: | Line 89: | ||
result = result .. "''': " | result = result .. "''': " | ||
if current then | if current then | ||
if lang == "EN" then | |||
result = result .. "This article is up to date for the [[Elin:Changelog|latest stable release]] of ''Elin''." | |||
else | |||
result = result .. "この記事は''Elin''の[[Elin:更新履歴|最新の安定版リリース]]に対応しています。" | |||
end | |||
else | else | ||
if lang == "EN" then | |||
result = result .. "This article '''may not be''' up to date for the [[Elin:Changelog|latest stable release]] of ''Elin.''" | |||
else | |||
result = result .. "この記事は、''Elin'' の[[Elin:更新履歴|最新の安定版リリース]]に対応していない可能性があり、不正確な情報を含んでいるかもしれません。" | |||
end | |||
end | end | ||
end | end |
edits