Template:Pre

From Valve Developer Community
Jump to navigation Jump to search
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Template Documentation
Icon-translate.png Documentation language
...

Just <pre></pre>.

Usage

Parameters

  • {{{1}}} - The text inside the box.

Examples

Wikitext Result
{{pre|
This example defines just the message
in multiple lines.
[[Main Page|Wikilinks]] and [https://www.wikipedia.org/ external links] work in here, too.
For template calls, the pipe {{!}} and the equals sign {{=}} must be "escaped".
Template transclusions like {{source}} will be resolved.
Template transclusions like {{source{{!}}4}} will NOT be resolved!
}}
This example defines just the message
in multiple lines.
[[Main Page|Wikilinks]] and [https://www.wikipedia.org/ external links] work in here, too.
For template transclusions, the pipe | and the equals sign = must be "escaped".
Template transclusions like <span style="position:relative; bottom:.1em">[[File:Source icon 64x64.png|link=Source|Source|16px]]</span> will be resolved.
Template transclusions like {{source|4}} will NOT be resolved!

Comparison

This is the default box. This is produced by adding one space to the beginning of this line.
This is the result when using just the <pre> HTML tag with no style.

See also