Template:Tree list item: Difference between revisions

From Heritage Apple Corps
No edit summary
Tag: Reverted
Bot (talk | contribs)
Bot: Create SMW helper template
Tag: Reverted
Line 1: Line 1:
  <includeonly>* DEBUG: 1={{{1|EMPTY}}} 2={{{2|EMPTY}}} 3={{{3|EMPTY}}} 4={{{4|EMPTY}}} [[{{{1}}}|Link]]</includeonly><noinclude>                                                                                                                                                  
<includeonly>* [[{{{1}}}|Tree #{{{3|{{{1}}}}}}]]{{#if:{{{2|}}}| - {{{2}}}}}</includeonly><noinclude>
  Debug version                                                                                                                                                                                                                                                                     
== Usage ==
  </noinclude>
Formats a tree link for use in SMW query results.
 
This template is called by SMW #ask queries with:
<pre>
{{#ask: [[Has orchard::SomeOrchard]]
|?Has variety
|?Has field tag
|template=Tree list item
}}
</pre>
 
Parameters (passed by SMW as numbered params):
* '''1''' - Page title (automatic)
* '''2''' - First printout (Has variety)
* '''3''' - Second printout (Has field tag)
 
[[Category:Formatting templates]]
</noinclude>

Revision as of 22:05, 31 January 2026

Usage

Formats a tree link for use in SMW query results.

This template is called by SMW #ask queries with:

{{#ask: [[Has orchard::SomeOrchard]]
 |?Has variety
 |?Has field tag
 |template=Tree list item
}}

Parameters (passed by SMW as numbered params):

  • 1 - Page title (automatic)
  • 2 - First printout (Has variety)
  • 3 - Second printout (Has field tag)