Add semantic tags to license info text
authorLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Fri, 22 Dec 2017 14:46:30 +0000 (15:46 +0100)
committerLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Wed, 3 Jan 2018 13:38:48 +0000 (14:38 +0100)
Surround uppercased parts of the text in emphasis or strong importance
tags, and then change the style of those tags to remove their special
font weight or style. In normal browsers, there should be no visible
difference, but other user agents might be able to utilize the
additional semantic information.

Change-Id: Ief505e28fe971da537726afd75238b87204b85dd

includes/specials/SpecialVersion.php
languages/i18n/en.json
resources/src/mediawiki.special/mediawiki.special.version.css

index f176b40..1088d72 100644 (file)
@@ -169,7 +169,9 @@ class SpecialVersion extends SpecialPage {
                $ret .= '<div class="plainlinks">';
                $ret .= "__NOTOC__
                " . self::getCopyrightAndAuthorList() . "\n
-               " . wfMessage( 'version-license-info' )->text();
+               " . '<div class="mw-version-license-info">' .
+               wfMessage( 'version-license-info' )->text() .
+               '</div>';
                $ret .= '</div>';
 
                return str_replace( "\t\t", '', $ret ) . "\n";
index 301408f..ae34398 100644 (file)
        "version-poweredby-others": "others",
        "version-poweredby-translators": "translatewiki.net translators",
        "version-credits-summary": "We would like to recognize the following persons for their contribution to [[Special:Version|MediaWiki]].",
-       "version-license-info": "MediaWiki is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\n\nMediaWiki is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received [{{SERVER}}{{SCRIPTPATH}}/COPYING a copy of the GNU General Public License] along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA or [//www.gnu.org/licenses/old-licenses/gpl-2.0.html read it online].",
+       "version-license-info": "MediaWiki is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\n\nMediaWiki is distributed in the hope that it will be useful, but <em>WITHOUT ANY WARRANTY</em>; without even the implied warranty of <strong>MERCHANTABILITY</strong> or <strong>FITNESS FOR A PARTICULAR PURPOSE</strong>. See the GNU General Public License for more details.\n\nYou should have received [{{SERVER}}{{SCRIPTPATH}}/COPYING a copy of the GNU General Public License] along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA or [//www.gnu.org/licenses/old-licenses/gpl-2.0.html read it online].",
        "version-software": "Installed software",
        "version-software-product": "Product",
        "version-software-version": "Version",
index ebb6b48..acc9f13 100644 (file)
@@ -24,3 +24,11 @@ th.mw-version-ext-col-label {
        -moz-column-width: 18em;
        -webkit-column-width: 18em;
 }
+
+.mw-version-license-info strong {
+       font-weight: normal;
+}
+
+.mw-version-license-info em {
+       font-style: normal;
+}