mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 23:05:31 +00:00
ad919e3730
* These files were generated with the script in I3623e42d4cad7975813892a8f0f7765b74a638c5 * These styles mimic the behavior of Language::formatNumNoSeparators and Language::localizeSeparators used by a couple of methods. ReferencesFormatter:referencesFormatEntryNumericBacklinkLabel calls ReferenceMessageLocalizer::localizeDigits which calls that core Language method. FootnoteMarkFormatter::linkRef calls localizeDigits as well. - '.reference a*' CSS rules mimic linkRef localization - 'span[rel="mw:referencedBy" ]*' rule mimics localization of referencesFormatEntryNumericBacklinkLabel * Overrode all hand-crafted language CSS files from previous patches. The content of some of those hand-crafted CSS files will end up in those wikipedia's Common.css -- specifically for es, fr, sv wikipedias. sv and es have non-canonical formatting strings that aren't handled by the script right now and so leaving them behind. I need to look at fr output more carefully, so leaving that behind as well. But the generated ones are more accurate when combined with the wiki-specific CSS files genreated by the other script that processes site messages. * Some files could potentially be removed by looking at language fallback chains, but the redundancy is not a problem for now. * Tweak the resource loader script to use "_" instead of "-" when looking for a resource file. Bug: T156350 Change-Id: I000b4538bf2be681b85df5813efed083458a4281
17 lines
444 B
CSS
17 lines
444 B
CSS
@counter-style lzh-counter {
|
||
system: numeric;
|
||
symbols: '〇' '一' '二' '三' '四' '五' '六' '七' '八' '九';
|
||
}
|
||
|
||
.mw-ref a:after {
|
||
content: '[' counter( mw-Ref, lzh-counter ) ']';
|
||
}
|
||
|
||
.mw-ref a[ data-mw-group ]:after {
|
||
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, lzh-counter ) ']';
|
||
}
|
||
|
||
span[ rel='mw:referencedBy' ] a:before {
|
||
content: counter( mw-references, lzh-counter ) '點' counter( mw-ref-linkback, lzh-counter );
|
||
}
|