Infosphere:Modifications extension

From The Infosphere, the Futurama Wiki
Revision as of 23:23, 3 March 2010 by Svip (talk | contribs)
Jump to navigation Jump to search
MediaWiki Extension
Infosphere Modifications
CreatorSvip
Latest version1.1.0 (2010-03-03)
DownloadNot available

The Infosphere Modifications MediaWiki extension is a special designed extension for the additional requirements of modifications of the Infosphere to avoid modifying actual MediaWiki code.

Features

Affiliates bar

Added per version 1.0. The "affiliates" list on the Sidebar. It uses the message, MediaWiki:Affiliatesbar to construct a list of titles, links and images to associate with the affiliate in question.

As per Table:Affiliates icons, the very workings of this feature is subject to change in the future.

Natural language list parser function

Added per version 1.1. Added a {{#list}} parser function, it's intention is to create lists intended natural language version of a list of items, e.g. 1, 2, 3, ... n-1 and n.

Use

First parameter
The first parameter is special and is a configuration variable, therefore, two parameters must always be supplied. The first parameter defines whether the list should ignore duplicates or not. Per default it won't. 1 and true are accepted for yes and all others will be assumed to be false.
Ignoring duplicates
{{#list:true|1|2|1|3|1|4}}
{{#list:true|1|2|1|3|1|4}}
Not ignoring duplicates
{{#list:false|1|2|1|3|1|4}}
{{#list:false|1|2|1|3|1|4}}
1 element
The system allows for a single element, in which case, it is simply just return the element.
{{#list:true|1}}
{{#list:true|1}}
2 elements
In this case, the short ' and ' is applied between them, but no commas.
{{#list:true|1|2}}
{{#list:true|1|2}}
3 and more elements
As seen in the examples above. Blank elements are also ignored.
{{#list:true|1|2||4||6}}
{{#list:true|1|2||4||6}}