.mw-ref > a::after { content: '[' counter( mw-Ref, lao ) ']'; } .mw-ref > a[ data-mw-group ]::after { content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, lao ) ']'; } span[ rel='mw:referencedBy' ] > a::before { content: counter( mw-references, lao ) '.' counter( mw-ref-linkback, lao ); }