Template:Uses from: Difference between revisions
Content added Content deleted
(Ok, so that part was missing closing braces.) |
(Closing braces instead of brackets would be nice there. Also, next test case.) |
||
Line 14: | Line 14: | ||
There must be a component N=1, for there to be a component N>1. If there's no component N=1, then there's no reason to put any of the component list artifacts in. |
There must be a component N=1, for there to be a component N>1. If there's no component N=1, then there's no reason to put any of the component list artifacts in. |
||
-->{{#if: {{{component1}}}|<!-- |
-->{{#if: {{{component1|}}}|cmp1defined|cmp1notdefined}}<!-- |
||
--> <small>(<!-- |
--> <small>(<!-- |
||
Line 38: | Line 38: | ||
-->{{#if: {{{version}}}|<!-- |
-->{{#if: {{{version}}}|<!-- |
||
-->{{#set:Uses {{{1}}} version={{{version}}} component=component$n$ |
-->{{#set:Uses {{{1}}} version={{{version}}} component=component$n$}}<!-- |
||
-->{{#set:Uses {{{1}}} component=component$n$ version={{{version}}} |
-->{{#set:Uses {{{1}}} component=component$n$ version={{{version}}}}}<!-- |
||
Ending #if |
Ending #if version |
||
-->}}<!-- |
-->|}}<!-- |
||
Ending #foreach |
Ending #foreach |
||
-->}}<!-- |
-->}}<!-- |
||
Ending #if |
Ending #if componentN |
||
-->}}<!-- |
-->}}<!-- |
||