Difference between revisions of "Template:External-Media"
m (extended examples) |
(Added text parameter) |
||
Line 1: | Line 1: | ||
− | <includeonly>[https://wiki.manz-automation.com/external-media/{{{1}}} {{{1}}}]</includeonly><!-- | + | <includeonly>[https://wiki.manz-automation.com/external-media/{{{1}}} {{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]</includeonly><!-- |
Line 8: | Line 8: | ||
This template provides an easy way to create a link to external download media. | This template provides an easy way to create a link to external download media. | ||
− | |template=<nowiki>{{External-Media|path}}</nowiki> | + | |template=<nowiki>{{External-Media|path|text}}</nowiki> |
|parameters= | |parameters= | ||
Line 15: | Line 15: | ||
:* The slash character "/" is used as path delimiter. | :* The slash character "/" is used as path delimiter. | ||
:* Space characters are not allowed within the path. | :* Space characters are not allowed within the path. | ||
+ | ;text (optional) | ||
+ | : Display text for the link. If empty, ''path'' is used as display text. | ||
|examples= | |examples= | ||
;Input | ;Input | ||
<pre> | <pre> | ||
− | {{External-Media|aico.control/aico.control_V1.5.0.zip}} | + | * {{External-Media|aico.control/aico.control_V1.5.0.zip}} |
+ | * {{External-Media|aico.control/aico.control_V1.5.0.zip|aico.control V1.5.0}} | ||
</pre> | </pre> | ||
;Output | ;Output | ||
− | + | * {{External-Media|aico.control/aico.control_V1.5.0.zip}} | |
+ | * {{External-Media|aico.control/aico.control_V1.5.0.zip|aico.control V1.5.0}} | ||
}} | }} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 09:30, 15 October 2010
This template provides an easy way to create a link to external download 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|aico.control/aico.control_V1.5.0.zip}} * {{External-Media|aico.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.