Template:Right: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
No edit summary
(5px to .5em, expand grammar etc)
Line 1: Line 1:
<div style="text-align:right; margin-right:5px">{{{1}}}</div><noinclude>{{clear}}
<div style="text-align:right; margin-right:.5em">{{{1}}}</div><noinclude>{{clear}}


----
----
;Utilisation
;Utilisation
When 'reading from right to left' texts, such as Arabic, Classic Chinese, etc are used within a page with existing 'left to right' roman texts (English, German, French, Spanish, etc), this [[:Category:Housekeeping templates|housekeeping template]] can be used to right-align text on the displayed page.
When 'right-aligned, reading from right-to-left' texts, such as Arabic, Classic Chinese, etc are used within a page with existing 'left to right' roman texts (English, German, French, Spanish, etc), this {{tag|Housekeeping templates|housekeeping}} {{tag|Language templates|language template}} can be used to right-align a section of text on the displayed page.


<pre>{{left|Your 'right to left' text}}</pre>
<pre>{{right|Your 'right-aligned, reading from right-to-left' . . . 'right-aligned, reading from right-to-left' text.}}</pre>


will display:
will display:


{{right|Your 'right to left' text}}
{{right|Your 'right-aligned, reading from right-to-left' . . . 'right-aligned, reading from right-to-left' text.}}


Obviously, this example shown would work better with the appropriate language text! :p
Obviously, this example shown would work better with the appropriate non-roman language text! :-P


[[Category:Housekeeping templates]]
[[Category:Wiki Language| ]]</noinclude>
</noinclude>

Revision as of 17:11, 12 November 2017

{{{1}}}

Utilisation

When 'right-aligned, reading from right-to-left' texts, such as Arabic, Classic Chinese, etc are used within a page with existing 'left to right' roman texts (English, German, French, Spanish, etc), this housekeeping language template can be used to right-align a section of text on the displayed page.

{{right|Your 'right-aligned, reading from right-to-left' . . . 'right-aligned, reading from right-to-left' text.}}

will display:

Your 'right-aligned, reading from right-to-left' . . . 'right-aligned, reading from right-to-left' text.

Obviously, this example shown would work better with the appropriate non-roman language text! :-P