Template:Align
Jump to navigation
Jump to search
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}}
.
Usage[edit]
Syntax is: {{align|<alignement>|<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.
La sintaxi és {{align|<alineació>|<text>|<mida>}}
Examples[edit]
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
|
The above documentation is transcluded from Template:Align/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |