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

جز
«پودمان:Portal» را محافظت کرد: الگوهای حساس ([ویرایش=تنها کاربران تأییدشدهٔ پایدار و مدیران] (بی‌پایان) [انتقال=تنها کاربران تأییدشدهٔ پایدار و مدیران] (بی‌پایان))
جز (۱ نسخه واردشده)
 
جز پودمان:Portal» را محافظت کرد: الگوهای حساس ([ویرایش=تنها کاربران تأییدشدهٔ پایدار و مدیران] (بی‌پایان) [انتقال=تنها کاربران تأییدشدهٔ پایدار و مدیران] (بی‌پایان)))
خط ۴: خط ۴:


-- The portal image data is kept in submodules of [[Module:Portal/images]], listed below:
-- The portal image data is kept in submodules of [[Module:Portal/images]], listed below:
-- [[Module:Portal/images/آ]]      - for portal names beginning with "آ".
-- [[Module:Portal/images/ا]]      - for portal names beginning with "ا".
-- [[Module:Portal/images/ا]]      - for portal names beginning with "ا".
-- [[Module:Portal/images/ب]]      - for portal names beginning with "ب".
-- [[Module:Portal/images/ب]]      - for portal names beginning with "ب".
خط ۵۶: خط ۵۷:
-- برای شناسایی صفحات فارسی رجکس خط زیر تغییر کرده‌است.
-- برای شناسایی صفحات فارسی رجکس خط زیر تغییر کرده‌است.
if mw.ustring.find(firstLetter, '^[اآبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]') and mw.title.makeTitle(828, 'Portal/images/' .. firstLetter).exists then
if mw.ustring.find(firstLetter, '^[اآبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]') and mw.title.makeTitle(828, 'Portal/images/' .. firstLetter).exists then
-- آ و ا در یک پودمان قرار می‌گیرند.
if firstLetter == "آ" then
firstLetter = "ا"
end
imagePage = 'Module:Portal/images/' .. firstLetter
imagePage = 'Module:Portal/images/' .. firstLetter
else
else
خط ۹۳: خط ۹۰:
:addClass('noprint portal')
:addClass('noprint portal')
:addClass(args.right and 'tright' or 'tleft')
:addClass(args.right and 'tright' or 'tleft')
:css('border', 'solid #aaa 1px')
:css('border', 'solid #a2a9b1 1px')
:css('margin', args.margin or (args.right == 'yes' and '0.5em 0 0.5em 1en') or '0.5em 1em 0.5em 0')
:css('margin', args.margin or (args.right == 'yes' and '0.5em 0 0.5em 1en') or '0.5em 1em 0.5em 0')
:newline()
:newline()
خط ۹۹: خط ۹۶:
-- Start the table. This corresponds to the start of the wikitext table in the old [[Template:Portal]].
-- Start the table. This corresponds to the start of the wikitext table in the old [[Template:Portal]].
local tableroot = root:tag('table')
local tableroot = root:tag('table')
:css('background', '#f9f9f9')
:css('background', '#f8f9fa')
:css('font-size', '85%')
:css('font-size', '85%')
:css('line-height', '110%')
:css('line-height', '110%')
کاربر ناشناس