Difference between revisions of "Template:Option"

From VideoLAN Wiki
Jump to navigation Jump to search
(Done testing. Works well enough for now. Now it links to valid definitions. For example on Documentation:Modules/image, string (valid page) is linked but png, jpeg (invalid page) is not)
(Reverting to Dionoea's edit: it's redlinking articles in Special:WantedPages)
Line 1: Line 1:
* '''{{{name}}} {{#if:{{{value|}}}|{{#ifexist:{{{value|}}}|<[[{{{value}}}]]>|<{{{value|}}}>|}}|}} ''': {{{description}}}. {{#if:{{{default|}}}|''default value: {{{default}}}''|}}<noinclude>
+
* '''{{{name}}} {{#if:{{{value|}}}|<{{{value}}}>|}} ''': {{{description}}}. {{#if:{{{default|}}}|''default value: {{{default}}}''|}}
----
 
Syntax: <nowiki>{{Option | name=<foo> | value=<bar> | description=<baz> | default=<quux>}}</nowiki>
 
 
 
* ''name'' and ''description'' are required.
 
* ''value'' and ''default'' will be omitted if not specified.</noinclude>
 

Revision as of 08:47, 25 January 2019

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