Not the most elegant solution, but all the alternatives suck. Toggle messages still allow HTML, as far as I can see. Running the thing through the parser is overkill and produces useless paragraph and other unwanted nonsense, too.
* (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 = '72';
+$wgStyleVersion = '73';
# Server-side caching:
# Misc
#
$wgOut->addHTML('<fieldset><legend>' . wfMsg('prefs-misc') . '</legend>');
- $wgOut->addHTML( wfInputLabel( wfMsg( 'stubthreshold' ),
- 'wpStubs', 'wpStubs', 6, $this->mStubs ) );
+ $wgOut->addHtml( '<label for="wpStubs">' . wfMsg( 'stub-threshold' ) . '</label> ' );
+ $wgOut->addHtml( Xml::input( 'wpStubs', 6, $this->mStubs, array( 'id' => 'wpStubs' ) ) );
$msgUnderline = htmlspecialchars( wfMsg ( 'tog-underline' ) );
$msgUnderlinenever = htmlspecialchars( wfMsg ( 'underline-never' ) );
$msgUnderlinealways = htmlspecialchars( wfMsg ( 'underline-always' ) );
'resultsperpage' => 'Hits per page:',
'contextlines' => 'Lines per hit:',
'contextchars' => 'Context per line:',
-'stubthreshold' => 'Threshold for stub display:',
+'stub-threshold' => 'Threshold for <span class="mw-stub-example">stub link</span> formatting:',
'recentchangesdays' => 'Days to show in recent changes:',
'recentchangescount' => 'Number of edits to show in recent changes:',
'savedprefs' => 'Your preferences have been saved.',
a { color: #002bb8; }
a:visited { color: #5a3696; }
a:active { color: #ffa500; }
-a.stub { color: #772233; }
+a.stub,
+span.mw-stub-example {
+ 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, #quickbar a.stub { color:#772233; text-decoration:none; }
+a.stub, span.mw-stub-example, #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 { color:#772233; text-decoration:none; }
+a.stub, span.mw-stub-example { 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 {
+a.stub,
+span.mw-stub-example {
color: #772233;
}
a.new, #p-personal a.new {
border-width: 0.5em 1.4em 0.8em 0;
}
-a.stub { color: #772233; }
+a.stub,
+span.mw-stub-example {
+ color: #772233;
+}
a.new,
#p-personal a.new {
text-decoration: line-through;