Difference between revisions of "Template:Path to VLC"
Jump to navigation
Jump to search
(Changed feature: |dir=y omits quotes) |
(Feature change again, sorry: quotes for |dir=y unless |q=n. I am not changing that again) |
||
Line 2: | Line 2: | ||
-->{{#ifeq:{{{dir|}}}|y<!-- | -->{{#ifeq:{{{dir|}}}|y<!-- | ||
-->|{{#switch:{{{1}}}<!-- | -->|{{#switch:{{{1}}}<!-- | ||
− | -->|windows = %PROGRAMFILES%\VideoLAN\VLC\<!-- | + | -->|windows = {{#ifeq:{{{q|}}}|n|%PROGRAMFILES%\VideoLAN\VLC\|"%PROGRAMFILES%\VideoLAN\VLC\"}}<!-- |
-->|mac = ../VLC.app/Contents/MacOS/<!-- | -->|mac = ../VLC.app/Contents/MacOS/<!-- | ||
-->|linux = <!-- | -->|linux = <!-- | ||
Line 21: | Line 21: | ||
* <code>{{{{PAGENAME}}|windows<nowiki>|dir=y}}</nowiki></code> | * <code>{{{{PAGENAME}}|windows<nowiki>|dir=y}}</nowiki></code> | ||
*: <samp>{{{{PAGENAME}}|windows|dir=y}}</samp> | *: <samp>{{{{PAGENAME}}|windows|dir=y}}</samp> | ||
+ | * <code>{{{{PAGENAME}}|windows<nowiki>|dir=y|q=n}}</nowiki></code> | ||
+ | *: <samp>{{{{PAGENAME}}|windows|dir=y|q=n}}</samp> | ||
* <code>{{{{PAGENAME}}|mac<nowiki>}}</nowiki></code> | * <code>{{{{PAGENAME}}|mac<nowiki>}}</nowiki></code> | ||
*: <samp>{{{{PAGENAME}}|mac}}</samp> | *: <samp>{{{{PAGENAME}}|mac}}</samp> |
Revision as of 23:19, 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|windows|dir=y|q=n}}
- %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}}