3,860
edits
(Created page with "{{Documentation subpage}} __NOTOC__ ==Usage== {{tlf|'''align'''}} aligns the output text or other element centered, to the left, or to the right. ==Parameters== There are 2 p...") |
(→2) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
==Usage== | ==Usage== | ||
{{tlf|'''align'''}} aligns the output text or other element centered, to the left, or to the right. | {{tlf|'''align'''}} aligns the output text (or other element) as centered, to the left, or to the right. | ||
==Parameters== | ==Parameters== | ||
Line 25: | Line 25: | ||
====2==== | ====2==== | ||
;<big>Alignment</big> | ;<big>Alignment</big> | ||
Specifies the alignment you want to impose on the text/element in parameter {{ | Specifies the alignment you want to impose on the text/element in parameter {{para|1}}. The parameter is unnamed, so no parameter name needs to be specified. | ||
;<big>Available values</big> | ;<big>Available values</big> | ||
Line 32: | Line 32: | ||
! Value !! Default | ! Value !! Default | ||
|- | |- | ||
| {{samp|center}} || | | {{samp|center}} || {{center|[[File:Green check.png|25px|link=]]}} | ||
|- | |- | ||
| {{samp|left}} || | | {{samp|left}} || | ||
Line 53: | Line 53: | ||
! Element !! Alignment !! What you type !! style="width: 400px" | What you see | ! Element !! Alignment !! What you type !! style="width: 400px" | What you see | ||
|- | |- | ||
| rowspan=" | | rowspan="4" | Text || rowspan="2" | Center || {{tlc|align|This text is center-aligned}} || {{align|This text is center-aligned}} | ||
|- | |- | ||
| {{tlc|align|This text is center-aligned|center}} || {{align|This text is center-aligned|center}} | | {{tlc|align|This text is center-aligned|center}} || {{align|This text is center-aligned|center}} | ||
Line 59: | Line 59: | ||
| Left || {{tlc|align|This text is left-aligned|left}} || {{align|This text is left-aligned|left}} | | Left || {{tlc|align|This text is left-aligned|left}} || {{align|This text is left-aligned|left}} | ||
|- | |- | ||
| Right | | Right || {{tlc|align|This text is right-aligned|right}} || {{align|This text is right-aligned|right}} | ||
|- | |- | ||
| rowspan=" | | rowspan="4" | Image || rowspan="2" | Center || {{tlc|align|<nowiki>[[File:Idea.png|20px|link=]]</nowiki>}} || {{align|[[File:Idea.png|20px|link=]]}} | ||
|- | |- | ||
| {{tlc|align|<nowiki>[[File:Idea.png|20px|link=]]</nowiki>|center}} || {{align|[[File:Idea.png|20px|link=]]|center}} | | {{tlc|align|<nowiki>[[File:Idea.png|20px|link=]]</nowiki>|center}} || {{align|[[File:Idea.png|20px|link=]]|center}} |
edits