Template:Cat: Difference between revisions
Dubiousjim (talk | contribs) m (fix markup) |
Dubiousjim (talk | contribs) |
||
Line 20: | Line 20: | ||
<pre> | <pre> | ||
= &#61; or {{=}} | = use &#61; or {{=}} | ||
| &#124; or {{!}} | | use &#124; or {{!}} | ||
{{ &#123; twice or {{lb}} | {{ use &#123; twice or {{lb}} | ||
}} &#125; twice or {{rb}} | }} use &#125; twice or {{rb}} | ||
[[ &#91; twice | unmatched [[ use &#91; twice | ||
]] &#93; twice | unmacthed ]] use &#93; twice | ||
</pre> | </pre> | ||
</noinclude><includeonly><div><p style="background-color:#f9f9f9; border:1px solid #2f6fab; border-bottom:0; padding:.2em 1.2em; display:inline;"><strong>Contents of </strong>{{Path|{{{1}}}}}</p><div style="background-color:#f9f9f9; border:1px dashed #2f6fab; border-left:1px solid #2f6fab; margin-top:-.2em; line-height:1.1em; padding:1em; font-family:monospace; white-space:pre; overflow:auto;">{{#tag:nowiki|{{{2}}}}}</div></div></includeonly> | </noinclude><includeonly><div><p style="background-color:#f9f9f9; border:1px solid #2f6fab; border-bottom:0; padding:.2em 1.2em; display:inline;"><strong>Contents of </strong>{{Path|{{{1}}}}}</p><div style="background-color:#f9f9f9; border:1px dashed #2f6fab; border-left:1px solid #2f6fab; margin-top:-.2em; line-height:1.1em; padding:1em; font-family:monospace; white-space:pre; overflow:auto;">{{#tag:nowiki|{{{2}}}}}</div></div></includeonly> |
Revision as of 06:17, 8 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''' <br /> more
Second line.}}
produces:
Contents of /path/file
Body '''text''' <br /> more
Second line.
You must escape characters as follows:
= use = or {{=}} | use | or {{!}} {{ use { twice or {{lb}} }} use } twice or {{rb}} unmatched [[ use [ twice unmacthed ]] use ] twice