Jump to content

Template:Uses from: Difference between revisions

→‎Discussion: Cleaned up formatting. Should hopefully be easier to read.
(Some basic usage instructions)
(→‎Discussion: Cleaned up formatting. Should hopefully be easier to read.)
Line 11:
Other ultimate goals that make its behavior variously different from current {{tmpl|tcllib}}, {{tmpl|libheader}} and {{tmpl|works with}}:
* Avoid using MW categories. Use semantic properties instead. (MW categories have particular behavior when used in semantic queries.)
* Apply the semantic property <tt>'''uses::{{{1}}}'''</tt>
* Accept an undefined number of additional ''named'' arguments as components of that library. (var name might be '''component''') Add a semantic property to the page indicating that it uses {{{1}}}. i.e. semantic syntax '''uses {{{1}}} component::{{{component}}}'''
** <tt>uses '''{{{1}}}''' component::'''{{{component}}}'''</tt>
* Accept library version as a single named argument. (var name might be '''version''') Tag the transcluding page as using that version of library {{{1}}}. i.e. semantic syntax '''uses {{{1}}} version:{{{version}}}'''.
** If {{{component}}} is supplied, also apply '''uses {{{1}}} version {{{version}}} component::{{{component}}}' and '''uses {{{1}}} component {{{component}}} version::{{{version}}}'''.
** <tt>uses '''{{{1}}}''' version:'''{{{version}}}'''</tt>.
* For each {{{component}}} supplied, if any, apply
** <tt>uses '''{{{1}}}''' version '''{{{version}}}''' component::'''{{{component}}}'''</tt>.
** <tt>uses '''{{{1}}}''' component '''{{{component}}}''' version::'''{{{version}}}'''</tt>.
 
The richer the relationships we can define, the more powerful the search options we'll have available.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.