Template:RightJustifyText
From Eliafamily
m (→Example of Use) |
|||
Line 27: | Line 27: | ||
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: | The above example renders as follows: |
Revision as of 01:19, 13 October 2006
{{{text}}}
Code
<div style='text-align: right;'> {{{text}}} </div>
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
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.
The above example renders as follows:
...see all archived announcements