A function that allows you to determine the alignment of a text.

Besides this basic function shared by allmost every wikipedia, this version includes font size management, usually solved with {{small}}, {{larger}},{{big}}.

Syntax is: {{align|<alignment>|<text>|<size>}} The 3 parameters are positionals:

  • 1: alignment (left, right, center, start, end). Obligatory
  • 2: Text to align. Obligatory
  • 3: Font size. Optional. In addition to the alignment, the template allows to specify the font size: small (s, small) or large (l, large).
This option allows to avoid nested functions (eg: {{small | {{align | left | <text>}}}}) that produces LINT errors.
Syntax Parameters and given results
{{align|left|left-standard-size-text}}
left-standard-size-text
{{align|center|centered-standard-size-text}}
centered-standard-size-text
{{align|right|right-standard-size-text}}
right-standard-size-text
{{align|left|esquerra, gran|g}}
left-big-size-text
{{align|right|right-big-size-text|big}}
right-big-size-text
{{align|left|left-small-size-text|small}}
left-small-size-text
{{align|right|right-small-size-text|small}}
right-small-size-text

Féach freisin

cuir in eagar