CSS Customization and numbering system

Interesting feature, but I think it should depend on the locale users have set. Any opinions if this should be a core feature or that it should be added with an extension (UserLangCSS)? Niklas?

Siebrand15:58, 16 August 2010

It will be better if this option added in core's language supports(I think both CSS3 and Javascript modification is needed for that).

for example users in our wiki must using this ۱۲۳۴... number, but when they used # for making numbered list(before my patch), their result was 1. 2. 3. 4. .... I think this feature is needed for all persian mediawiki wikis.(specialy when result of {{formatnum:123}} is ۱۲۳ in this wikis!)

ebraminiotalk16:46, 16 August 2010
 

seems there is not a good javascript way, without converting ol tag to other thing! curently I found a javascript code that converted "ol" to "span" for showing numbers correctly! so CSS3 is only remaining way for this job.

I think ability of modifying a CSS for translators may sufficient in this case. (mediawiki:localtrans.css or something else)

ebraminiotalk17:35, 16 August 2010
Edited by another user.
Last edit: 19:55, 16 August 2010

For now it's easier to add them manually in the core stylesheets (probably restricted just to content with suitable language code).

Nike18:44, 16 August 2010
ebraminiotalk09:42, 17 August 2010

Waiting for Niklas with a final recommendation, but the mentioned CSS pages are exported, so please *DO NOT CHANGE THOSE*.

Siebrand12:06, 17 August 2010

yes i know!!! that was a question!

ebraminiotalk13:17, 17 August 2010
 

Well I had ideas like have items like these in shared.css:

lang[fa] ol { list-style-type: -moz-persian; list-style-type: persian; }
lang[..] ...

Or alternatively including them with the generated dynamic css. Is there a list of languages codes and which list-style they would like to use?

Nike15:59, 31 August 2010

I have not that list, but we must see which languages use other number type (output of {{formatnum:123}}), I know fa, mzn, glk must use persian, and ckb must use arabic-indic. also we can see mediawiki sources ($digitTransformTable part) for that.

ebraminiotalk00:27, 3 September 2010
 
 

AryehGregor> Nikerabbit, the CSS :lang() selector is probably supported by all UAs that support funny numbering schemes, so rules like li:lang(fa) { list-style-type: persian } in shared.css seem like the best way to do it.

Nike16:38, 31 August 2010