r96477 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96476‎ | r96477 | r96478 >
Date:19:43, 7 September 2011
Author:brion
Status:resolved
Tags:
Comment:
Backport r95340, partial r94773 from trunk for bug 30485: set override styles for hieroglyphic layout tables to avoid interference from 'wikitable' class on a surrounding table.

This adds the ext.wikihiero.css styles (slightly modified for the different class name on the older code). No other changes made, so some of the new styles are redundant to inline attributes/styles, but should have no ill effects.
Modified paths:
  • /branches/REL1_18/extensions/wikihiero/wikihiero.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/extensions/wikihiero/wikihiero.php
@@ -26,6 +26,7 @@
2727
2828 // Register MediaWiki extension
2929 $wgHooks['ParserFirstCallInit'][] = 'WH_Register';
 30+$wgHooks['BeforePageDisplay'][] = 'wfHieroBeforePageDisplay';
3031 $wgExtensionCredits['parserhook'][] = array(
3132 'path' => __FILE__,
3233 'name' => 'WikiHiero',
@@ -35,6 +36,12 @@
3637 );
3738 $wgExtensionMessagesFiles['Wikihiero'] = dirname(__FILE__) . '/wikihiero.i18n.php';
3839
 40+$wgResourceModules['ext.wikihiero'] = array(
 41+ 'styles' => 'ext.wikihiero.css',
 42+ 'localBasePath' => dirname( __FILE__ ) . '/modules',
 43+ 'remoteExtPath' => 'wikihiero/modules',
 44+);
 45+
3946 function WH_Register( &$parser ) {
4047 $parser->setHook( 'hiero', 'WikiHieroLoader' );
4148 return true;
@@ -48,6 +55,11 @@
4956 }
5057 }
5158
 59+function wfHieroBeforePageDisplay( $out ) {
 60+ $out->addModuleStyles( 'ext.wikihiero' );
 61+ return true;
 62+}
 63+
5264 // MediaWiki entry point
5365 function WikiHieroLoader( $text, $attribs, $parser ) {
5466 WikiHieroLoad();

Follow-up revisions

RevisionCommit summaryAuthorDate
r96481Merge r96474 from 1.17 -- Backport r95340, partial r94773 from trunk for bug ......brion19:51, 7 September 2011
r96482Followup r96477 -- .css file didn't get committed :Pbrion19:51, 7 September 2011
r107669* more specific selectors for wikitable - don't inherit properties to nested ...danny_b23:23, 30 December 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r94773WikiHiero: replaced inline formatting with CSS, now validates as HTML5maxsem16:42, 17 August 2011
r95340* (bug 30485) Fixed interference between wikihiero extension and 'wikitable' ...brion21:52, 23 August 2011
r96474Backport r95340, partial r94773 from trunk for bug 30485: set override styles...brion19:22, 7 September 2011

Status & tagging log