Extension:Wikilog/Configuration

From MediaWiki.org

Jump to: navigation, search
Wikilog.png OverviewFeaturesConfiguration

The following is a list of available configuration options for Wikilog:

Contents

[edit] Tagging entity

[edit] $wgTaggingEntity

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. If not set, feed item tags will be their permanent links.

$wgTaggingEntity = "example.com,2002";

[edit] Cascading style sheets

[edit] $wgWikilogStylePath

Path of Wikilog style and image files.

$wgWikilogStylePath = "$wgScriptPath/extensions/Wikilog/style";

[edit] $wgWikilogStyleVersion

Wikilog style version, incremented when $wgWikilogStylePath/wikilog.css is changed.

$wgWikilogStyleVersion = 2;

[edit] Thresholds

[edit] $wgWikilogSummaryLimit

Maximum number of items in wikilog front page.

$wgWikilogSummaryLimit = $wgFeedLimit;

[edit] $wgWikilogNumArticles

Default number of articles to list on the wikilog front page.

$wgWikilogNumArticles = 20;

[edit] $wgWikilogMaxAuthors

Maximum number of authors of a wikilog post.

$wgWikilogMaxAuthors = 6;

[edit] Editing

[edit] $wgWikilogSignAndPublishDefault

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;

[edit] Categories and tags

[edit] $wgWikilogEnableTags

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;

[edit] $wgWikilogMaxTags

Maximum number of tags in a wikilog post.

$wgWikilogMaxTags = 25;

[edit] Comments

[edit] $wgWikilogEnableComments

Enable wikilog article commenting interface. When disabled, commenting is still possible through article talk pages, like normal wiki pages.

$wgWikilogEnableComments = true;

[edit] $wgWikilogMaxCommentSize

Maximum size, in bytes for wikilog article comments.

$wgWikilogMaxCommentSize = 2048;	// bytes

[edit] $wgWikilogModerateAnonymous

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;

[edit] Syndication feeds

[edit] $wgWikilogFeedClasses

Syndication feed classes. Similar to $wgFeedClasses.

$wgWikilogFeedClasses = array(
	'atom' => 'WlAtomFeed',
	'rss'  => 'WlRSSFeed'
);

[edit] $wgWikilogFeedSummary

Enable or disable output of summary or content in wikilog feeds. At least one of them MUST be true.

$wgWikilogFeedSummary = true;
$wgWikilogFeedContent = true;

[edit] $wgWikilogFeedCategories

Enable output of article categories in wikilog feeds.

$wgWikilogFeedCategories = true;

[edit] $wgWikilogFeedRelated

Enable output of external references in wikilog feeds.

$wgWikilogFeedRelated = false;

[edit] Formatting

[edit] $wgWikilogNavTop, $wgWikilogNavBottom

Navigation bars to show in listing pages.

$wgWikilogNavTop = false;
$wgWikilogNavBottom = true;

[edit] Namespaces

[edit] $wgWikilogNamespaces

Namespaces used for wikilogs.

It is recommended that Wikilog::setupNamespace(...) be used instead of directly adding namespaces to this array.

$wgWikilogNamespaces = array();

[edit] Debugging

[edit] $wgWikilogCloneParser

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 = true;