Template:Tree list item: Difference between revisions

From Heritage Apple Corps
No edit summary
Tag: Manual revert
Bot (talk | contribs)
Bot: Update template for unified tree list (show condition)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>* [[{{{1}}}|Tree #{{{Tag|{{{1}}}}}}]]{{#if:{{{Variety|}}}| - {{{Variety}}}}}</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=Variety
|?Has field tag=Tag
|template=Tree list item
}}
</pre>
 
Parameters (passed by SMW):
* '''1''' - Page title (automatic)
* '''Tag''' - Field tag number from Has field tag property
* '''Variety''' - Variety name from Has variety property
 
[[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.