بحث مدیاویکی:Common.js
Give search results even when page doesn't exist[ویرایش]
Hello, I propose to enable the tool created by Magnus Manske (creator of MediaWiki) to provide results from other languages and Commons (via Wikidata) when a page doesn't exist here: links are added to Special:Search and noarticletext. This helps to encourage translation and to make readers use your wiki more, because they can be sure to find something even if it's not local (rather than searching directly on the biggest wiki). The Italian and Polish Wikipedias, among others already enabled it by default.
Examples: [۱] [۲] [۳]. More information: Magnus blog.
How to: just add the following line at the end of Common.js.
// Results from Wikidata // if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' || ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgCanonicalSpecialPageName' ) === false ) ) { importScriptURI("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript"); } --Nemo ۱۶ ژوئن ۲۰۱۷، ساعت ۱۲:۴۸ (UTC) (comments, translations and last instructions)
جناب صالحپور لطفاً این را جایگزین کنید: 'optlist':'تنظیمات نمایش', 'hide_page_numbers':'پنهان کردن شماره برگ', 'show_page_numbers':'نمایش دادن شماره برگ', 'layout':'نمایش', 'author':'نویسنده', 'translator':'مترجم', 'editor':'ویراستار', 'publisher':'ناشر', 'place':'مکان', 'volume':'جلد', 'school':'مدرسه', 'book':'کتاب', 'collection':'گردآوری', 'journal':'ژورنال و مجله', 'phdthesis':'پایاننامه', 'dictionary':'فرهنگلغت', 'progress':'روند', 'progress_T':'انجام شد', 'progress_V':'نمونهخوانی شد', 'progress_C':'باید نمونهخوانی شود', 'progress_MS':'در انتظار همتایابی و جداسازی', 'progress_OCR':'نیازمند لایه متنی اوسیآر', 'progress_L':'پرونده مبدأ مشکل دارد (بدون برگاست، برگ در دسترس نیست، موارد دیگر)', '▲':'بازگشت به بالای صفحه', 'corr_list':"فهرست نمونهخوانیهای انجام شده بر روی این برگ" , 'corr_link':"تصحیح" , 'corr_one':"یک اشتباه چاپی </a> تصحیح شد" , 'corr_many':" اشتباههای چاپی</a> تصحیح شدند" , 'corr_close':"بسته" , 'iwtrans':'مبدا متن', 'iwtrans2':'مبدا متن از ویکینبشتههای دیگر' ارادتمند --یوسف (بحث) ۱۶ ژوئن ۲۰۱۷، ساعت ۱۲:۴۸ (UTC)
اصلاح لی آوت دو[ویرایش]
یکی از مدیران گرامی لطفاً بخش زیر را جایگزین کنید. @Mardetanha: @Pedram.salehpoor:
'نمایش دو':{
'#text-wrap':"position:relative;margin-left:3em;margin-right:3em;",
'#text-container':"width:46em;margin:0px auto;font-family: Iranian Sans;font-size: small;" ,
'#text':"text-align:justify;",
'.sidenote-right':"position:absolute; left:37em;width:16em;text-indent:0em;text-align:left;",
'.sidenote-left':"position:absolute; right:37em;width:16em;text-indent:0em;text-align:right;",
'.editsection':"display:none",
'#headertemplate':""},
--یوسف (بحث) ۲۸ مهٔ ۲۰۲۰، ساعت ۲۱:۰۰ (UTC)