Difference between revisions of "Infosphere:Modifications extension"

From The Infosphere, the Futurama Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
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.3 (2010-04-06)
|label3=Download
|label3=Download
|data3=Not available
|data3=Not available
Line 17: Line 17:
Added per version 1.0.  The "affiliates" list on the [[mw:Manual:Interface/Sidebar|Sidebar]].  It uses the message, [[MediaWiki:Affiliatesbar]] to construct a list of titles, links and images to associate with the affiliate in question.
Added per version 1.0.  The "affiliates" list on the [[mw:Manual:Interface/Sidebar|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.
Per version 1.2, the workings changed to allow for a more sophisticated listing (as shown on the right) as well as configuring the bottom symbols (see [[Table:Affiliates icons]] for more information.


=== Natural language list parser function ===
=== Quantcast ===


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.3, this adds the [http://www.quantcast.com/ Quantcast] analytics tag to the bottom. It is similar to [[mw:Extension:GoogleAnalytics|Extension:GoogleAnalytics]].


==== Use ====
=== Natural language list parser function ===
 
;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
Added per version 1.1 and removed per version 1.1.1, moved to its own extension, see [[mw:Extension:NaturalLanguageList|Extension:NaturalLanguageList]] on [[mw:|MediaWiki's own wiki]].
: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]]

Latest revision as of 19:56, 6 April 2010

MediaWiki Extension
Infosphere Modifications
CreatorSvip
Latest version1.3 (2010-04-06)
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.

Per version 1.2, the workings changed to allow for a more sophisticated listing (as shown on the right) as well as configuring the bottom symbols (see Table:Affiliates icons for more information.

Quantcast

Added per version 1.3, this adds the Quantcast analytics tag to the bottom. It is similar to Extension:GoogleAnalytics.

Natural language list parser function

Added per version 1.1 and removed per version 1.1.1, moved to its own extension, see Extension:NaturalLanguageList on MediaWiki's own wiki.