Template:RightJustifyText
From Eliafamily
Line 18: | Line 18: | ||
== Example of Use == | == Example of Use == | ||
+ | === Example Code === | ||
Use the template in the following fashion: | Use the template in the following fashion: | ||
Line 30: | Line 31: | ||
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. | ||
- | + | === Example Rendered === | |
- | |||
{{RightJustifyText| | {{RightJustifyText| | ||
text=...see all [[archived announcements]]| | text=...see all [[archived announcements]]| | ||
}} | }} | ||
- | + | ||
[[Category:Template]]</noinclude> | [[Category:Template]]</noinclude> |
Revision as of 01:23, 13 October 2006
{{{text}}}
Contents |
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
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