Jump to content

Module:Quran/Configuration

From wikishia

Documentation for this module may be created at Module:Quran/Configuration/doc

local default = {
	shape = "text",
	aya_symbol_template = "شماره آیه"
}
local aliases = {
    [1]				= {1},
    ["soura"]       = {"soura" ,"سوره"},
    ["from_aya"]    = {2, "aya", "from aya", "از آیه", "شروع آیه"},
    ["to_aya"]      = {"to aya", "به آیه", "تا آیه"},
    ["from_word"]   = {"from word", "از کلمه", "شروع کلمه" ,"از متن"},
    ["to_word"]     = { "to word", "تا کلمه", "پایان کلمه", "تا متن"},
    ["addition_ayat"]   = {3, "آیات دیگر", "addition ayat"},
    ["shape"]       = {"الرسم", "الترميز", "shape", "رسم", "نوع"},
    ["aya_template"]	= {"قالب رقم الآية", "قالب الآية", "aya template", "الگوی آیه"},
    ["search"]      = {"بحث", "ابحث", "search", "گشتن", "جستجو"},
    ["user_text"]   = {"النص", "نص", "text", "متن"},
    ["s"]           = {"س", "s"}, -- في حالة تعيين النص فقط
    ["a"]           = {"آ", "a"}, -- في حالة تعيين النص فقط
    ["viewtemplate"] = {"إظهار القوالب", "viewtemplate", "نمایش الگو"},
    ["no-cite"]		= {"بدون منبع", "منبع", "no-cite"}
}

local shape_aliases = {
    ["text"]      = {"إملائي", "text", "متنی"},
	["Translation"]   = {"Translation translation", "ترجمه", "ترجمه به انگلیسی", "ترجمه به انگلیسی"},
	["Transliteration"]   = {"Transliteration transliteration", "آوانگاری", "آوانگاری به انگلیسی", "آوانگاری به انگلیسی"}
}

local msgs = {
	["soura_num_err"]	= "شماره سوره خارج از محدوده (1-114)",
	["soura_name_err"]	= "نام سوره اشتباه است",
	["from_aya_err"]	= "آیه اول از حدود سوره خارج است $1 ($2)",
	["to_aya_err"]	= "آیه آخر از حدود سوره خارج است $1 ($2)",
	["from_word_err"]	= "کلمه اول پیدا نشد",
	["to_word_err"]	= "کلمه آخر پیدا نشد",
}

local presentation = {
	-- The shape of numbers. Empty string mean numbers will not changed
	["numbers_shape"]	= "0123456789",
	["quran"]			= '<div style="direction: rtl;"><span class="quran-parenthesis">﴿</span><span class="quran-$1">$2</span><span class="quran-parenthesis">﴾</span></div>',
	["cite_quran"]		= '&nbsp;<small class="quran-cite">&#91;[[سوره $1|$1]]$2&#93;</small>',
	["error"]			= '[[$1]]: <strong class="error">$2</strong>',
	["شماره آیه"] 		= '<span class="end-of-aya"><span class="aya-sym">۝</span><span class="aya-num">$1</span></span>'
}

return {
	default = default,
	aliases = aliases,
	shape_aliases = shape_aliases,
	msgs = msgs,
	presentation = presentation
}