پرش به محتوا

پودمان:Lang و پودمان:Lang/تمرین: تفاوت میان صفحه‌ها

(تفاوت بین صفحه‌ها)
محتوای حذف‌شده محتوای افزوده‌شده
Liuxinyu970226 (بحث | مشارکت‌ها)
 
بدون خلاصۀ ویرایش
 
خط ۵: خط ۵:
]=]
]=]


require('strict');
require('');


local getArgs = require ('Module:Arguments').getArgs;
local getArgs = require ('Module:Arguments').getArgs;
خط ۱٬۱۹۳: خط ۱٬۱۹۳:
if is_set (args.translation) then -- translation (not supported in {{lang}})
if is_set (args.translation) then -- translation (not supported in {{lang}})
table.insert (out, '، ');
table.insert (out, ' ');
if 'none' ~= args.label then
if 'none' ~= args.label then
table.insert (out, '<small>');
table.insert (out, '<small>');
خط ۱٬۲۰۳: خط ۱٬۲۰۳:
table.insert (out, "&thinsp;</small>");
table.insert (out, "&thinsp;</small>");
end
end
table.insert (out, table.concat ({'«', args.translation, '»'})); -- use html entities to avoid wiki markup confusion
table.insert (out, table.concat ({'', args.translation, ''})); -- use html entities to avoid wiki markup confusion
end
end