Template:Uses from: Difference between revisions
(Fixed visible preview.) |
(Fix display of </small> when there are no components.) |
||
Line 31: | Line 31: | ||
Ending #if componentN |
Ending #if componentN |
||
-->}}<!-- |
|||
Only apply </small> if we have components. |
|||
-->{{#if: {{{component1|}}}|<!-- |
|||
--> )</small> <-- |
|||
-->}}<!-- |
-->}}<!-- |
||
Ending examplemeta div. |
Ending examplemeta div. |
||
-- |
--></includeonly></div><!-- |
||
--><noinclude> |
--><noinclude> |
Revision as of 04:17, 20 November 2010
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: {{uses from|library|component}}. 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).
Discussion
This template is derived from {{tcllib}}, and seeks to have a similar aim, except more generically, and as a potential eventual replacement for {{libheader}} and {{works with}}. (And {{tcllib}}, if it achieves sufficient functionality.)
What it does
- Associates the page with the library:
- Semantically, as [[Uses library::{{{1}}}]
- As part of [[:Category:{{{1}}}]] (though this may eventually change)
- By linking to [[Library/{{{1}}}]].
- Associates the page with each component specified
- Semantically, as [[Uses library::{{{1}}}/{{{componentN}}}]] (Placing the component as a subpage of the library
- By linking to [[Library/{{{1}}}/{{{componentN}}}]].
What it needs to do (eventually)
- Associate library version information with the page.
- Associate component version information with the page.
What it should do
- Avoid using MediaWiki categories as possible.
The richer the relationships we can define, the more powerful the search options we'll have available.