Template:Cat

From Braindump
Revision as of 16:51, 16 April 2022 by Jan (talk | contribs) (Created page with "<noinclude>{{Template}} '''A box displaying file contents.''' == Template Documentation == See also: * Template:Cmd ====Example==== <nowiki>{{Cat|/path/file|Body '''text'''</nowiki> <br /> more<br /> Second line.}} produces: {{Cat|/path/file|Body '''text''' <br /> more Second line.}} You must escape characters as follows: <pre> = not inside [[..]] use &#61; or {{=}} | not inside [[..]] use &#124; or {{!}} {{ use &#123;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template: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:

   = not inside [[..]] use &#61; or {{=}}
   | not inside [[..]] use &#124; or {{!}}
   {{                  use &#123; twice or {{lb}}
   }}                  use &#125; twice or {{rb}}
   unmatched [[        use &#91; twice
   unmatched ]]        use &#93; twice
   #                   use &#35;