Template:Pre: Difference between revisions

From Frontierpedia, the Microsoft Agent encyclopedia
en>Komusou
(after sandbox tests, replaced hardcoded " font-family: monospace " with internal <TT> to get the same look than the official <PRE>, <TT> or <CODE>, i.e. the font the user selected)
en>Komusou
(updated self-included example in line with doc)
Line 2: Line 2:


--><div style="border: 1px dashed #2F6FAB; border-bottom:none; margin: 1em 0px 0px 0px; padding: 3px 3px 0.7em 3px; background: #F9F9F9; text-align: right; font-size: 0.5em; line-height: 1ex; color: #2f6fab;{{#if:{{{width|}}}|width: {{{width}}}|}}">[[Template:Pre|pre]]</div>
--><div style="border: 1px dashed #2F6FAB; border-bottom:none; margin: 1em 0px 0px 0px; padding: 3px 3px 0.7em 3px; background: #F9F9F9; text-align: right; font-size: 0.5em; line-height: 1ex; color: #2f6fab;{{#if:{{{width|}}}|width: {{{width}}}|}}">[[Template:Pre|pre]]</div>
<div style="border: 1px dashed #2F6FAB; border-top:none; margin: 0px 0px 1em 0px; padding: 0px 1em 0.8em 1em; background: #F9F9F9; line-height: 2.1ex; color: #000; overflow: auto; white-space: {{{space|auto}}};{{#if:{{{width|}}}|width: {{{width}}}|}}"><TT>{{#if:{{{1|}}}|{{{1}}}|Pre-formatted text<BR />looks like this.}}<!--
<div style="border: 1px dashed #2F6FAB; border-top:none; margin: 0px 0px 1em 0px; padding: 0px 1em 0.8em 1em; background: #F9F9F9; line-height: 2.1ex; color: #000; overflow: auto; white-space: {{{space|auto}}};{{#if:{{{width|}}}|width: {{{width}}}|}}"><TT>{{#if:{{{1|}}}|{{{1}}}|<P>This Pre-format</P><P>can look</P><P>like this.</P>}}<!--
//-->{{#if:{{{2|}}}|{{!}}{{{2}}}|}}<!--
//-->{{#if:{{{2|}}}|{{!}}{{{2}}}|}}<!--
//-->{{#if:{{{3|}}}|{{!}}{{{3}}}|}}<!--
//-->{{#if:{{{3|}}}|{{!}}{{{3}}}|}}<!--

Revision as of 18:39, 22 September 2007

This Pre-format

can look

like this.

Template:Pp-semi-protected Template:Template doc