-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathWikilogDefaultSettings.php
250 lines (213 loc) · 7.43 KB
/
WikilogDefaultSettings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<?php
/**
* MediaWiki Wikilog extension
* Copyright © 2008-2010 Juliano F. Ravasi
* http://www.mediawiki.org/wiki/Extension:Wikilog
*
* This program 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.
*
* This program 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.
*
* You should have received 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.
* http://www.gnu.org/copyleft/gpl.html
*/
/**
* @file
* @ingroup Extensions
* @author Juliano F. Ravasi < dev juliano info >
*/
if ( !defined( 'MEDIAWIKI' ) )
die();
/**
* --- DO NOT MAKE CHANGES TO THESE VALUES ---
*
* In order to configure the extension, copy the variables you want to change
* to your LocalSettings.php file, and change them there, not here.
*/
/* *** Tagging entity *** */
/**
* A string in the format "example.org,date", according to RFC 4151, that will
* be used as taggingEntity in order to create feed item tags.
*/
$wgTaggingEntity = false;
/* *** Cascading style sheets *** */
/**
* Path of Wikilog style and image files.
* Defaults to "$wgScriptPath/extensions/Wikilog/style".
*/
$wgWikilogStylePath = false;
/* *** Presentation options *** */
/**
* Maximum number of articles to display in wikilog front pages, or comments
* in article discussion pages.
*
* Each article and comment is stored as a wiki page and, in order to
* display them, they may need to be parsed (if they are not cached) which
* is a little expensive. So, the number of articles or comments to show
* per page is limited by this variable, which has the same purpose of
* $wgFeedLimit and thus inherits its value by default.
*
* A good value is 50. More than this not only impacts performance, it
* allows long pages of articles or comments that has little value over
* smaller pages.
*
* @note This variable replaced the older $wgWikilogSummaryLimit.
* @since Wikilog v1.1.0.
*/
$wgWikilogExpensiveLimit = $wgFeedLimit;
/**
* Default number of articles to list in the wikilog front page and in
* Special:Wikilog.
*/
$wgWikilogNumArticles = 20;
/**
* Default number of comments to list in wikilog comment pages.
* @since Wikilog v1.1.0.
*/
$wgWikilogNumComments = 50;
/**
* Allow listing of categories and tags for each article in the wikilog
* front page and in Special:Wikilog, in the header and footer of each entry.
* This is a little expensive and not used by default, so it is disabled.
*
* After enabling this option, system messages 'wikilog-summary-header',
* 'wikilog-summary-footer', 'wikilog-summary-header-single' and
* 'wikilog-summary-footer-single' should be modified to include parameters
* $11 - $14.
*
* @since Wikilog v1.1.0.
*/
$wgWikilogExtSummaries = false;
/**
* Date format to use for entries and comments
* Should be set to one of MW date format options, for example 'ymd hms'
* (see $datePreferences in languages/messages/Messages??.php)
*/
$wgWikilogPagerDateFormat = false;
/**
* Default value for "not in category" field
* You can set for example to some "Hidden" category so your users
* can "soft-hide" some of their entries in the aggregated view
*/
$wgWikilogDefaultNotCategory = false;
/**
* Use drop-down selectboxes for "Wikilog", "Author" and "Category" fields
* on Special:Wikilog (turn them off with 'false')
*/
$wgWikilogSearchDropdowns = true;
/* *** Editing *** */
/**
* Publish new articles by default. When creating new wikilog articles,
* if this variable is set to true, the default value of the "Sign and
* publish this article" checkbox will be checked, which means that saving
* the article will automatically sign and publish it. In order to save
* the article as draft, the user would have to uncheck the box before
* saving.
* @since Wikilog v1.0.1.
*/
$wgWikilogSignAndPublishDefault = false;
/* *** Authors *** */
/**
* Maximum number of authors of a wikilog article.
*/
$wgWikilogMaxAuthors = 6;
/* *** Categories and tags *** */
/**
* Enable use of tags. This is disabled by default since MediaWiki category
* system already provides similar functionality, and are the preferred way
* of organizing wikilog posts. Enable this if you want or need an additional
* mechanism for organizing that is independent from categories, and specific
* for wikilog posts.
*
* Even if disabled, tags are still recorded. This configuration only affects
* the ability of performing queries based on tags. This is so that it could
* be enabled and disabled without having to perform maintenance on the
* database.
*/
$wgWikilogEnableTags = false;
/**
* Maximum number of tags in a wikilog post.
*/
$wgWikilogMaxTags = 25;
/* *** Comments *** */
/**
* Enable wikilog article commenting interface. When disabled, commenting is
* still possible through article talk pages, like normal wiki pages.
*/
$wgWikilogEnableComments = true;
/**
* Set to array(NS_TALK => true, NS_<something>_TALK => true)
* to enable threaded Wikilog-style comments in these namespaces,
* in addition to blog namespace comments.
*
* Set to boolean 'true' to enable such comments in ALL Talk namespaces.
*/
$wgWikilogCommentNamespaces = array();
/**
* Show existing comments on each item page just below the post content
*
* Turn off with 'false'
* Enable in select namespaces with array(NS_... => true)
* Enable everywhere with 'true'
*/
$wgWikilogCommentsOnItemPage = array();
/**
* Maximum size for wikilog article comments, in bytes.
*/
$wgWikilogMaxCommentSize = 0x7FFFFFFF; // bytes
/**
* Moderation options for comments. When set to true, new comments by anonymous
* users will be placed in a pending state until someone with 'wl-moderation'
* right approves it.
*
* @note No option of moderation for logged-in users is provided, it doesn't
* make a lot of sense for a wiki. If this is your case, check if what you
* need isn't better accomplished with user rights or anti-spam filters.
*/
$wgWikilogModerateAnonymous = false;
/* *** Syndication feeds *** */
/**
* Syndication feed classes. Similar to $wgFeedClasses.
*/
$wgWikilogFeedClasses = array(
'atom' => 'WlAtomFeed',
'rss' => 'WlRSSFeed'
);
/**
* Enable or disable output of summary or content in wikilog feeds. At least
* one of them MUST be true.
*/
$wgWikilogFeedSummary = true;
$wgWikilogFeedContent = true;
/**
* Enable output of article categories in wikilog feeds.
*/
$wgWikilogFeedCategories = true;
/**
* Enable output of external references in wikilog feeds.
*/
$wgWikilogFeedRelated = false;
/* *** Namespaces *** */
/**
* Namespaces used for wikilogs.
*/
$wgWikilogNamespaces = array();
/* *** Debugging *** */
/**
* Use a clone of the global parser object instead of creating a new instance.
*
* Optimally this setting would be disabled by default, since the parser is
* not designed to be cloned. Such usage may cause problems. But there are
* many broken extensions that don't properly initialize a second parser
* instance that is needed for parsing articles for syndication feeds. The
* default is to clone since this seems to work better.
*/
$wgWikilogCloneParser = false;