Content deleted Content added
No edit summary |
No edit summary |
||
Line 2:
The template looks for a text-direction image that matches the directionality provided in the template call. It also provides standard abbreviations or descriptions for the given directionality.
* <code>{{tlx|
<!--===Automatic script direction categories and ''nocat'' field===
Line 59:
{| class="wikitable"
!Style!!direction!!DirText produces!!<nowiki>
|-
|Full||{{tlx|
|<code><nowiki>||none|full</nowiki></code>||{{Script directionality|historic=LTR||none|full}}
|<code><nowiki>||none|full</nowiki></code>||{{Script directionality|traditional=LTR||none|full}}
|<code><nowiki>||none|full</nowiki></code>||{{Script directionality|modern=LTR||none|full}}
|-
|Expanded||{{tlx|
|<code><nowiki>||none|exp</nowiki></code>||{{Script directionality|historic=LTR||none|exp}}
|<code><nowiki>||none|exp</nowiki></code>||{{Script directionality|traditional=LTR||none|exp}}
|<code><nowiki>||none|exp</nowiki></code>||{{Script directionality|modern=LTR||none|exp}}
|-
|''Short''||{{tlx|
|<code><nowiki>||none|short</nowiki></code>||{{Script directionality|historic=LTR||none|short}}
|<code><nowiki>||none|short</nowiki></code>||{{Script directionality|traditional=LTR||none|short}}
|<code><nowiki>||none|short</nowiki></code>||{{Script directionality|modern=LTR||none|short}}
|-
|''In-Line''||{{tlx|
|<code><nowiki>||none|words</nowiki></code>||{{Script directionality|historic=LTR||none|words}}
|<code><nowiki>||none|words</nowiki></code>||{{Script directionality|traditional=LTR||none|words}}
|<code><nowiki>||none|words</nowiki></code>||{{Script directionality|modern=LTR||none|words}}
|-
|''Default''||{{tlx|
|<code><nowiki>||none|</nowiki></code>||{{Script directionality|historic=LTR||none|}}
|<code><nowiki>||none|</nowiki></code>||{{Script directionality|traditional=LTR||none|}}
|<code><nowiki>||none|</nowiki></code>||{{Script directionality|modern=LTR||none|}}
|-
|Custom||{{tlx|
|<code><nowiki>||none|Your text</nowiki></code>||{{Script directionality|historic=LTR||none|Your text}}
|<code><nowiki>||none|Your text</nowiki></code>||{{Script directionality|traditional=LTR||none|Your text}}
|<code><nowiki>||none|Your text</nowiki></code>||{{Script directionality|modern=LTR||none|Your text}}
|-
|Blank||{{tlx|
|<code><nowiki>||none|none</nowiki></code>||{{Script directionality|historic=LTR||none|none}}
|<code><nowiki>||none|none</nowiki></code>||{{Script directionality|traditional=LTR||none|none}}
|<code><nowiki>||none|none</nowiki></code>||{{Script directionality|modern=LTR||none|none}}
|-
|'''Multiples'''||colspan=8|{{tlx|
|}
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|
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|
===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|
==Dependent files==
The workhorse of this template is a dependent file, [[template:
|