Teimpléad:Align
Jump to navigation
Jump to search
Doiciméadú teimpléad[féach ar an teimpléad seo] [athraigh an teimpléad seo] [stair] [ ]

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}}.
Úsáid[athraigh foinse]
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.
Samplaí[athraigh foinse]
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[athraigh foinse]
an thuas doiciméadú Is é transcluded ó Teimpléad:Align/doc. (in eagar | stair) Is féidir Eagarthóirí turgnamh seo ar teimpléad sandbox (chruthú | scáthán) agus testcases (chruthú) leathanaigh. Le do thoil catagóirí agus na interwikis a chur leis an /doc subpage. Subpages of this template. |