Difference between revisions of "Infosphere:Modifications extension"
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.0 | |data2=1.1.0 (2010-03-03) | ||
|label3=Download | |label3=Download | ||
|data3=Not available | |data3=Not available | ||
Line 15: | Line 15: | ||
=== Affiliates bar === | === Affiliates bar === | ||
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. | 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 '''<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. | |||
==== 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 23:23, 3 March 2010
MediaWiki Extension | |
Infosphere Modifications | |
---|---|
Creator | Svip |
Latest version | 1.1.0 (2010-03-03) |
Download | Not 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}}