Template:Par2b
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) m (...no fix) |
Raffriff42 (Talk | contribs) m (notes) |
||
Line 9: | Line 9: | ||
---- | ---- | ||
− | Variant of [[:Template:Par2]] for testing; intended sample output: | + | Variant of [[:Template:Par2]] for testing; |
+ | |||
+ | |||
+ | Would like to use conditional test for presence of argument {{{3}}}: | ||
+ | <br><tt><nowiki> | ||
+ | {{#if:{{{3|}}}| (default '''{{{3}}}''')|}} | ||
+ | </nowiki></tt> | ||
+ | <br><br> | ||
+ | '''DOES NOT WORK '''due to lack of mediawiki [http://www.mediawiki.org/wiki/Extension:ParserFunctions Extension:ParserFunctions] | ||
+ | |||
+ | *Even if extension ''were'' installed, would not work if default is ' ' (space) ...'''which they are on many, many pages'''. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ---- | ||
+ | ...intended sample output: | ||
Revision as of 02:10, 26 December 2015
(default none)
Variant of Template:Par2 for testing;
Would like to use conditional test for presence of argument {{{3}}}:
{{#if:{{{3|}}}| (default '''{{{3}}}''')|}}
DOES NOT WORK due to lack of mediawiki Extension:ParserFunctions
- Even if extension were installed, would not work if default is ' ' (space) ...which they are on many, many pages.
...intended sample output:
Foo(clip [, float gain_y] [, int size] [, boolean autogain] [, string file])
- clip (default none)
- Input clip
- float gain_y (default 2)
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas eros nulla, fringilla fringilla diam id, luctus dapibus nibh.
- int size (default 24)
- Cras in mauris ac eros mollis pellentesque non non metus. Proin vitae mauris tempor, tristique sem vitae, suscipit ante.
- bool autogain (default false)
- Integer mattis purus id fringilla malesuada. Cras justo sapien, tincidunt vel pharetra id, cursus at quam.
- string pixel_type (default "RGB32")
- Vivamus ipsum augue, rutrum eu nunc consectetur, rutrum sagittis neque. Sed erat ligula, ultricies id quam eleifend, maximus lacinia erat.