Template:Bdo/doc: Difference between revisions

Corr.
(Created page with "{{Documentation subpage}} __NOTOC__ ==Usage== {{tlf|'''bdo'''}} is a front-end for the HTML element {{tag|bdo|o}}, which is used to delimit a span of text that has a text dire...")
 
(Corr.)
Line 11: Line 11:
===Syntax===
===Syntax===
The template's syntax is
The template's syntax is
* {{tlc|bdo|''custom text'' |dir=ltr }}
* {{tlc|bdo|''custom text'' |dir{{=}}ltr }}


===Required parameter===
===Required parameter===
Line 27: Line 27:


;Usage
;Usage
* {{tlc|bdo|1|<big>'''dir='''ltr</big>}}
* {{tlc|bdo|1|<big>'''dir{{=}}'''ltr</big>}}


===Available value===
===Available value===
Line 49: Line 49:


===Comparison between &lt;bdi&gt; and &lt;bdo&gt;===
===Comparison between &lt;bdi&gt; and &lt;bdo&gt;===
The {{tag|bdi|o}} tag ''derives'' the direction of the text it encloses from the text itself. You don't include any directional information. The {{tag|bdo|o}} tag, however, ''forces'' the text it encloses to flow in a certain direction, specified through the attribute <code>dir=</code>.
The {{tag|bdi|o}} tag ''derives'' the direction of the text it encloses from the text itself. You don't include any directional information. The {{tag|bdo|o}} tag, however, ''forces'' the text it encloses to flow in a certain direction, specified through the attribute <code>dir{{=}}</code>.


Because of that, {{tl|bdo}} shouldn't be used in cases where the direction of the inserted text is unknown, but is a good alternative if {{tl|bdi}} fails to derive the direction.
Because of that, {{tl|bdo}} shouldn't be used in cases where the direction of the inserted text is unknown, but is a good alternative if {{tl|bdi}} fails to derive the direction.
Line 61: Line 61:


====&lt;bdo&gt;====
====&lt;bdo&gt;====
The {{tag|bdo|o}} tag may make the text virtually unreadable, if used incorrectly. Mind the <code>dir=</code>.
The {{tag|bdo|o}} tag may make the text virtually unreadable, if used incorrectly. Mind the <code>dir{{=}}</code>.


;<big>Incorrect</big>
;<big>Incorrect</big>
Line 67: Line 67:
| {{tlc|bdo|From left to right}} || &rarr; || {{bdo|From left to right}}
| {{tlc|bdo|From left to right}} || &rarr; || {{bdo|From left to right}}
|-
|-
| {{tlc|bdo|dir=ltr|من اليمين إلى اليسار}} || &rarr; || {{bdo|dir=ltr|من اليمين إلى اليسار}}
| {{tlc|bdo|dir{{=}}ltr|من اليمين إلى اليسار}} || &rarr; || {{bdo|dir=ltr|من اليمين إلى اليسار}}
|}
|}


;<big>Correct</big>
;<big>Correct</big>
{| border="0"
{| border="0"
| {{tlc|bdo|dir=ltr|From left to right}} || &rarr; || {{bdo|dir=ltr|From left to right}}
| {{tlc|bdo|dir{{=}}ltr|From left to right}} || &rarr; || {{bdo|dir=ltr|From left to right}}
|-
|-
| {{tlc|bdo|من اليمين إلى اليسار}} || &rarr; || {{bdo|من اليمين إلى اليسار}}
| {{tlc|bdo|من اليمين إلى اليسار}} || &rarr; || {{bdo|من اليمين إلى اليسار}}
3,860

edits