بحث مدیاویکی:Common.css

آخرین نظر: ۱ ماه پیش توسط Yoosef Pooranvary در مبحث شماره ردیف جداول

خواهشمندم کد زیر را که در الگوی سرصفحه۲ کاربرد دارد به این فایل اضافه کنید:

table.headertemplate {
	width:100%;
	margin-bottom:5px;
	border:1px solid #ADA;
	background:#E4F2E4;
	text-align:center;
	font-size:0.9em;
}
.headertemplate .header_backlink,
.headertemplate .header_forelink {
	width:20%;
	font-size:0.9em;
	line-height:normal;
}
.header_notes {
	width:100%;
	margin-bottom:0.5em;
	background:#FAFAFF;
	border-bottom:1px solid #A88;
	font-size:0.9em;
}
.headertemplate .header_title { width: 60%; }
.headertemplate .header_backlink { text-align:left; }
.headertemplate .header_forelink { text-align:right; }

خیلی ممنون. --یوسف ‏۲۶ اوت ۲۰۰۹، ساعت ۱۱:۲۴ (UTC)پاسخ

لطفاً کد زیر که مربوط به {{اطلاعات متن}} است را هم به این فایل بیفزایید:

/*********
** Most-used standard templates
*********/
/* TextInfo template */
.textinfo
{
 margin: 1px;
 padding: 1px;
 border: 1px solid #0E8605;
 background-color: #B0E0A0;
 text-align: right;
}
.textinfo th
{
 background-color: #0E8605;
 text-align: center;
 font-weight: normal;
 color: #FFF;
}
.textinfo td
{
 background-color: #C6FFC6;
}

ممنون. --یوسف (بحث) ‏۸ آوریل ۲۰۱۳، ساعت ۱۳:۲۵ (UTC)پاسخ

External links icons removed ویرایش

Hello! If this CSS adds or modifies icons shown after external links, you'll be interested in knowing that such icons have been removed from MediaWiki core, a change which will reach this wiki in few days. You may want to consider whether you still need them. If you have questions, please ask at bugzilla:63725. Regards, Nemo ‏۱۰ آوریل ۲۰۱۴، ساعت ۰۹:۴۵ (UTC)پاسخ

پیغام در صفحهٔ ویرایش ویرایش

آقایان @Pedram.salehpoor: یا @Mardetanha:: خواهشمندم کد زیر را که برای قرار دادن پیغام در صفحه‌های ویرایش کاربرد دارد به این فایل اضافه کنید:

/* global mw, $ */
// Editing-related javascripts
if (mw.config.get("wgAction") === "edit" || mw.config.get("wgAction") === "submit" || mw.config.get("wgCanonicalSpecialPageName") === "Upload") {
  /* scripts specific to editing pages */
  importScript("مدیاویکی:Common.js/edit.js");
}
/** Magic editintros ****************************************************
 *
 *  Description: Adds editintros on disambiguation pages and BLP pages.
 *  Maintainers: [[User:RockMFR]]
 */
function addEditIntro(name) {
  $(".mw-editsection, #ca-edit").find("a").each(function(i, el) {
    el.href = $(this).attr("href") + "&editintro=" + name;
  });
}

if (mw.config.get("wgNamespaceNumber") === 0) {
  $(function() {
    if (document.getElementById("disambigbox")) {
      addEditIntro("Template:Disambig_editintro");
    }
  });

  $(function() {
    var cats = mw.config.get("wgCategories");
    if (!cats) {
      return;
    }
    if ($.inArray("آثار تصحیحی", cats) !== -1) {
      addEditIntro("Template:BLP_editintro");
    }
  });
}

--یوسف (بحث) ‏۴ ژوئن ۲۰۱۹، ساعت ۰۷:۳۴ (UTC)پاسخ

 ، لطفا بررسی کنید ببنید درست کار می‌کند یا نه م‍‍ردتن‍‍ه‍‍ا ‏۴ ژوئن ۲۰۱۹، ساعت ۱۱:۰۹ (UTC)پاسخ

Update for T314318 ویرایش

Please make changes like the following,

https://it.wikipedia.org/w/index.php?title=MediaWiki%3ACommon.css&type=revision&diff=130152006&oldid=127986303

For more information, see mw:Parsoid/Parser_Unification/Media_structure/FAQ

Thanks, Arlolra (بحث) ‏۲ فوریهٔ ۲۰۲۳، ساعت ۲۰:۵۸ (UTC)پاسخ

  Done. Arash.z (بحث) جمعه،۱۴ بهمن ۱۴۰۱، ساعت ۱۰:۰۸ (ایران) ‏۳ فوریهٔ ۲۰۲۳، ساعت ۰۶:۳۸ (UTC)پاسخ
Thank you, but I made the additional change Special:Diff/194753 ABreault (WMF) (بحث) ‏۲۲ فوریهٔ ۲۰۲۳، ساعت ۲۳:۲۷ (UTC)پاسخ

شماره ردیف جداول ویرایش

سلام @Mardetanha: برای فارسی شدن اعداد الگوی {{Static row numbers}} نیاز به کد زیر در اینجا داریم. لطفاً اضافه بفرمایید:

/* Persian numerals for Template:Static row numbers */
body:not(.skin-minerva) .static-row-numbers.sortable tbody tr:not(.static-row-header):not(.static-row-numbers-norank)::before,
body.skin-minerva .static-row-numbers tbody tr:not(:first-child):not(.static-row-header):not(.static-row-numbers-norank)::before,
table.static-row-numbers:not(.sortable) tbody tr:not(:first-child):not(.static-row-header):not(.static-row-numbers-norank)::before {
  content: counter(rowNumber, persian);
}

یوسف (بحث) ‏۱۵ ژانویهٔ ۲۰۲۴، ساعت ۲۰:۲۸ (UTC)پاسخ

من درخواست دسترسی کردم که این را تصحیح کنم. به زودی خبر میدهم م‍‍ردتن‍‍ه‍‍ا ‏۱۶ ژانویهٔ ۲۰۲۴، ساعت ۱۵:۰۰ (UTC)پاسخ
@Mardetanha:خبری نشد؟ یوسف (بحث) ‏۳ مارس ۲۰۲۴، ساعت ۲۱:۰۱ (UTC)پاسخ
بازگشت به صفحهٔ «Common.css».