Difference between revisions of "Template:Module"

From VideoLAN Wiki
Jump to navigation Jump to search
(Check for special value "none" for sc, format any other value with code markup tags)
(Parameter "sc" is no longer free-form. Add optional parameters "sc2", "sc3", "sc4")
Line 37: Line 37:
 
|-
 
|-
 
! scope="row" | Shortcut(s)
 
! scope="row" | Shortcut(s)
| {{#switch:{{{sc|}}}<!--
+
| {{#switch:{{{sc|}}}{{{sc2|}}}{{{sc3|}}}{{{sc4|}}}<!--
  -->|none     = (none)<!--
+
  -->|none                               = (none)<!--
  -->|{{{sc}}} = <code>{{{sc}}}</code><!--
+
  -->|{{{sc}}}                           = <code>{{{sc}}}</code><!--
  -->|#default = -<!--
+
-->|{{{sc}}}{{{sc2}}}                  = <code>{{{sc}}}</code>, <code>{{{sc2}}}</code><!--
 +
-->|{{{sc}}}{{{sc2}}}{{{sc3}}}          = <code>{{{sc}}}</code>, <code>{{{sc2}}}</code>, <code>{{{sc3}}}</code><!--
 +
-->|{{{sc}}}{{{sc2}}}{{{sc3}}}{{{sc4}}} = <code>{{{sc}}}</code>, <code>{{{sc2}}}</code>, <code>{{{sc3}}}</code>, <code>{{{sc4}}}</code><!--
 +
  -->|#default                           = -<!--
 
-->}}
 
-->}}
 
|}
 
|}
Line 54: Line 57:
 
   |os = Operating system of the plugin
 
   |os = Operating system of the plugin
 
   |description = A short, brief description of the plugin
 
   |description = A short, brief description of the plugin
   |sc = Shortcut(s)
+
   |sc = Shortcut
 +
  |sc2 = Shortcut 2
 +
  |sc3 = Shortcut 3
 +
  |sc4 = Shortcut 4
 
   }}</nowiki>
 
   }}</nowiki>
If <code>'''<nowiki>|sc=</nowiki>'''</code> is set to ''none'' <samp>(none)</samp> will be shown.
+
If <code>'''<nowiki>|sc=</nowiki>'''</code> is set to ''none'' <samp>(none)</samp> will be shown. The other shortcuts are optional.
 
[[Category:Modules|*]]<!-- To modify sortkey -->
 
[[Category:Modules|*]]<!-- To modify sortkey -->
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 03:21, 17 April 2019

Module: {{{name}}}
Type {{{type}}}
First VLC version -
Last VLC version -
Operating system(s) all
Description {{{description}}}
Shortcut(s) -


Template for Documentation:Modules/* pages.

Usage

 {{Module
  |type = module type
  |first_version = Version of VLC in which plugin first appeared
  |last_version = Version of VLC in which plugin last appeared before being removed
  |os = Operating system of the plugin
  |description = A short, brief description of the plugin
  |sc = Shortcut
  |sc2 = Shortcut 2
  |sc3 = Shortcut 3
  |sc4 = Shortcut 4
  }}

If |sc= is set to none (none) will be shown. The other shortcuts are optional.