Difference between revisions of "Template:External-Media"

From SoftMC-Wiki
Jump to: navigation, search
m
Line 23: Line 23:
 
;Input
 
;Input
 
<pre>
 
<pre>
 +
* {{External-Media|Control/media_file_v5.zip}}
 +
* {{External-Media|Control/media_file_v5.zip|media_file_v5.zip}}
 +
</pre>
 +
;Output
 +
* {{External-Media|Control/media_file_v5.zip}}
 +
* {{External-Media|Control/media_file_v5.zip|media_file_v5.zip}}
 +
 +
!-- <pre>
 
* {{External-Media|Control/aico.control_V1.5.0.zip}}
 
* {{External-Media|Control/aico.control_V1.5.0.zip}}
 
* {{External-Media|Control/aico.control_V1.5.0.zip|aico.control V1.5.0}}
 
* {{External-Media|Control/aico.control_V1.5.0.zip|aico.control V1.5.0}}
Line 29: Line 37:
 
* {{External-Media|Control/aico.control_V1.5.0.zip}}
 
* {{External-Media|Control/aico.control_V1.5.0.zip}}
 
* {{External-Media|Control/aico.control_V1.5.0.zip|aico.control V1.5.0}}
 
* {{External-Media|Control/aico.control_V1.5.0.zip|aico.control V1.5.0}}
 +
-->
 
}}
 
}}
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 13:14, 28 May 2014

This template provides an easy way to create a link to external download media.

More information is available in Help:External Media.

Template

{{External-Media|path|text}}

Parameters

path
Relative path within the External-Media directory on the server.
  • The slash character "/" is used as path delimiter.
  • Space characters are not allowed within the path.
text (optional)
Display text for the link. If empty, path is used as display text.

Examples

Input
* {{External-Media|Control/media_file_v5.zip}}
* {{External-Media|Control/media_file_v5.zip|media_file_v5.zip}}
Output
!--
* {{External-Media|Control/aico.control_V1.5.0.zip}}
* {{External-Media|Control/aico.control_V1.5.0.zip|aico.control V1.5.0}}
Output
-->

For more examples refer to pages, which use this template: What links here.

Help:Templates describes general usage of templates, including treatment of special characters.