Template:Uses from: Difference between revisions
Tweak to have {{{1}}} identify whether it's a library (or implementation, or whatever).
(Yanked version code for the time being. Rewrote description.) |
(Tweak to have {{{1}}} identify whether it's a library (or implementation, or whatever).) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1:
<div class="examplemeta libheader"><noinclude>'''Uses:''' (tool name) <small> ('''Component[s]:''' Component1, Component2, ComponentN )</small></noinclude><includeonly>'''Uses:''' [[SMW::off]]<!--
-->[[uses::
-->{{#set:Uses
-->[[Category:{{{
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.
Line 20:
End plural/singluar #if.
-->}}<!--
-->{{#foreach: component$n$|<!--
Line 28 ⟶ 25:
-->[[SMW::on]]<!--
-->[[Uses
Ending #foreach
Line 34 ⟶ 31:
Ending #if componentN
-->}}<!--
Only apply </small> if we have components.
-->{{#if: {{{component1|}}}|<!--
--> )</small> <!--
-->}}<!--
Ending examplemeta div.
--></includeonly
--><noinclude>
This template is intended to handle the case where a
==Discussion==
Line 47 ⟶ 49:
===What it does===
* Associates the page with the
** Semantically, as <tt><nowiki>[[Uses
** As part of <tt>[[:Category:{{{
** By linking to <tt>[[
* Associates the page with each component specified
** Semantically, as <tt><nowiki>[[Uses
** By linking to <tt><nowiki>[[
===What it needs to do (eventually)===
* Associate
* Associate component version information with the page.
|