Template:Uses from: Difference between revisions
Content added Content deleted
(Move '/small' outside the includonly.) |
(→Discussion: Indicate needed numeral component of template arg name.) |
||
Line 35: | Line 35: | ||
* Avoid using MW categories. Use semantic properties instead. (MW categories have particular behavior when used in semantic queries.) |
* 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> |
* 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 ''' |
* Accept an undefined number of additional ''named'' arguments as components of that library. (var name might be '''componentN''') Add a semantic property to the page indicating that it uses {{{1}}}. |
||
** <tt>uses '''{{{1}}}''' component::'''{{{ |
** <tt>uses '''{{{1}}}''' component::'''{{{component1}}}''', '''{{{component2}}}''', etc...</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}}}. |
* Accept library version as a single named argument. (var name might be '''version''') Tag the transcluding page as using that version of library {{{1}}}. |
||
** <tt>uses '''{{{1}}}''' version:'''{{{version}}}'''</tt>. |
** <tt>uses '''{{{1}}}''' version:'''{{{version}}}'''</tt>. |
||
* For each {{{ |
* For each {{{componentN}}} supplied, if any, apply |
||
** <tt>uses '''{{{1}}}''' version '''{{{version}}}''' component::'''{{{ |
** <tt>uses '''{{{1}}}''' version '''{{{version}}}''' component::'''{{{componentN}}}'''</tt>. |
||
** <tt>uses '''{{{1}}}''' component '''{{{ |
** <tt>uses '''{{{1}}}''' component '''{{{componentN}}}''' version::'''{{{version}}}'''</tt>. |
||
The richer the relationships we can define, the more powerful the search options we'll have available. |
The richer the relationships we can define, the more powerful the search options we'll have available. |