Template:Tree list item: Difference between revisions
From Heritage Apple Corps
Bot: Create SMW helper template |
Bot: Create SMW helper template |
||
| Line 1: | Line 1: | ||
<includeonly>* [[{{{1}}}|Tree #{{{ | <includeonly>* [[{{{1}}}|Tree #{{{Tag|{{{1}}}}}}]]{{#if:{{{Variety|}}}| - {{{Variety}}}}}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
Formats a tree link for use in SMW query results. | Formats a tree link for use in SMW query results. | ||
This template is called by SMW #ask queries with: | |||
<pre> | <pre> | ||
{{ | {{#ask: [[Has orchard::SomeOrchard]] | ||
|?Has variety=Variety | |||
|?Has field tag=Tag | |||
|template=Tree list item | |||
}} | |||
</pre> | </pre> | ||
Parameters: | Parameters (passed by SMW): | ||
* '''1''' - | * '''1''' - Page title (automatic) | ||
* ''' | * '''Tag''' - Field tag number from Has field tag property | ||
* ''' | * '''Variety''' - Variety name from Has variety property | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 21:25, 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=Variety
|?Has field tag=Tag
|template=Tree list item
}}
Parameters (passed by SMW):
- 1 - Page title (automatic)
- Tag - Field tag number from Has field tag property
- Variety - Variety name from Has variety property

