I have an RTL (Hebrew) 1.34.0, principally all-core MediaWiki website with the following Template:Cite
:
<includeonly>{{#if:{{{refname|}}} | {{#tag:ref|{{{content|}}}|name={{{refname}}}}} | {{#tag:ref|{{{content|}}}}} }}</includeonly>
It works fine both for unnamed calls and named calls (calls that don't have an HTML name
attribute, or, calls that do have it) and it also works well for calls by name
.
And yet I have the problem that brackets ([]
) appear flipped (][
);
Output examples:
בדיקה:Cite with parameter calls WITHOUT English naming
First check]1[ Second check]2[ Third check]3[
- ^ First check
- ^ Second check
- ^ Third check
בדיקה:Cite with parameter calls WITH English naming
First check]1[ Second check]2[ Third check]2[
- ^ First check
- ^ לקפוץ מעלה אל:2.0 2.1 Second check
This front-end problem persists even with the radical JavaScript executed in browser console:
document.querySelectorAll("*").forEach( (element)=>{ element.setAttribute('dir', 'ltr') } )
Why brackets ([]) are flipped (][) in an RTL website?