Template:Pre

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

Summary[edit]

Displays a <pre> box but with wrapped or scrollable text. It also allows the box to contain formatting, to auto-size, or to be moved around the page (indentation, centering, etc.).

Adapted from Wikipedia template Pre2.

Parameters[edit]

Pre
Parameter Scope Description
1 required The text to be displayed.
scroll optional If a value is specified the box will be scrollable instead of wrapping.
width optional The width of the box. Note that unlike normal <pre></pre> tags, width=auto will correctly auto-size the box.
nowiki optional If a value is specified, the text will be wrapped in <nowiki> tags. This will not work in all cases, see below.

Examples[edit]

Long Text[edit]

{{Pre|Your really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really long text here.}}
Your really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really long text here.

Long Text with Scrolling[edit]

{{Pre|Your really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really long text here.|scroll=yes}}
Your really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really really long text here.

Autosized to Short Text[edit]

{{Pre|Your<br>text here.|width=auto}}
Your
text here.

Nowiki Variations[edit]

Parameter[edit]

{{Pre|Your wiki<br>text here.|nowiki=yes}}
Your wiki<br>text here. 

Parameter Fails[edit]

{{Pre|{{example}}|nowiki=yes}}
First unnamed parameter: ''' '''<br>Italic parameter: '' '' 

Nowiki Tags[edit]

{{Pre|<nowiki>{{example}}</nowiki>}}
{{example}}