Difference between revisions of "Template:Option"
Jump to navigation
Jump to search
(Testing...) |
(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) |
||
Line 1: | Line 1: | ||
− | * '''{{{name}}} {{#if:{{{value|}}}|{{#ifexist:{{{value|}}}|<[[{{{value}}}]]>|<{{{value|}}}>|}}|}} ''': {{{description}}}. {{#if:{{{default|}}}|''default value: {{{default}}}''|}} | + | * '''{{{name}}} {{#if:{{{value|}}}|{{#ifexist:{{{value|}}}|<[[{{{value}}}]]>|<{{{value|}}}>|}}|}} ''': {{{description}}}. {{#if:{{{default|}}}|''default value: {{{default}}}''|}}<noinclude> |
+ | ---- | ||
+ | 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 04:56, 25 January 2019
- {{{name}}} : {{{description}}}.
Syntax: {{Option | name=<foo> | value=<bar> | description=<baz> | default=<quux>}}
- name and description are required.
- value and default will be omitted if not specified.