Difference between revisions of "Infosphere:Modifications extension"

From The Infosphere, the Futurama Wiki
Jump to navigation Jump to search
m
Line 5: Line 5:
|data1=[[User:Svip|Svip]]
|data1=[[User:Svip|Svip]]
|label2=Latest version
|label2=Latest version
|data2=1.1.0 (2010-03-03)
|data2=1.1.1 (2010-03-04)
|label3=Download
|label3=Download
|data3=Not available
|data3=Not available
Line 21: Line 21:
=== Natural language list parser function ===
=== Natural language list parser function ===


Added per version 1.1.  Added a '''<nowiki>{{#list}}</nowiki>''' 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.
Added per version 1.1 and removed per version 1.1.1, moved to its own extension, see [http://www.mediawiki.org/wiki/User:Svippong/Natural_language_list_parser_function http://www.mediawiki.org/wiki/User:Svippong/Natural_language_list_parser_function].
 
==== 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:
:<pre>{{#list:true|1|2|1|3|1|4}}</pre>
::{{#list:true|1|2|1|3|1|4}}
;Not ignoring duplicates:
:<pre>{{#list:false|1|2|1|3|1|4}}</pre>
::{{#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.
:<pre>{{#list:true|1}}</pre>
::{{#list:true|1}}
;2 elements
:In this case, the short ' and ' is applied between them, but no commas.
:<pre>{{#list:true|1|2}}</pre>
::{{#list:true|1|2}}
;3 and more elements
:As seen in the examples above. Blank elements are also ignored.
:<pre>{{#list:true|1|2||4||6}}</pre>
::{{#list:true|1|2||4||6}}


[[Category:Meta|Modifications]]
[[Category:Meta|Modifications]]

Revision as of 17:43, 4 March 2010

MediaWiki Extension
Infosphere Modifications
CreatorSvip
Latest version1.1.1 (2010-03-04)
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 and removed per version 1.1.1, moved to its own extension, see http://www.mediawiki.org/wiki/User:Svippong/Natural_language_list_parser_function.