Content deleted Content added
m DePiep moved page Template:TextDir/doc to Template:Script directionality/doc: follow parent |
No edit summary |
||
Line 17:
| '''Word:''' || style="text-align:right;" | '''Line:''' || style="text-align:center;" | Down || style="text-align:center;" | Up || style="text-align:center;" | Left || style="text-align:center;" | Right || style="text-align:center;" | Alternate codes (matches '''*''' code)
|-
|colspan="2"| Right-to-left || '''''RL-TB'' *''' {{
|-
|colspan="2"| Left-to-right || '''''LR-TB'' *''' {{
|-
|colspan="2"| Top-to-bottom || style="text-align:center;" | – || style="text-align:center;" | – || '''''TB-RL'' *''' {{
|-
|colspan="2"| Bottom-to-top || style="text-align:center;" | – || style="text-align:center;" | – || '''''BT-RL''''' {{
|-
|colspan="2"| Boustrophedon (RL,LR) || '''''RLR-TB'' *''' {{
|-
|colspan="2"| Boustrophedon (LR,RL) || '''''LRL-TB''''' {{
|-
|colspan="2"| Vertical boustrophedon (TB,BT) || style="text-align:center;" | – || style="text-align:center;" | – || '''''TBT-RL''''' {{
|-
|colspan="2"| Vertical boustrophedon (BT,TB) || style="text-align:center;" | – || style="text-align:center;" | – || '''''BTB-RL''''' {{
|-
|colspan="2"| Variable direction || '''''H-TB''''' {{
|-
!colspan="2"| !! colspan="4"| Swirls
Line 39:
|colspan="2"| || colspan="2" align=center| Outwards || colspan="2" align=center| Inwards || style="text-align:center;" | Alternate codes (matches '''*''' code)
|-
|colspan="2"| Clockwise || colspan="2" align=center| '''''Ck-Out'' *''' {{
|-
|colspan="2"| Withershins || colspan="2" align=center| '''''WS-Out'' *''' {{
|-
!colspan="2"| !! colspan="5" align=center | Other codes and display
|-
|colspan="2"| Other || colspan="5"| Up-Right-Down: '''''BTRB''''' {{
|-
|colspan="2"| Unsupported (ex. "Wave") || colspan="5"| {{
|}
Line 61:
!Style!!direction!!DirText produces!!<nowiki>TextDir|historic=LTR</nowiki>!!LabelText produces!!<nowiki>TextDir|traditional=LTR</nowiki>!!LabelText produces!!<nowiki>TextDir|modern=LTR</nowiki>!!LabelText produces
|-
|Full||{{tlx|TextDir|LTR|full}}||{{
|<code><nowiki>||none|full</nowiki></code>||{{
|<code><nowiki>||none|full</nowiki></code>||{{
|<code><nowiki>||none|full</nowiki></code>||{{
|-
|Expanded||{{tlx|TextDir|LTR|exp}}||{{
|<code><nowiki>||none|exp</nowiki></code>||{{
|<code><nowiki>||none|exp</nowiki></code>||{{
|<code><nowiki>||none|exp</nowiki></code>||{{
|-
|''Short''||{{tlx|TextDir|LTR|short}}||{{
|<code><nowiki>||none|short</nowiki></code>||{{
|<code><nowiki>||none|short</nowiki></code>||{{
|<code><nowiki>||none|short</nowiki></code>||{{
|-
|''In-Line''||{{tlx|TextDir|LTR|words}}||{{
|<code><nowiki>||none|words</nowiki></code>||{{
|<code><nowiki>||none|words</nowiki></code>||{{
|<code><nowiki>||none|words</nowiki></code>||{{
|-
|''Default''||{{tlx|TextDir|LTR|}}||{{
|<code><nowiki>||none|</nowiki></code>||{{
|<code><nowiki>||none|</nowiki></code>||{{
|<code><nowiki>||none|</nowiki></code>||{{
|-
|Custom||{{tlx|TextDir|LTR|Your text}}||{{
|<code><nowiki>||none|Your text</nowiki></code>||{{
|<code><nowiki>||none|Your text</nowiki></code>||{{
|<code><nowiki>||none|Your text</nowiki></code>||{{
|-
|Blank||{{tlx|TextDir|LTR|none}}||{{
|<code><nowiki>||none|none</nowiki></code>||{{
|<code><nowiki>||none|none</nowiki></code>||{{
|<code><nowiki>||none|none</nowiki></code>||{{
|-
|'''Multiples'''||colspan=8|{{tlx|TextDir|RLR-TB|historic{{=}}LTR|modern{{=}}TB-LR|traditional{{=}}Ck-Out|words|words}} produces {{
|}
Line 105:
The size of the graphic can be controlled using the ''size'' field. Unlike ''direction'' and ''text'', the size field must be explicitly called with "size=". Since the icons are square, the image size can be set to a one-dimensional pixel value that corresponds to both the width and height. The size parameter does not effect the "?" of undefined text directions, except size=0 (see below). The default value is size=20px, for use in running text.
Example: {{tlx|TextDir||RLR-TB|full|size=50px}} produces {{
The size field can also be set to "0" (zero) or "0px" in order to render only the directional text. This will also blank the "?" of an undefined text direction.
Example: {{tlx|TextDir||RTL|full|size=0}} produces {{
===Historic, Traditional, and Modern fields===
Line 115:
The fields ''historic, traditional,'' and ''modern'' can be used to generate multiple labeled directionalities in addition to a single unlabeled one. ''Historic, traditional,'' and ''modern'' take the same values as the [[#Values for Direction field|direction field, above]]. A blank direction field should be included if the [[#Values for DirText and LabelText fields|Values for DirText field]] and [[#Values for DirText and LabelText fields|Values for LabelText field]], above are used, as the first unlabeled field will not be interpreted as those fields. Unless the ''historic, traditional,'' and ''modern'' fields are defined, the third unlabeled field will not be interpreted.
Example: {{tlx|TextDir|||traditional=BT-LR|modern=LR-TB|exp}} produces {{
==Dependent files==
|