Difference between revisions of "Template:Path to VLC"
Jump to navigation
Jump to search
m (Fix broken examples) |
(New feature: passing "|dir=y" gives containing folder only e.g. {{Path to VLC|windows|dir=y}}) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
− | -->{{#switch:{{{1}}}<!-- | + | -->{{#ifeq:{{{dir|}}}|y<!-- |
− | -->|windows = "%PROGRAMFILES%\VideoLAN\VLC\vlc.exe"<!-- | + | -->|{{#switch:{{{1}}}<!-- |
− | + | -->|windows = "%PROGRAMFILES%\VideoLAN\VLC\"<!-- | |
− | + | -->|mac = ../VLC.app/Contents/MacOS/<!-- | |
+ | -->|linux = <!-- | ||
+ | -->}}<!-- | ||
+ | -->|{{#switch:{{{1}}}<!-- | ||
+ | -->|windows = "%PROGRAMFILES%\VideoLAN\VLC\vlc.exe"<!-- | ||
+ | -->|mac = ../VLC.app/Contents/MacOS/VLC<!-- | ||
+ | -->|linux = vlc<!-- | ||
+ | -->}} | ||
-->}}</includeonly><noinclude> | -->}}</includeonly><noinclude> | ||
Line 12: | Line 19: | ||
* <code>{{{{PAGENAME}}|windows<nowiki>}}</nowiki></code> | * <code>{{{{PAGENAME}}|windows<nowiki>}}</nowiki></code> | ||
*: <samp>{{{{PAGENAME}}|windows}}</samp> | *: <samp>{{{{PAGENAME}}|windows}}</samp> | ||
+ | * <code>{{{{PAGENAME}}|windows<nowiki>|dir=y}}</nowiki></code> | ||
+ | *: <samp>{{{{PAGENAME}}|windows|dir=y}}</samp> | ||
* <code>{{{{PAGENAME}}|mac<nowiki>}}</nowiki></code> | * <code>{{{{PAGENAME}}|mac<nowiki>}}</nowiki></code> | ||
*: <samp>{{{{PAGENAME}}|mac}}</samp> | *: <samp>{{{{PAGENAME}}|mac}}</samp> | ||
+ | * <code>{{{{PAGENAME}}|mac<nowiki>|dir=y}}</nowiki></code> | ||
+ | *: <samp>{{{{PAGENAME}}|mac|dir=y}}</samp> | ||
* <code>{{{{PAGENAME}}|linux<nowiki>}}</nowiki></code> | * <code>{{{{PAGENAME}}|linux<nowiki>}}</nowiki></code> | ||
*: <samp>{{{{PAGENAME}}|linux}}</samp> | *: <samp>{{{{PAGENAME}}|linux}}</samp> | ||
+ | * <code>{{{{PAGENAME}}|linux<nowiki>|dir=y}}</nowiki></code> | ||
+ | *: <samp>{{{{PAGENAME}}|linux|dir=y}}</samp> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 22:46, 14 March 2019
Usage
A template for default VLC media player locations on desktop computers by operating system.
Showcase of various modes:
{{Path to VLC|windows}}
- "%PROGRAMFILES%\VideoLAN\VLC\vlc.exe"
-->
{{Path to VLC|windows|dir=y}}
- "%PROGRAMFILES%\VideoLAN\VLC\"
{{Path to VLC|mac}}
- ../VLC.app/Contents/MacOS/VLC
-->
{{Path to VLC|mac|dir=y}}
- ../VLC.app/Contents/MacOS/
{{Path to VLC|linux}}
- vlc
-->
{{Path to VLC|linux|dir=y}}