r23062 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23061‎ | r23062 | r23063 >
Date:08:55, 18 June 2007
Author:robchurch
Status:old
Tags:
Comment:
* Remove un-needed escaping from Dutch messages (thanks to Bart van Bragt who spotted this)
* Rename readme file to...README
Modified paths:
  • /trunk/extensions/NewestPages/NewestPages (deleted) (history)
  • /trunk/extensions/NewestPages/NewestPages.i18n.php (modified) (history)
  • /trunk/extensions/NewestPages/README (added) (history)
  • /trunk/extensions/NewestPages/README (added) (history)

Diff [purge]

Index: trunk/extensions/NewestPages/NewestPages
@@ -1,135 +0,0 @@
2 -NEWEST PAGES EXTENSION
3 -
4 - Version 1.6
5 - © 2006 Rob Church
6 -
7 -This is free software licensed under the GNU General Public Licence. Please
8 -see http://www.gnu.org/copyleft/gpl.html for further details, including the
9 -full text and terms of the licence.
10 -
11 -== Overview ==
12 -
13 -1. Introduction
14 -2. Installing the extension
15 -3. Accessing the special page
16 -4. Including the special page
17 -5. Customising the interface text
18 -6. Customising extension behaviour
19 -7. Notes
20 -8. Change log
21 -
22 -== 1. Introduction ==
23 -
24 -The Newest Pages extension adds an includable special page to MediaWiki which
25 -produces an ordered list of the newest pages in the wiki, up to a specified
26 -limit. The page can be accessed as a regular special page, or included within
27 -other pages as a form of dynamic list.
28 -
29 -== 2. Installing the extension ==
30 -
31 -To install the Newest Pages extension, first upload/copy the extension files
32 -NewestPages.php and NewestPages.i18n.php into your MediaWiki extensions directory.
33 -Then edit your LocalSettings.php file and add the following line:
34 -
35 - require_once( 'extensions/NewestPages.php' );
36 -
37 -Save the file to complete the installation.
38 -
39 -== 3. Accessing the special page ==
40 -
41 -To access the special page in the regular view mode, go to Special:Newestpages
42 -on your wiki, or select it from the list of special pages.
43 -
44 -The page has a default limit of 50 items, which can be customised using the
45 -supplied limit links, or with the 'limit' parameter in the page URL.
46 -
47 -To filter according to namespace, use the namespace selector and click Go, or
48 -alter the 'namespace' parameter in the page URL.
49 -
50 -You can opt to exclude redirect pages from the results using the "show/hide
51 -redirects" links at the top of the page.
52 -
53 -== 4. Including the special page ==
54 -
55 -To include the special page into another page, add the following wiki markup
56 -to that page:
57 -
58 - {{Special:Newestpages}}
59 -
60 -This will be replaced with a list when the containing page is rendered. To
61 -customise the limit here, use the following syntax:
62 -
63 - {{Special:Newestpages/X}}
64 -
65 -where X is the desired limit. To set the namespace to be used, pass this
66 -instead, e.g.
67 -
68 - {{Special:Newestpages/User}}
69 -
70 -would show the newest pages in the user namespace. Use - to select the main
71 -namespace. To select a namespace AND set a limit, use syntax similar to the
72 -following:
73 -
74 - {{Special:Newestpages/User/5}}
75 - {{Special:Newestpages/5/User}}
76 -
77 -== 5. Customising the interface text ==
78 -
79 -All interface text used in the Newest Pages extension is customisable via
80 -the MediaWiki namespace. See Special:Allmessages for a list of customisable
81 -interface messages in the wiki.
82 -
83 -== 6. Customising extension behaviour ==
84 -
85 -The default page limit for the extension can be altered using the
86 -$wgNewestPagesLimit variable, e.g.
87 -
88 - $wgNewestPagesLimit = 500;
89 -
90 -sets the default limit to be 500. This should be set after the call
91 -to include the extension file. The default remains at 50 pages, and there
92 -is an absolute limit of 5000 pages, to avoid crippling the database server(s).
93 -
94 -== 7. Notes ==
95 -
96 -This extension was written in a much more specific form to serve the needs of a
97 -user in the #mediawiki IRC channel. Following a second request for a similar
98 -page, I decided to clean up the code, give the page a more generalised function,
99 -and release it.
100 -
101 -Feedback welcomed at <robchur@gmail.com> as usual.
102 -
103 -== 8. Change log ==
104 -
105 -15/04/2006
106 -Version 1.0
107 - * Initial release
108 -
109 -30/04/2006
110 -Version 1.1
111 - * Fix issues when using a table prefix
112 -
113 -13/05/2006
114 -Version 1.2
115 - * Moved internationalisation into a separate file
116 - * Add absolute limit of 5000 pages, for performance
117 - * Allow the default limit to be customised
118 -
119 -13/05/2006
120 -Version 1.3
121 - * Allow the namespace to be customised
122 -
123 -12/07/2006
124 -Version 1.4
125 - * Backwards-compatible support for class autoloading with 1.7.0+
126 - * Expose namespace filtering when in normal view mode
127 -
128 -17/08/2006
129 -Version 1.5
130 - * Wrap links to redirect pages in <span class="allpagesredirect">
131 - * Changes to default message text
132 -
133 -27/08/2006
134 -Version 1.6
135 - * Allow user to exclude redirects from results
136 - * Minor tweaks to HTML
\ No newline at end of file
Index: trunk/extensions/NewestPages/NewestPages.i18n.php
@@ -95,14 +95,14 @@
9696 'newestpages-hideredir' => 'Nascondi i redirect',
9797 ),
9898
99 -/* nld / Dutch (Siebrand Mazeland) */
 99+/* Dutch (Siebrand Mazeland) */
100100 'nl' => array(
101101 'newestpages' => 'Nieuwe pagina\'s',
102 -'newestpages-header' => "'''Op deze pagina staan de $1 meest recent aangemaakte pagina\'s van deze wiki.'''",
 102+'newestpages-header' => "'''Op deze pagina staan de $1 meest recent aangemaakte pagina's van deze wiki.'''",
103103 'newestpages-limitlinks' => 'Toon maximaal $1 pagina\'s',
104104 'newestpages-namespace' => 'Naamruimte:',
105105 'newestpages-none' => 'Geen resultaten.',
106 -'newestpages-ns-header' => "'''Deze pagina geeft de $1 meest recente aangemaakte pagina\'s weer in de naamruimte $2.'''",
 106+'newestpages-ns-header' => "'''Deze pagina geeft de $1 meest recente aangemaakte pagina's weer in de naamruimte $2.'''",
107107 'newestpages-showing' => 'De $1 meest recente pagina\'s worden getoond:',
108108 'newestpages-submit' => 'OK',
109109 'newestpages-showredir' => 'Toon redirects',
Index: trunk/extensions/NewestPages/README
@@ -0,0 +1,135 @@
 2+NEWEST PAGES EXTENSION
 3+
 4+ Version 1.6
 5+ © 2006 Rob Church
 6+
 7+This is free software licensed under the GNU General Public Licence. Please
 8+see http://www.gnu.org/copyleft/gpl.html for further details, including the
 9+full text and terms of the licence.
 10+
 11+== Overview ==
 12+
 13+1. Introduction
 14+2. Installing the extension
 15+3. Accessing the special page
 16+4. Including the special page
 17+5. Customising the interface text
 18+6. Customising extension behaviour
 19+7. Notes
 20+8. Change log
 21+
 22+== 1. Introduction ==
 23+
 24+The Newest Pages extension adds an includable special page to MediaWiki which
 25+produces an ordered list of the newest pages in the wiki, up to a specified
 26+limit. The page can be accessed as a regular special page, or included within
 27+other pages as a form of dynamic list.
 28+
 29+== 2. Installing the extension ==
 30+
 31+To install the Newest Pages extension, first upload/copy the extension files
 32+NewestPages.php and NewestPages.i18n.php into your MediaWiki extensions directory.
 33+Then edit your LocalSettings.php file and add the following line:
 34+
 35+ require_once( 'extensions/NewestPages.php' );
 36+
 37+Save the file to complete the installation.
 38+
 39+== 3. Accessing the special page ==
 40+
 41+To access the special page in the regular view mode, go to Special:Newestpages
 42+on your wiki, or select it from the list of special pages.
 43+
 44+The page has a default limit of 50 items, which can be customised using the
 45+supplied limit links, or with the 'limit' parameter in the page URL.
 46+
 47+To filter according to namespace, use the namespace selector and click Go, or
 48+alter the 'namespace' parameter in the page URL.
 49+
 50+You can opt to exclude redirect pages from the results using the "show/hide
 51+redirects" links at the top of the page.
 52+
 53+== 4. Including the special page ==
 54+
 55+To include the special page into another page, add the following wiki markup
 56+to that page:
 57+
 58+ {{Special:Newestpages}}
 59+
 60+This will be replaced with a list when the containing page is rendered. To
 61+customise the limit here, use the following syntax:
 62+
 63+ {{Special:Newestpages/X}}
 64+
 65+where X is the desired limit. To set the namespace to be used, pass this
 66+instead, e.g.
 67+
 68+ {{Special:Newestpages/User}}
 69+
 70+would show the newest pages in the user namespace. Use - to select the main
 71+namespace. To select a namespace AND set a limit, use syntax similar to the
 72+following:
 73+
 74+ {{Special:Newestpages/User/5}}
 75+ {{Special:Newestpages/5/User}}
 76+
 77+== 5. Customising the interface text ==
 78+
 79+All interface text used in the Newest Pages extension is customisable via
 80+the MediaWiki namespace. See Special:Allmessages for a list of customisable
 81+interface messages in the wiki.
 82+
 83+== 6. Customising extension behaviour ==
 84+
 85+The default page limit for the extension can be altered using the
 86+$wgNewestPagesLimit variable, e.g.
 87+
 88+ $wgNewestPagesLimit = 500;
 89+
 90+sets the default limit to be 500. This should be set after the call
 91+to include the extension file. The default remains at 50 pages, and there
 92+is an absolute limit of 5000 pages, to avoid crippling the database server(s).
 93+
 94+== 7. Notes ==
 95+
 96+This extension was written in a much more specific form to serve the needs of a
 97+user in the #mediawiki IRC channel. Following a second request for a similar
 98+page, I decided to clean up the code, give the page a more generalised function,
 99+and release it.
 100+
 101+Feedback welcomed at <robchur@gmail.com> as usual.
 102+
 103+== 8. Change log ==
 104+
 105+15/04/2006
 106+Version 1.0
 107+ * Initial release
 108+
 109+30/04/2006
 110+Version 1.1
 111+ * Fix issues when using a table prefix
 112+
 113+13/05/2006
 114+Version 1.2
 115+ * Moved internationalisation into a separate file
 116+ * Add absolute limit of 5000 pages, for performance
 117+ * Allow the default limit to be customised
 118+
 119+13/05/2006
 120+Version 1.3
 121+ * Allow the namespace to be customised
 122+
 123+12/07/2006
 124+Version 1.4
 125+ * Backwards-compatible support for class autoloading with 1.7.0+
 126+ * Expose namespace filtering when in normal view mode
 127+
 128+17/08/2006
 129+Version 1.5
 130+ * Wrap links to redirect pages in <span class="allpagesredirect">
 131+ * Changes to default message text
 132+
 133+27/08/2006
 134+Version 1.6
 135+ * Allow user to exclude redirects from results
 136+ * Minor tweaks to HTML
\ No newline at end of file
Property changes on: trunk/extensions/NewestPages/README
___________________________________________________________________
Added: svn:eol-style
1137 + native

Status & tagging log