Module:Sandbox/Mensis/db

local p = {} local types = { ["book_en"] = 'book', ["book_fa"] = 'کتاب', ["web_en"] = 'web', ["web_fa"] = 'وب', ["journal_en"] = 'journal', ["journal_fa"] = 'ژورنال', ["encyclopedia_en"] = 'encyclopedia', ["encyclopedia_fa"] = 'دانشنامه', ["podcast_en"] = 'podcast', ["podcast_fa"] = 'پادکست', ["news_en"] = 'news', ["news_fa"] = 'خبر', ["magazine_en"] = 'magazine', ["magazine_fa"] = 'مجله', ["interview_en"] = 'interview', ["interview_fa"] = 'مصاحبه', ["arxiv_en"] = 'arXiv', ["arxiv_fa"] = 'آرکایو', ["av_en"] = 'AV media', ["news_fa"] = 'ویدئو', ["conference_en"] = 'conference', ["conference_fa"] = 'کنفرانس', ["map_en"] = 'map', ["map_fa"] = 'نقشه', }; function p.is_rtl(frame) cite_type = frame.args['type'];				-- type of the citation template (book, web, etc.) lang = mw.ustring.lower(frame.args['lang'])		--language code if lang == "" or lang == nil or lang == "fa" or lang == "ar" or lang == "ur" or lang == "he" then return "یادکرد "..types[cite_type.."_fa"].."/هسته" else return "Cite "..types[cite_type.."_en"] end end

return p