Content added Content deleted
m (13 revisions imported: importing required formatting templates) |
No edit summary |
||
Line 1: | Line 1: | ||
{{doc-sub}} |
|||
{{documentation subpage}} |
|||
{{div-based-template}} |
|||
==Usage== |
==Usage== |
||
This template aligns text to the right. For example, |
This template aligns text to the right. For example, |
||
<nowiki>{{right|'''Example text'''}}</nowiki> |
<nowiki>{{right|'''Example text'''}}</nowiki> |
||
yields |
yields |
||
{{right|'''Example text'''}} |
{{right|'''Example text'''}} |
||
Text can be offset from the right margin by use of a second <tt>offset</tt> parameter, implicitly or by name: |
Text can be offset from the right margin by use of a second <tt>offset</tt> parameter, implicitly or by name: |
||
Line 15: | Line 12: | ||
both yield |
both yield |
||
{{right|'''Example text'''|3em}} |
{{right|'''Example text'''|3em}} |
||
==<nowiki>{{right}}</nowiki> ''versus'' {{tl|float right}}== |
==<nowiki>{{right}}</nowiki> ''versus'' {{tl|float right}}== |
||
Line 39: | Line 35: | ||
|} |
|} |
||
== TemplateData == |
|||
{{TemplateDataHeader}} |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": "Text", |
|||
"description": "The text to right-align.", |
|||
"type": "content", |
|||
"required": true |
|||
}, |
|||
"leading-top": { |
|||
"label": "Top leading/padding", |
|||
"description": "The space to leave at the top of the aligned block. Value in ems (do not specify units).", |
|||
"example": "2", |
|||
"type": "string", |
|||
"default": "0", |
|||
"suggested": true |
|||
}, |
|||
"offset": { |
|||
"aliases": [ |
|||
"2" |
|||
], |
|||
"label": "Offset", |
|||
"description": "The right margin.", |
|||
"example": "3em", |
|||
"type": "string", |
|||
"default": "0", |
|||
"suggested": true |
|||
}, |
|||
"style": { |
|||
"label": "Style", |
|||
"description": "Any other CSS rules to apply to the block.", |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"description": "Align text to the right.", |
|||
"paramOrder": [ |
|||
"1", |
|||
"offset", |
|||
"leading-top", |
|||
"style" |
|||
], |
|||
"format": "inline" |
|||
} |
|||
</templatedata> |
|||
===See also=== |
===See also=== |
||
Line 91: | Line 41: | ||
<!-- template categories and interwiki links --> |
<!-- template categories and interwiki links --> |
||
<includeonly> |
<includeonly> |
||
[[Category: |
[[Category:Template]] |
||
[[Category:Formatting templates]] |
|||
[[es:Plantilla:Derecha]] |
|||
[[id:Templat:Right]] |
|||
[[pt:Predefinição:Alinhado à direita]] |
|||
</includeonly> |
</includeonly> |