Difference between revisions of "Template:Option"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Add brackets to mimic command-line look)
(Add usage information)
Line 1: Line 1:
 
* '''{{{name}}} {{#if:{{{value|}}}|<{{{value}}}{{#if:{{{min|}}}|{{#if:{{{max|}}}|&#32;&#x5B;{{{min}}} .. {{{max}}}&#x5D;|}}|}}>|}} ''': {{{description<includeonly>|?</includeonly>}}}{{#if:{{{default|}}}|. ''default value: {{{default}}}''|}}<noinclude>
 
* '''{{{name}}} {{#if:{{{value|}}}|<{{{value}}}{{#if:{{{min|}}}|{{#if:{{{max|}}}|&#32;&#x5B;{{{min}}} .. {{{max}}}&#x5D;|}}|}}>|}} ''': {{{description<includeonly>|?</includeonly>}}}{{#if:{{{default|}}}|. ''default value: {{{default}}}''|}}<noinclude>
 +
 +
Usage:
 +
* name (required)
 +
* value (optional)
 +
** min (optional)
 +
** max (optional)
 +
* description (required)
 +
* default (optional)
 +
 +
min and max are only shown if both of them are specified, because no range should be given unbounded (if you think that is stupid, change it!)
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 07:14, 23 February 2019

  • {{{name}}} : {{{description}}}

Usage:

  • name (required)
  • value (optional)
    • min (optional)
    • max (optional)
  • description (required)
  • default (optional)

min and max are only shown if both of them are specified, because no range should be given unbounded (if you think that is stupid, change it!)