Difference between revisions of "Template:Path to VLC"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Strip trailing / and \)
(Make "mac" command-line absolute)
Line 3: Line 3:
 
   -->|{{#switch:{{{1}}}<!--
 
   -->|{{#switch:{{{1}}}<!--
 
     -->|windows = {{#ifeq:{{{q|}}}|n|%PROGRAMFILES%\VideoLAN\VLC|"%PROGRAMFILES%\VideoLAN\VLC"}}<!--
 
     -->|windows = {{#ifeq:{{{q|}}}|n|%PROGRAMFILES%\VideoLAN\VLC|"%PROGRAMFILES%\VideoLAN\VLC"}}<!--
     -->|mac    = ../VLC.app/Contents/MacOS<!--
+
     -->|mac    = /Applications/VLC.app/Contents/MacOS<!--
 
     -->|linux  = <!--
 
     -->|linux  = <!--
 
   -->}}<!--
 
   -->}}<!--
 
   -->|{{#switch:{{{1}}}<!--
 
   -->|{{#switch:{{{1}}}<!--
 
     -->|windows = "%PROGRAMFILES%\VideoLAN\VLC\vlc.exe"<!--
 
     -->|windows = "%PROGRAMFILES%\VideoLAN\VLC\vlc.exe"<!--
     -->|mac    = ../VLC.app/Contents/MacOS/VLC<!--
+
     -->|mac    = /Applications/VLC.app/Contents/MacOS/VLC<!--
 
     -->|linux  = vlc<!--
 
     -->|linux  = vlc<!--
 
   -->}}<!--
 
   -->}}<!--

Revision as of 22:00, 18 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}}
    /Applications/VLC.app/Contents/MacOS/VLC
  • {{Path to VLC|mac|dir=y}}
    /Applications/VLC.app/Contents/MacOS
  • {{Path to VLC|linux}}
    vlc
  • {{Path to VLC|linux|dir=y}}