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

جز
۱ نسخه واردشده
(Undid revision 1062166786 by Matthiaspaul (talk); should be fixed now, and if not, please ping me with examples as I couldn't reproduce the original error)
جز (۱ نسخه واردشده)
 
(۵ نسخهٔ میانی ویرایش شده توسط ۲ کاربر نشان داده نشد)
خط ۲۴: خط ۲۴:
--default options table used across the list stringification functions
--default options table used across the list stringification functions
local stringifyListDefaultOptions = {
local stringifyListDefaultOptions = {
conjunction = "and",
conjunction = "و",
separator = ",",
separator = "،",
altSeparator = ";",
altSeparator = "؛",
space = " ",
space = " ",
formatted = false
formatted = false
خط ۷۸: خط ۷۸:


-- Stringifies lists with "and" or "or"
-- Stringifies lists with "and" or "or"
function p.andList (...) return p.conjList("and", ...) end
function p.andList (...) return p.conjList("و", ...) end
function p.orList (...) return p.conjList("or", ...) end
function p.orList (...) return p.conjList("یا", ...) end


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
خط ۹۰: خط ۹۰:
--default options table used across the forSee family of functions
--default options table used across the forSee family of functions
local forSeeDefaultOptions = {
local forSeeDefaultOptions = {
andKeyword = 'and',
andKeyword = 'و',
title = mw.title.getCurrentTitle().text,
title = mw.title.getCurrentTitle().text,
otherText = 'other uses',
otherText = 'دیگر کاربردها',
forSeeForm = 'For %s, see %s.',
forSeeForm = 'برای %s, ببینید %s.',
}
}


۴۱۵٬۰۷۸

ویرایش