Difference between revisions of "Template:Indentedpre"

From CCARH Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
<ul>
 
<ul>
::<table style="background:white;"><tr><td><noinclude><source lang="text"></noinclude>{{{1}}}
+
::<table style="background:white;"><tr><td><source lang="text"&lt;noinclude&gt;&lt;/noinclude&gt;>{{{1}}}</source&lt;noinclude&gt;&lt;/noinclude&gt;></td></tr></table></ul>
<noinclude></source></noinclude></td></tr></table></ul>
 
 
</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:

Revision as of 21:46, 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:


    <source lang="text"<noinclude></noinclude>>This is some text</source<noinclude></noinclude>>

Compare to a regular pre: <pre>This is some text</pre> Which generates this style:

This is some text