Template:Pre: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Scratch that, it just wasn't working in Show preview.) |
||
Line 4: | Line 4: | ||
Adds more functionality to the existing message box obtainable by adding one space before text. | Adds more functionality to the existing message box obtainable by adding one space before text. | ||
This is the default box. This is produced by adding one space to the beginning of this line. | This is the default box. This is produced by adding one space to the beginning of this line. | ||
<pre>It also works by adding an HTML <code><nowiki><pre></nowiki></code> tag.</pre> | <pre>It also works by adding an HTML <code><nowiki><pre></nowiki></code> tag.</pre> | ||
The syntax for the <code><nowiki>{{pre}}</nowiki></code> template is: | The syntax for the <code><nowiki>{{pre}}</nowiki></code> template is: | ||
<pre> | <pre> | ||
Line 16: | Line 14: | ||
}} | }} | ||
</pre> | </pre> | ||
{{pre|bgcolor=#555|bdcolor=#FFF|txtcolor=yellow|In this example the bgcolor is #555 bdcolor is #FFF and txtcolor is yellow.}} | |||
{{pre|bgcolor=#555|bdcolor=#FFF|txtcolor=yellow|In this example the bgcolor is #555 bdcolor is #FFF and txtcolor is yellow. | |||
}} | |||
</noinclude> | </noinclude> |
Revision as of 12:06, 6 October 2011
{{{1}}}
Usage
Adds more functionality to the existing message box obtainable by adding one space before text.
This is the default box. This is produced by adding one space to the beginning of this line.
It also works by adding an HTML <code><pre></code> tag.
The syntax for the {{pre}}
template is:
{{pre |bgcolor=background color |bdcolor=border color |txtcolor=text color |message }}
In this example the bgcolor is #555 bdcolor is #FFF and txtcolor is yellow.