Template:Tree list item: Difference between revisions

From Heritage Apple Corps
Bot (talk | contribs)
Bot: Create SMW helper template
Bot (talk | contribs)
Bot: Update template for unified tree list (show condition)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[{{{1}}}|Tree #{{{2|{{{1}}}}}}]]{{#if:{{{3|}}}| - {{{3}}}}}</includeonly><noinclude>
<noinclude>
== Usage ==
Formats a single tree entry in the orchard tree list.
Formats a tree link for use in SMW query results.


This template is called by SMW #ask queries with:
Used by Template:Orchard tree list. Do not call directly.
<pre>
</noinclude><includeonly>
{{#ask: [[Has orchard::SomeOrchard]]
* [[{{{1}}}|Tree #{{{2}}}]]{{#if:{{{3|}}}| - {{{3}}}}}{{#if:{{{4|}}}| ({{{4}}})}}</includeonly>
|?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>

Latest revision as of 23:46, 1 February 2026

Formats a single tree entry in the orchard tree list.

Used by Template:Orchard tree list. Do not call directly.