Template:Uses from: Difference between revisions
Content added Content deleted
(→Discussion: Further thoughts.) |
(Unfinished.) |
||
Line 11: | Line 11: | ||
-->}}<!-- |
-->}}<!-- |
||
-->[[Category:{{{1}}} |
-->[[Category:{{{1}}}]]<!-- |
||
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}}}|<!-- |
|||
--> <small>(<!-- |
|||
Is there more than one component? |
|||
(Unfinished...have to head to work.) |
|||
{{#if: {{{component2}}}| |
|||
⚫ | |||
--><includeonly><!-- |
--><includeonly><!-- |
||
-->{{#foreach: component$n$|<!-- |
-->{{#foreach: component$n$|<!-- |
||
-->[[SMW::on]]<!-- |
|||
-->{{Uses {{{1}}} package::component$n$|component$n$}}<!-- |
-->{{Uses {{{1}}} package::component$n$|component$n$}}<!-- |
||
Line 26: | Line 37: | ||
-->{{#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 {{{componentN}}} |
|||
-->}}<!-- |
-->}}<!-- |
||