Template:Script directionality/doc: Difference between revisions

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'' *''' {{TextDirScript directionality|RTL|none}} || '''''RL-BT''''' {{TextDirScript directionality|RL-BT|none}}|| style="text-align:center;" | – || style="text-align:center;" | – || style="text-align:center;" | '''''RTL''''', '''''R2L''''', '''''right-to-left''''', or '''''leftwards'''''
|-
|colspan="2"| Left-to-right || '''''LR-TB'' *''' {{TextDirScript directionality|LTR|none}} || '''''LR-BT''''' {{TextDirScript directionality|LR-BT|none}}|| style="text-align:center;" | – || style="text-align:center;" | – || style="text-align:center;" | '''''LTR''''', '''''L2R''''', '''''left-to-right''''', or '''''rightwards'''''
|-
|colspan="2"| Top-to-bottom || style="text-align:center;" | – || style="text-align:center;" | – || '''''TB-RL'' *''' {{TextDirScript directionality|TB-RL|none}} || '''''TB-LR''''' {{TextDirScript directionality|TB-LR|none}} || style="text-align:center;" | '''''Vertical'''''
|-
|colspan="2"| Bottom-to-top || style="text-align:center;" | – || style="text-align:center;" | – || '''''BT-RL''''' {{TextDirScript directionality|BT-RL|none}} || '''''BT-LR''''' {{TextDirScript directionality|BT-LR|none}} || style="text-align:center;" |
|-
|colspan="2"| Boustrophedon (RL,LR) || '''''RLR-TB'' *''' {{TextDirScript directionality|RLR-TB|none}} || '''''RLR-BT''''' {{TextDirScript directionality|RLR-BT|none}}|| style="text-align:center;" | – || style="text-align:center;" | – || style="text-align:center;" | '''''Boustrophedon'''''
|-
|colspan="2"| Boustrophedon (LR,RL) || '''''LRL-TB''''' {{TextDirScript directionality|LRL-TB|none}} || '''''LRL-BT''''' {{TextDirScript directionality|LRL-BT|none}}|| style="text-align:center;" | – || style="text-align:center;" | – || style="text-align:center;" |
|-
|colspan="2"| Vertical boustrophedon (TB,BT) || style="text-align:center;" | – || style="text-align:center;" | – || '''''TBT-RL''''' {{TextDirScript directionality|TBT-RL|none}}|| '''''TBT-LR''''' {{TextDirScript directionality|TBT-LR|none}} || style="text-align:center;" |
|-
|colspan="2"| Vertical boustrophedon (BT,TB) || style="text-align:center;" | – || style="text-align:center;" | – || '''''BTB-RL''''' {{TextDirScript directionality|BTB-RL|none}}|| '''''BTB-LR''''' {{TextDirScript directionality|BTB-LR|none}} || style="text-align:center;" |
|-
|colspan="2"| Variable direction || '''''H-TB''''' {{TextDirScript directionality|H-TB|none}} || '''''H-BT''''' {{TextDirScript directionality|H-BT|none}}|| '''''V-RL''''' {{TextDirScript directionality|V-RL|none}}|| '''''V-LR''''' {{TextDirScript directionality|V-LR|none}} || style="text-align:center;" |
|-
!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'' *''' {{TextDirScript directionality|Ck-Out|none}} || colspan="2" align=center| '''''Ck-In'' *''' {{TextDirScript directionality|Ck-In|none}} || style="text-align:center;" | '''''CW-Out''''', and '''''CW-In'''''
|-
|colspan="2"| Withershins || colspan="2" align=center| '''''WS-Out'' *''' {{TextDirScript directionality|WS-Out|none}} || colspan="2" align=center| '''''WS-In'' *''' {{TextDirScript directionality|WS-In|none}} || style="text-align:center;" | '''''AC-Out''''' or '''''CC-Out''''', and '''''AC-In''''' or '''''CC-In'''''
|-
!colspan="2"| !! colspan="5" align=center | Other codes and display
|-
|colspan="2"| Other || colspan="5"| Up-Right-Down: '''''BTRB''''' {{TextDirScript directionality|BTRB|none}}
|-
|colspan="2"| Unsupported (ex. "Wave") || colspan="5"| {{TextDirScript directionality|Wave|}}
|}
 
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}}||{{TextDirScript directionality|LTR|full}}
|<code><nowiki>||none|full</nowiki></code>||{{TextDirScript directionality|historic=LTR||none|full}}
|<code><nowiki>||none|full</nowiki></code>||{{TextDirScript directionality|traditional=LTR||none|full}}
|<code><nowiki>||none|full</nowiki></code>||{{TextDirScript directionality|modern=LTR||none|full}}
|-
|Expanded||{{tlx|TextDir|LTR|exp}}||{{TextDirScript directionality|LTR|exp}}
|<code><nowiki>||none|exp</nowiki></code>||{{TextDirScript directionality|historic=LTR||none|exp}}
|<code><nowiki>||none|exp</nowiki></code>||{{TextDirScript directionality|traditional=LTR||none|exp}}
|<code><nowiki>||none|exp</nowiki></code>||{{TextDirScript directionality|modern=LTR||none|exp}}
|-
|''Short''||{{tlx|TextDir|LTR|short}}||{{TextDirScript directionality|LTR|short}}
|<code><nowiki>||none|short</nowiki></code>||{{TextDirScript directionality|historic=LTR||none|short}}
|<code><nowiki>||none|short</nowiki></code>||{{TextDirScript directionality|traditional=LTR||none|short}}
|<code><nowiki>||none|short</nowiki></code>||{{TextDirScript directionality|modern=LTR||none|short}}
|-
|''In-Line''||{{tlx|TextDir|LTR|words}}||{{TextDirScript directionality|LTR|words}}
|<code><nowiki>||none|words</nowiki></code>||{{TextDirScript directionality|historic=LTR||none|words}}
|<code><nowiki>||none|words</nowiki></code>||{{TextDirScript directionality|traditional=LTR||none|words}}
|<code><nowiki>||none|words</nowiki></code>||{{TextDirScript directionality|modern=LTR||none|words}}
|-
|''Default''||{{tlx|TextDir|LTR|}}||{{TextDirScript directionality|LTR|}}
|<code><nowiki>||none|</nowiki></code>||{{TextDirScript directionality|historic=LTR||none|}}
|<code><nowiki>||none|</nowiki></code>||{{TextDirScript directionality|traditional=LTR||none|}}
|<code><nowiki>||none|</nowiki></code>||{{TextDirScript directionality|modern=LTR||none|}}
|-
|Custom||{{tlx|TextDir|LTR|Your text}}||{{TextDirScript directionality|LTR|Your text}}
|<code><nowiki>||none|Your text</nowiki></code>||{{TextDirScript directionality|historic=LTR||none|Your text}}
|<code><nowiki>||none|Your text</nowiki></code>||{{TextDirScript directionality|traditional=LTR||none|Your text}}
|<code><nowiki>||none|Your text</nowiki></code>||{{TextDirScript directionality|modern=LTR||none|Your text}}
|-
|Blank||{{tlx|TextDir|LTR|none}}||{{TextDirScript directionality|LTR|none}}
|<code><nowiki>||none|none</nowiki></code>||{{TextDirScript directionality|historic=LTR||none|none}}
|<code><nowiki>||none|none</nowiki></code>||{{TextDirScript directionality|traditional=LTR||none|none}}
|<code><nowiki>||none|none</nowiki></code>||{{TextDirScript directionality|modern=LTR||none|none}}
|-
|'''Multiples'''||colspan=8|{{tlx|TextDir|RLR-TB|historic{{=}}LTR|modern{{=}}TB-LR|traditional{{=}}Ck-Out|words|words}} produces {{TextDirScript directionality|RLR-TB|historic=LTR|modern=TB-LR|traditional=Ck-Out|words|words}}
|}
 
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 {{TextDirScript directionality|RLR-TB|full|size=50px}}
 
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 {{TextDirScript directionality|RTL|full|size=0}}
 
===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 {{TextDirScript directionality||traditional=BT-LR|modern=LR-TB|exp}}
 
==Dependent files==