Difference between revisions of "Template:File"
From stoney cloud
m (Unprotected "Template:File") |
m (Initial template documentation) |
||
Line 1: | Line 1: | ||
− | <div class="gw-box" style="border: 1px solid #204A87;"><span class="gw-box-title" style="background-color: #204A87;">File</span><span class="gw-box-title" style="background-color: #729fcf;">{{{1}}}</span><span style="padding: .3em; margin-left: .5em; font-weight: bold; color: #204a87;">{{{2}}}</span> | + | <onlyinclude><includeonly><div class="gw-box" style="border: 1px solid #204A87;"><span class="gw-box-title" style="background-color: #204A87;">File</span><span class="gw-box-title" style="background-color: #729fcf;">{{{1}}}</span><span style="padding: .3em; margin-left: .5em; font-weight: bold; color: #204a87;">{{{2}}}</span> |
− | {{{3}}}</div> | + | {{{3}}}</div></includeonly></onlyinclude> |
+ | |||
+ | Use this template to show a file box with some content. | ||
+ | |||
+ | {{Template}} | ||
+ | |||
+ | == Usage == | ||
+ | Add this code to the page text: | ||
+ | <pre> | ||
+ | {{File|filename|some description| | ||
+ | file content | ||
+ | }} | ||
+ | </pre> | ||
+ | {{File|filename|some description| | ||
+ | file content | ||
+ | }} | ||
+ | |||
+ | If you want to preserve the format of the file content, use <nowiki><pre> ... </pre></nowiki> tags for pre-formatted text: | ||
+ | <pre> | ||
+ | {{File|filename|some description|<pre> | ||
+ | file content | ||
+ | this | ||
+ | that | ||
+ | </pre>}} | ||
+ | </pre> | ||
+ | {{File|filename|some description|<pre> | ||
+ | file content | ||
+ | this | ||
+ | that | ||
+ | </pre>}} |
Revision as of 13:55, 26 September 2011
Use this template to show a file box with some content.
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.
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