Template:Cat: Difference between revisions

From Alpine Linux
(Update style)
(Update style)
Line 23: Line 23:
<div style="background-color:#eeeeee; padding:.05em .5em; margin:.5em; border:1px solid #000000;"><p style="text-decoration:underline;"><strong>Contents of </strong>{{Path|{{{1}}}}}</p><p style="white-space:pre; font-family:monospace; font-size:10pt;">{{{2}}}</p></div>-->
<div style="background-color:#eeeeee; padding:.05em .5em; margin:.5em; border:1px solid #000000;"><p style="text-decoration:underline;"><strong>Contents of </strong>{{Path|{{{1}}}}}</p><p style="white-space:pre; font-family:monospace; font-size:10pt;">{{{2}}}</p></div>-->
<div style="background-color:#eeeeee; padding:.05em .5em; margin:.5em; border:1px solid #000000; border-left:2px solid #000000; white-space:pre; font-family:monospace; font-size:10pt;"><p># {{{1}}}</p><p>{{{2}}}</p></div>
<div style="background-color:#eeeeee; padding:.05em .5em; margin:.5em; border:1px solid #000000; border-left:2px solid #000000; white-space:pre; font-family:monospace; font-size:10pt;"><p># {{{1}}}</p><p>{{{2}}}</p></div>
<div style="background-color:#f9f9f9; border:1px dashed #2f6fab; color:black; line-height:1.1em; padding:1em; font-family:monospace; white-space:pre; overflow:auto;"><p style="">Contents of {{Path|{{{1}}}}}</p><div style="">{{{2}}}</div></div>
</div>
</div>


</noinclude><includeonly><div style="background-color:#f9f9f9; border:1px dashed #2f6fab; color:black; line-height:1.1em; padding:1em; font-family:monospace; white-space:pre; overflow:auto;"><p style="">Contents of {{Path|{{{1}}}}}</p><div style="">{{{2}}}</div></div></includeonly>
</noinclude><includeonly><pre style="display:inline; border:0; background-color:#2f6fab;">Contents of {{Path|{{{1}}}}}</pre><pre>{{{2}}}</pre></includeonly>

Revision as of 15:54, 5 March 2012

Template Documentation for Cat

This page is a template and should only be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

A box displaying file contents.

Template Documentation

See also:

Example

{{Cat|/path/file|Body text
Next line.}}


produces:

Contents of {{Path|{{{1}}}}}
{{{2}}}

Contents of {{{1}}}

{{{2}}}

-->

# {{{1}}}

{{{2}}}

Contents of {{{1}}}

{{{2}}}