r43027 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43026‎ | r43027 | r43028 >
Date:21:10, 1 November 2008
Author:siebrand
Status:old
Tags:
Comment:
Update for uniwiki/CatBoxAtTop:
* complete extension credits
* update indentation, remove trailing whitespace, stylize.php
Modified paths:
  • /trunk/extensions/uniwiki/CatBoxAtTop/CatBoxAtTop.i18n.php (added) (history)
  • /trunk/extensions/uniwiki/CatBoxAtTop/CatBoxAtTop.php (modified) (history)
  • /trunk/extensions/uniwiki/CatBoxAtTop/style.css (modified) (history)

Diff [purge]

Index: trunk/extensions/uniwiki/CatBoxAtTop/style.css
@@ -42,9 +42,3 @@
4343 line-height: 1.8;
4444 list-style-image: none;
4545 }
46 -
47 -/*#catbox li a {
48 - display: block;
49 - padding: 0.25em 0.5em;
50 - border-bottom: 1px solid #eee;
51 -}*/
Index: trunk/extensions/uniwiki/CatBoxAtTop/CatBoxAtTop.i18n.php
@@ -0,0 +1,14 @@
 2+<?php
 3+/**
 4+ * Internationalisation for Uniwiki/CatBoxAtTop extension
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$messages = array();
 11+
 12+/** English */
 13+$messages['en'] = array(
 14+ 'catboxattop-desc' => 'Adds a category box to the top right of pages',
 15+);
Property changes on: trunk/extensions/uniwiki/CatBoxAtTop/CatBoxAtTop.i18n.php
___________________________________________________________________
Added: svn:eol-style
116 + native
Added: svn:keywords
217 + Id
Index: trunk/extensions/uniwiki/CatBoxAtTop/CatBoxAtTop.php
@@ -9,14 +9,21 @@
1010 /* ---- CREDITS ---- */
1111
1212 $wgExtensionCredits['other'][] = array(
13 - 'name' => "Uniwiki Category Box at Top",
14 - 'author' => "Merrick Schaefer, Mark Johnston, Evan Wheeler and Adam Mckaig (at UNICEF)",
15 - 'description' => "Adds a category box to the top right of articles"
 13+ 'name' => 'CatBoxAtTop',
 14+ 'author' => 'Merrick Schaefer, Mark Johnston, Evan Wheeler and Adam Mckaig (at UNICEF)',
 15+ 'description' => 'Adds a category box to the top right of pages',
 16+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Uniwiki/CatBoxAtTop',
 17+ 'svn-date' => '$LastChangedDate',
 18+ 'svn-revision' => '$LastChangedRevision$',
 19+ 'descriptionmsg' => 'catboxattop-desc',
1620 );
1721
 22+$wgExtensionMessagesFiles['CatBoxAtTop'] = dirname( __FILE__ ) . '/CatBoxAtTop.i18n.php';
 23+
1824 /* ---- HOOKS ---- */
 25+$wgHooks['BeforePageDisplay'][] = "UW_CatBoxAtTop_CSS";
 26+$wgHooks['OutputPageBeforeHTML'][] = "UW_CatBoxAtTop_Rejig";
1927
20 -$wgHooks['BeforePageDisplay'][] = "UW_CatBoxAtTop_CSS";
2128 function UW_CatBoxAtTop_CSS (&$out) {
2229 global $wgScriptPath;
2330 $href = "$wgScriptPath/extensions/uniwiki/CatBoxAtTop/style.css";
@@ -24,7 +31,6 @@
2532 return true;
2633 }
2734
28 -$wgHooks['OutputPageBeforeHTML'][] = "UW_CatBoxAtTop_Rejig";
2935 function UW_CatBoxAtTop_Rejig (&$out, &$text) {
3036 global $wgVersion;
3137
Property changes on: trunk/extensions/uniwiki/CatBoxAtTop/CatBoxAtTop.php
___________________________________________________________________
Added: svn:keywords
3238 + LastChangedDate LastChangedRevision

Status & tagging log