(bug 9886) Give a sample stub link in stub threshold label in preferences
authorRob Church <robchurch@users.mediawiki.org>
Fri, 18 May 2007 21:10:36 +0000 (21:10 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 18 May 2007 21:10:36 +0000 (21:10 +0000)
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.

RELEASE-NOTES
includes/DefaultSettings.php
includes/SpecialPreferences.php
languages/messages/MessagesEn.php
skins/chick/main.css
skins/common/cologneblue.css
skins/common/nostalgia.css
skins/monobook/main.css
skins/simple/main.css

index 16f05d4..9835770 100644 (file)
@@ -32,6 +32,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (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 ==
 
index a4ea590..463e96f 100644 (file)
@@ -1125,7 +1125,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches don't keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '72';
+$wgStyleVersion = '73';
 
 
 # Server-side caching:
index e9c5418..b4ae86d 100644 (file)
@@ -949,8 +949,8 @@ class PreferencesForm {
                # 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>&nbsp;' );
+               $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' ) );
index 6481858..c643424 100644 (file)
@@ -1254,7 +1254,7 @@ containing all of the search terms will appear in the result).",
 '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.',
index 997dd51..3b78aad 100644 (file)
@@ -16,7 +16,10 @@ body {
 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,
index 5b6e5bc..b367dba 100644 (file)
@@ -89,7 +89,7 @@ a { color: #223366; }
 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%; }
index c9b36a7..9c98294 100644 (file)
@@ -8,7 +8,7 @@ body {
 }
 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; }
index 4b9dd35..1c3ef37 100644 (file)
@@ -92,7 +92,8 @@ a:active {
 a:hover {
        text-decoration: underline;
 }
-a.stub {
+a.stub,
+span.mw-stub-example {
        color: #772233;
 }
 a.new, #p-personal a.new {
index ea682ec..7e738e3 100644 (file)
@@ -347,7 +347,10 @@ div.tleft {
     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;