Difference between revisions of "Template:File/doc"

From stoney cloud
Jump to: navigation, search
m (category fix)
m (add category)
Line 1: Line 1:
 +
<includeonly>[[Category:Templates]]</includeonly>
 
Use this template to show a file box with some content.
 
Use this template to show a file box with some content.
  
Line 26: Line 27:
 
</pre>}}
 
</pre>}}
  
<includeonly>[[Category:Templates]]</includeonly>
+
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 07:41, 30 September 2011

Use this template to show a file box with some content.

Usage

Add this code to the page text:

{{File|filename|some description|
file content
}}
Filefilenamesome description

file content

If you want to preserve the format of the file content, use <pre> ... </pre> tags for pre-formatted text:

{{File|filename|some description|<pre>
file content
  this
    that
</pre>}}
Filefilenamesome description

file content
  this
    that