پرش به محتوا

پودمان:List: تفاوت میان نسخه‌ها

۲۹۳ بایت اضافه‌شده ،  ‏۹ مهٔ ۲۰۲۲
جز
جزئی
جز (۱ نسخه واردشده)
fa>Mojtabakd
جز (جزئی)
خط ۸: خط ۸:


local p = {}
local p = {}
local num_con = require('Module:Numeral converter').convert


local listTypes = {
local listTypes = {
خط ۶۷: خط ۶۹:
else
else
data.listTag = 'ul'
data.listTag = 'ul'
end
-- Start number for ordered lists
data.start = num_con("en", args.start)
-- Two new persian translation for the start parameter
if args['آغاز'] then
data.start = num_con("en", args['آغاز'])
end
if args['شروع'] then
data.start = num_con("en", args['شروع'])
end
end


-- Start number for ordered lists
data.start = args.start
if listType == 'horizontal_ordered' then
if listType == 'horizontal_ordered' then
-- Apply fix to get start numbers working with horizontal ordered lists.
-- Apply fix to get start numbers working with horizontal ordered lists.
کاربر ناشناس