Difference between revisions of "Template:File/doc"

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

Revision as of 15:11, 2 November 2011

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.

As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements, fixes or voice your opinion.

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