Views

Difference between revisions of "Template:File-DL"

The Wiki of Unify contains information on clients and devices, communications systems and unified communications. - Unify GmbH & Co. KG is a Trademark Licensee of Siemens AG.

Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>{{dontchange}}
 
<noinclude>{{dontchange}}
 
Use the template '''File-DL''' to put a link on an article to download a file like PDF, ZIP, XML or IMG.</noinclude><includeonly>{{#switch: {{{2}}}
 
Use the template '''File-DL''' to put a link on an article to download a file like PDF, ZIP, XML or IMG.</noinclude><includeonly>{{#switch: {{{2}}}
| zip = {{#switch: {{{3}}} | en = {{zip-en}} | de = {{zip-de}} | {{zip}} }}
+
| zip = {{#switch: {{{3}}}  
| pdf = {{#switch: {{{3}}} | en = {{pdf-en}} | de = {{pdf-de}} | {{pdf}} }}
+
| en = {{zip-en|Image:{{{1}}}.{{{2}}}}}
| xml = {{xml}}  
+
| de = {{zip-de|Image:{{{1}}}.{{{2}}}}}
| img = {{img}}  
+
| {{zip|Image:{{{1}}}.{{{2}}}}} }}
| {{unk}}  
+
 
}} [[Media:{{{1}}}.{{{2}}}|{{{1}}}]] <span style="font-size:80%;background-color:#D8DCE1;padding:1pt;">[[:Image:{{{1}}}.{{{2}}}|readme]]</span></includeonly><noinclude>
+
| pdf = {{#switch: {{{3}}}  
 +
| en = {{pdf-en|Image:{{{1}}}.{{{2}}}}}  
 +
| de = {{pdf-de|Image:{{{1}}}.{{{2}}}}}
 +
| {{pdf|Image:{{{1}}}.{{{2}}}}} }}
 +
 
 +
| xml = {{xml|Image:{{{1}}}.{{{2}}}}}  
 +
| img = {{img|Image:{{{1}}}.{{{2}}}}}  
 +
| {{unk|Image:{{{1}}}.{{{2}}}}}  
 +
}} [[Media:{{{1}}}.{{{2}}}|{{#if:{{{4|}}}|{{{4}}}|{{{1}}}}}]]</includeonly><noinclude>
 
----
 
----
 
In order to insert the template in an article, you have to copy the following source text in the article (example):
 
In order to insert the template in an article, you have to copy the following source text in the article (example):
  
 
<pre><nowiki>
 
<pre><nowiki>
{{File-DL|(File name)|(File extension)|(optional on PDF and ZIP: Language)}}
+
{{File-DL|
 +
(File name)|
 +
(File extension)|
 +
(optional on PDF and ZIP: Language|
 +
(optional: visible name if different to file name)
 +
}}
 
</nowiki></pre>
 
</nowiki></pre>
 
For "optional on PDF and ZIP" see [[Wiki:Flag symbols]] > Language codes in file symbols.
 
For "optional on PDF and ZIP" see [[Wiki:Flag symbols]] > Language codes in file symbols.
 
</noinclude>
 
</noinclude>

Latest revision as of 13:35, 9 May 2012

stop hand.svg This template is already used in some articles. Please be careful if you want to make changes.

Use the template File-DL to put a link on an article to download a file like PDF, ZIP, XML or IMG.


In order to insert the template in an article, you have to copy the following source text in the article (example):

{{File-DL|
(File name)|
(File extension)|
(optional on PDF and ZIP: Language|
(optional: visible name if different to file name)
}}

For "optional on PDF and ZIP" see Wiki:Flag symbols > Language codes in file symbols.