Difference between revisions of "Template:Path to VLC"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Fix syntax error)
(Changed feature: |dir=y omits quotes)
Line 2: Line 2:
 
-->{{#ifeq:{{{dir|}}}|y<!--
 
-->{{#ifeq:{{{dir|}}}|y<!--
 
   -->|{{#switch:{{{1}}}<!--
 
   -->|{{#switch:{{{1}}}<!--
     -->|windows = "%PROGRAMFILES%\VideoLAN\VLC\"<!--
+
     -->|windows = %PROGRAMFILES%\VideoLAN\VLC\<!--
 
     -->|mac    = ../VLC.app/Contents/MacOS/<!--
 
     -->|mac    = ../VLC.app/Contents/MacOS/<!--
 
     -->|linux  = <!--
 
     -->|linux  = <!--

Revision as of 23:12, 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}}