Template:Uses from: Difference between revisions

Content added Content deleted
(→‎Discussion: Cleaned up formatting. Should hopefully be easier to read.)
(I wonder if I almost made this readable. Yay whitespace.)
Line 1: Line 1:
<div class="examplemeta libheader">'''Uses:''' [[SMW::off]][[:Category:{{{1}}}|{{{1}}}]][[Category:{{{1}}}]][[SMW::on]] <small>('''Component:''' {{{2}}})</small><includeonly>{{#set:Uses library={{{1}}}}}{{#set:Uses tcllib package={{{2}}}}}</includeonly></div><noinclude>
<div class="examplemeta libheader">'''Uses:''' [[SMW::off]]<!--


-->[[:Category:{{{1}}}|{{{1}}}]]<!--


-->[[Category:{{{1}}}]][[SMW::on]]<!--


--> <small>('''Component:''' {{{2}}})</small><!--


--><includeonly><!--


-->{{#set:Uses library={{{1}}}}}<!--


-->{{#set:Uses tcllib package={{{2}}}}}<!--


--></includeonly></div><!--


--><noinclude>


This template is intended to handle the case where a library has many components within it (examples of this include CPAN, RubyGems and Tcllib). It has two required parameters: <tt><nowiki>{{</nowiki>uses from|</tt>''library''<tt>|</tt>''component''<tt><nowiki>}}</nowiki></tt>. The ''library'' is the name of the overall library of components (which should also be the name of a category here on RC) and the ''component'' is the name of the component within it (which can be almost any string).
This template is intended to handle the case where a library has many components within it (examples of this include CPAN, RubyGems and Tcllib). It has two required parameters: <tt><nowiki>{{</nowiki>uses from|</tt>''library''<tt>|</tt>''component''<tt><nowiki>}}</nowiki></tt>. The ''library'' is the name of the overall library of components (which should also be the name of a category here on RC) and the ''component'' is the name of the component within it (which can be almost any string).