Template:RightJustifyText

From Eliafamily

(Difference between revisions)
m
 
(3 intermediate revisions not shown)
Line 2: Line 2:
{{{text}}}
{{{text}}}
</div>
</div>
 +
 +
<noinclude>
 +
 +
== Purpose ==
 +
 +
Use this Template whenever you want to right justify text.  This is used, for example, on the [[Main Page]] to set off the "...see archived announcements" and similar links to more complete listings.
== Code ==
== Code ==
Line 10: Line 16:
</div>
</div>
</pre>
</pre>
-
 
-
== Function ==
 
-
 
-
Use this Template whenever you want to right justify text.  This is used, for example, on the [[Main Page]] to set off the "...see archived announcements" and similar links to more complete listings.
 
== Example of Use ==
== Example of Use ==
 +
=== Example Code ===
Use the template in the following fashion:
Use the template in the following fashion:
Line 27: Line 30:
The first line establishes that you are "calling" this Template.  The second line sets the value of the variable "text" - in other words, it indicates what text you want right-justified.  In this case the text happens to include an internal link (indicated by the double brackets).  Note the pipe symbol ends that line.  Finish with the close squiggly brackets, so that anything you type after that will be back in normal type.
The first line establishes that you are "calling" this Template.  The second line sets the value of the variable "text" - in other words, it indicates what text you want right-justified.  In this case the text happens to include an internal link (indicated by the double brackets).  Note the pipe symbol ends that line.  Finish with the close squiggly brackets, so that anything you type after that will be back in normal type.
-
You may copy and paste the above code, insert it into an edit box, and replace the text "...see all <nowiki>[[archived announcements]]</nowiki> with your own text.
+
You may copy and paste the above code, insert it into an edit box, and replace the text "...see all <nowiki>[[archived announcements]]</nowiki>" with your own text.
-
The above example renders as follows:
+
=== Example Rendered ===
-
----
 
{{RightJustifyText|
{{RightJustifyText|
   text=...see all [[archived announcements]]|
   text=...see all [[archived announcements]]|
}}
}}
-
----
 
-
<noinclude>[[Category:Template]]</noinclude>
+
 
 +
[[Category:Template]]</noinclude>

Current revision as of 01:24, 13 October 2006

{{{text}}}


Contents

Purpose

Use this Template whenever you want to right justify text. This is used, for example, on the Main Page to set off the "...see archived announcements" and similar links to more complete listings.

Code

<div style='text-align: right;'>
{{{text}}}
</div>

Example of Use

Example Code

Use the template in the following fashion:

{{RightJustifyText|
   text=...see all [[archived announcements]]|
}}

The first line establishes that you are "calling" this Template. The second line sets the value of the variable "text" - in other words, it indicates what text you want right-justified. In this case the text happens to include an internal link (indicated by the double brackets). Note the pipe symbol ends that line. Finish with the close squiggly brackets, so that anything you type after that will be back in normal type.

You may copy and paste the above code, insert it into an edit box, and replace the text "...see all [[archived announcements]]" with your own text.

Example Rendered

...see all archived announcements

Personal tools