Template:Bdo/doc: Difference between revisions

Jump to navigation Jump to search
Line 59: Line 59:
====<bdi>====
====<bdi>====
The {{tag|bdi|o}} tag is used in the same way, regardless of the text direction of the inserted string.
The {{tag|bdi|o}} tag is used in the same way, regardless of the text direction of the inserted string.
{| border="0"
{| class="wikitable" style="background-color: white;"
| {{tlc|bdi|From left to right}} || → || {{bdi|From left to right}}
|-
|-
| {{tlc|bdi|من اليمين إلى اليسار}} || → || {{bdi|من اليمين إلى اليسار}}
! Case !! What you type !! What you see !! Comments
|-
| rowspan="2" | {{tag|bdi|o}} adapts to <br>the text direction of <br>the enclosed string || {{tlc|bdi|من اليمين إلى اليسار}} || {{bdi|من اليمين إلى اليسار}} || rowspan="2" | Works for both <tt>rtl</tt> and <tt>ltr</tt> input
|-
| {{tlc|bdi|From left to right}} || {{bdi|From left to right}}
|}
|}


Line 69: Line 72:


;<big>Correct</big>
;<big>Correct</big>
{| border="0"
{| class="wikitable" style="background-color: white;"
| {{tlc|bdo|dir{{=}}ltr|From left to right}} || &rarr; || {{bdo|dir=ltr|From left to right}}
|-
! Case !! What you type !! What you see !! Comments
|-
| rowspan="2" | {{tag|bdo|o}} has a preset <br>directional output || {{tlc|bdo|من اليمين إلى اليسار}} || {{bdo|من اليمين إلى اليسار}} || The default direction is <tt>rtl</tt>
|-
|-
| {{tlc|bdo|من اليمين إلى اليسار}} || &rarr; || {{bdo|من اليمين إلى اليسار}}
| {{tlc|bdo|dir{{=}}ltr|From left to right}} || {{bdo|dir=ltr|From left to right}} || <tt>ltr</tt> must be explicitly specified
|}
|}


;<big>Incorrect</big>
;<big>Incorrect</big>
{| border="0"
{| class="wikitable" style="background-color: white;"
| {{tlc|bdo|From left to right}} || &rarr; || {{bdo|From left to right}}
|-
! Case !! What you type !! What you see !! Comments
|-
| rowspan="2" | Wrong value for <br>the {{code|dir}} attribute || {{tlc|bdo|dir{{=}}ltr|من اليمين إلى اليسار}} || {{bdo|dir=ltr|من اليمين إلى اليسار}} || rowspan="2" | The text is displayed backwards ({{tag|bdo|o}} forces the direction)
|-
|-
| {{tlc|bdo|dir{{=}}ltr|من اليمين إلى اليسار}} || &rarr; || {{bdo|dir=ltr|من اليمين إلى اليسار}}
| {{tlc|bdo|From left to right}} || {{bdo|From left to right}}
|}
|}


3,860

edits

Navigation menu