Template:Prebox
From Discworld MUD Wiki
{{{1}}}
[edit]
Documentation{{prebox}} is an old template originally meant to fix the line-wrapping problem with <pre> (now fixed).
It is now close to be functionally identical to <pre> but its use is strongly discouraged for showing text without formatting since some wiki formatting still seems to show up inside it instead of strictly showing the content with no formatting as is intended with <pre>.
However, if adding some formatting to the text is wanted, then it is appropriate.
Since in the old prebox usage newlines were not preserved, <br> tags inside it were necessary and are now being removed from inside the prebox template to avoid the text <br> being shown in existing preboxed content.
Example
{{prebox|This is an example of *prebox usage. ----- }}
appears as:
This is an example of *prebox usage.
This should be replaced with:
<pre>This is an example of *prebox usage. ----- </pre>
See also
- Template:Abbr - shows the expanded name as a tooltip when hovering over it.
- Template:Abbrl - like Abbr but also wikilinks to the abbreviated name.
- Template:Abbrlink - like Abbr but also wikilinks to the expanded name.