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