Template:Indentedpre: Difference between revisions

From CCARH Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
::<table style="background:white;"><tr><td><noinclude><source lang="text"></noinclude>{{{1}}}
::<table style="background:white;"><tr><td><noinclude><source lang="text"></noinclude>{{{1}}}
<noinclude></source></noinclude></td></tr></table></ul>
<noinclude></source></noinclude></td></tr></table></ul>
<noinclude><pre></noinclude>{{{1}}}
<noinclude></pre></noinclude>
</includeonly><noinclude>
</includeonly><noinclude>
This template is used to create a pre-styled display, but indented and not extending the colored box all of the way to the right margin.  Example:
This template is used to create a pre-styled display, but indented and not extending the colored box all of the way to the right margin.  Example:


<nowiki>
<pre><nowiki>{{indentedpre|This is some text}}</nowiki></pre>
{{indentedpre|This is some text}}
</nowiki>


Which generates this result:
Which generates this result:

Revision as of 21:43, 15 January 2013

This template is used to create a pre-styled display, but indented and not extending the colored box all of the way to the right margin. Example:

{{indentedpre|This is some text}}

Which generates this result:


    This is some text


Compare to a regular pre:

<pre>This is some text</pre>

Which generates this style:

This is some text