Adding a class for the example is not only ugly, it's fragile -- customizations to the actual threshold will have no effect on the sample.
The sensible thing is to construct an actual bit of sample text using the actual classes -- a null link (<a href="#">) with appropriate class would show the effect nicely and be robust to customizations.
* (bug 9628) Show warnings about slave lag on Special:Contributions,
Special:Watchlist
* (bug 8818) Expose "wpDestFile" as parameter $1 to "uploaddisabledtext"
-* (bug 9886) Give a sample stub link in stub threshold label in preferences
== Bugfixes since 1.10 ==
* to ensure that client-side caches don't keep obsolete copies of global
* styles.
*/
-$wgStyleVersion = '73';
+$wgStyleVersion = '72';
# Server-side caching:
# Misc
#
$wgOut->addHTML('<fieldset><legend>' . wfMsg('prefs-misc') . '</legend>');
- $wgOut->addHtml( '<label for="wpStubs">' . wfMsg( 'stub-threshold' ) . '</label> ' );
- $wgOut->addHtml( Xml::input( 'wpStubs', 6, $this->mStubs, array( 'id' => 'wpStubs' ) ) );
+ $wgOut->addHTML( wfInputLabel( wfMsg( 'stubthreshold' ),
+ 'wpStubs', 'wpStubs', 6, $this->mStubs ) );
$msgUnderline = htmlspecialchars( wfMsg ( 'tog-underline' ) );
$msgUnderlinenever = htmlspecialchars( wfMsg ( 'underline-never' ) );
$msgUnderlinealways = htmlspecialchars( wfMsg ( 'underline-always' ) );
'resultsperpage' => 'Resultater pr. side',
'contextlines' => 'Linjer pr. resultat',
'contextchars' => 'Tegn pr. linje i resultatet',
-'stub-threshold' => 'Grænseværdi for <span class="mw-stub-example">stub link</span> formattering:',
+'stubthreshold' => 'Grænse for visning af artikelstumper',
'recentchangesdays' => 'Antal dage, som listen „Sidste ændringer“ standardmæssigt skal omfatte:',
'recentchangescount' => 'Antallet af titler på siden "seneste ændringer"',
'savedprefs' => 'Dine indstillinger er blevet gemt.',
'resultsperpage' => 'Treffer pro Seite:',
'contextlines' => 'Zeilen pro Treffer:',
'contextchars' => 'Zeichen pro Zeile:',
-'stub-threshold' => 'Grenzwert zur Markierung der Links auf <span class="mw-stub-example">kurze Seiten <i>(stubs)</i></span> (in Byte):',
+'stubthreshold' => 'Kleine Seiten markieren bis (Byte):',
'recentchangesdays' => 'Anzahl der Tage, die die Liste der „Letzten Änderungen“ standardmäßig umfassen soll:',
'recentchangescount' => 'Anzahl der Einträge in „Letzte Änderungen“ und „Neue Artikel“:',
'savedprefs' => 'Ihre Einstellungen wurden gespeichert.',
'resultsperpage' => 'Hits per page:',
'contextlines' => 'Lines per hit:',
'contextchars' => 'Context per line:',
-'stub-threshold' => 'Threshold for <span class="mw-stub-example">stub link</span> formatting:',
+'stubthreshold' => 'Threshold for stub display:',
'recentchangesdays' => 'Days to show in recent changes:',
'recentchangescount' => 'Number of edits to show in recent changes:',
'savedprefs' => 'Your preferences have been saved.',
'resultsperpage' => 'מספר תוצאות בעמוד',
'contextlines' => 'שורות לכל תוצאה',
'contextchars' => 'מספר תווי קונטקסט בשורה',
-'stub-threshold' => 'סף לעיצוב <span class="mw-stub-example">קישורים לקצרמרים</span>:',
+'stubthreshold' => 'סף להצגת דפים קצרים (קצרמרים)',
'recentchangesdays' => 'מספר הימים שיוצגו בדף השינויים האחרונים:',
'recentchangescount' => 'מספר העריכות שיוצגו בדף השינויים האחרונים:',
'savedprefs' => 'העדפותיך נשמרו.',
'resultsperpage' => 'Hasil per halaman:',
'contextlines' => 'Baris ditampilkan per hasil:',
'contextchars' => 'Karakter untuk konteks per baris:',
-'stub-threshold' => 'Ambang batas untuk <span class="mw-stub-example">pranala tulisan rintisan</span>:',
+'stubthreshold' => 'Ambang batas tampilan rintisan:',
'recentchangesdays' => 'Jumlah hari yang ditampilkan di perubahan terbaru:',
'recentchangescount' => 'Jumlah suntingan yang ditampilkan di perubahan terbaru:',
'savedprefs' => 'Preferensi Anda telah disimpan',
'resultsperpage' => 'بەت سايىن نٵتيجە سانى:',
'contextlines' => 'نٵتيجە سايىن جول سانى:',
'contextchars' => 'جول سايىن ٵرٸپ سانى:',
-'stub-threshold' => '<span class="mw-stub-example">بٸتەمە سٸلتەمەسٸن</span> پٸشٸمدەۋ تابالدىرىعى:',
+'stubthreshold' => 'بٸتەمە كٶرستەتۋٸن انىقتاۋ تابالدىرىعى:',
'recentchangesdays' => 'جٷىقتاعى ٶزگەرٸستەردەگٸ كٶرسەتٸلەتٸن كٷندەر:',
'recentchangescount' => 'جۋىقتاعى ٶزگەرٸستەردەگٸ كٶرسەتٸلەتٸن تٷزەتۋلەر:',
'savedprefs' => 'باپتاۋلارىڭىز ساقتالدى.',
'resultsperpage' => 'Бет сайын нәтиже саны:',
'contextlines' => 'Нәтиже сайын жол саны:',
'contextchars' => 'Жол сайын әріп саны:',
-'stub-threshold' => '<span class="mw-stub-example">Бітеме сілтемесін</span> пішімдеу табалдырығы:',
+'stubthreshold' => 'Бітеме көрстетуін анықтау табалдырығы:',
'recentchangesdays' => 'Жүықтағы өзгерістердегі көрсетілетін күндер:',
'recentchangescount' => 'Жуықтағы өзгерістердегі көрсетілетін түзетулер:',
'savedprefs' => 'Баптауларыңыз сақталды.',
'resultsperpage' => 'Bet saýın nätïje sanı:',
'contextlines' => 'Nätïje saýın jol sanı:',
'contextchars' => 'Jol saýın ärip sanı:',
-'stub-threshold' => '<span class="mw-stub-example">Biteme siltemesin</span> pişimdew tabaldırığı:',
+'stubthreshold' => 'Biteme körstetwin anıqtaw tabaldırığı:',
'recentchangesdays' => 'Jüıqtağı özgeristerdegi körsetiletin künder:',
'recentchangescount' => 'Jwıqtağı özgeristerdegi körsetiletin tüzetwler:',
'savedprefs' => 'Baptawlarıñız saqtaldı.',
'resultsperpage' => '每页显示链接数',
'contextlines' => '每链显示行数:',
'contextchars' => '每行显示字数:',
-'stub-threshold' => '<span class="mw-stub-example">小作品链接</span>格式门限值:',
+'stubthreshold' => '小作品显示门限值',
'recentchangesdays' => '最近更改中的顯示日數:',
'recentchangescount' => '最近更改中的編輯數:',
'savedprefs' => '您的个人参数设置已经保存。',
'resultsperpage' => '每頁顯示連結數',
'contextlines' => '每連結行數:',
'contextchars' => '每行字數:',
-'stub-threshold' => '<span class="mw-stub-example">短文章連結</span>格式基本限制:',
+'stubthreshold' => '短文章顯示基本限制',
'recentchangesdays' => '最近更改中的顯示日數:',
'recentchangescount' => '最近更改中的編輯數:',
'savedprefs' => '您的個人參數設置已經保存。',
'resultsperpage' => '每頁顯示嘅擊中數:',
'contextlines' => '每一擊顯示嘅行數:',
'contextchars' => '每一行嘅字數:',
-'stub-threshold' => '<span class="mw-stub-example">楔連結</span>格式門檻:',
+'stubthreshold' => '楔位文章門檻:',
'recentchangesdays' => '最近更改中嘅顯示日數:',
'recentchangescount' => '最近更改中嘅編輯數:',
'savedprefs' => '你嘅喜好設定已經儲存。',
a { color: #002bb8; }
a:visited { color: #5a3696; }
a:active { color: #ffa500; }
-a.stub,
-span.mw-stub-example {
- color: #772233;
-}
+a.stub { color: #772233; }
a.new,
#p-personal a.new { color:#ba0000; }
a.new:visited,
a.external { color: #336644; }
a:visited { color: #8D0749; }
a.printable { text-decoration: underline; }
-a.stub, span.mw-stub-example, #quickbar a.stub { color:#772233; text-decoration:none; }
+a.stub, #quickbar a.stub { color:#772233; text-decoration:none; }
a.new, #quickbar a.new { color: #CC2200; }
h2, h3, h4, h5, h6 { margin-bottom: 0; }
small { font-size: 75%; }
}
a.interwiki, a.external { color: #3366BB; }
a.printable { text-decoration: underline; }
-a.stub, span.mw-stub-example { color:#772233; text-decoration:none; }
+a.stub { color:#772233; text-decoration:none; }
h1.pagetitle { padding-top: 0; margin-top: 0; padding-bottom: 0; margin-bottom: 0; }
h2, h3, h4, h5, h6 { margin-bottom: 0; }
textarea { overflow: auto; }
a:hover {
text-decoration: underline;
}
-a.stub,
-span.mw-stub-example {
+a.stub {
color: #772233;
}
a.new, #p-personal a.new {
border-width: 0.5em 1.4em 0.8em 0;
}
-a.stub,
-span.mw-stub-example {
- color: #772233;
-}
+a.stub { color: #772233; }
a.new,
#p-personal a.new {
text-decoration: line-through;