Difference between revisions of "Template:File"

Fooker (Talk)
(Undo revision 8505 by DonaldKing (talk))
Tiziano (Talk | contribs)
m (15 revisions from gentoo-wiki:Template:File: import from wiki.gentoo.org)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{ContentBox|File|{{{3}}}|subtitle={{{1}}}|description={{{2}}}|color=#204A87|color2=#729fcf}}<noinclude>
+
<includeonly>{{#if: {{{1|}}}
 +
|{{#if: {{{3|}}}
 +
|{{ContentBox|File|{{{3}}}|subtitle={{{1}}}|description={{{2}}}|lang={{{lang|text}}}|color=#204A87|color2=#729fcf}}
 +
|{{Error|File|3. unnamed}}
 +
}}
 +
|{{Error|File|1. unnamed}}
 +
}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 09:25, 22 August 2014

[edit Documentation
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.

Parameters

1. unnamed
Add the filename.
2. unnamed (optional)
Add some description (optional as can be blank).
3. unnamed
Add the code.

Usage

See the template's testcases:


Parameter: 1. unnamed, 2. unnamed (empty), 3. unnamed
Wiki code
{{File|filename||<pre>
file content
  this
    that
</pre>}}

Main version
Filefilename

file content
  this
    that

Sandbox version


Parameter: 1. unnamed, 2. unnamed , 3. unnamed
Wiki code
{{File|filename|some description|<pre>
file content
  this
    that
</pre>}}

Main version
Filefilenamesome description

file content
  this
    that

Sandbox version
Note
The above documentation is transcluded from Template:File/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.
Last modified on 22 August 2014, at 09:25