Template:Pre: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (This all works except the border color isn't changing. Not sure why?)
mNo edit summary
Line 1: Line 1:
<div style="padding: 1em;border-left: 6px solid {{{bdcolor}}};color: {{{txtcolor}}};background-color: {{{bgcolor}}};line-height: 1.1em;font-size: 100%;overflow: auto;font-family: monospace, sans-serif;">{{{1}}}</div>
<div style="padding: 1em;border-left: 6px solid {{{bdcolor}}};color: {{{txtcolor}}};background-color: {{{bgcolor}}};line-height: 1.1em;font-size: 100%;overflow: auto;font-family: monospace, sans-serif;">{{{1}}}</div>
<noinclude>
<noinclude>
== Usage ==
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.

Revision as of 12:05, 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.