Difference between revisions of "Template:HerbTableBody"
From A Wiki in the Desert
| Line 3: | Line 3: | ||
{{!}} {{#if: {{{7}}}|[[{{{7}}}|thumb|250x250px]]}} | {{!}} {{#if: {{{7}}}|[[{{{7}}}|thumb|250x250px]]}} | ||
{{!}} [[{{{1}}}|{{#replace:{{{1}}}|Herb/}}]] | {{!}} [[{{{1}}}|{{#replace:{{{1}}}|Herb/}}]] | ||
| − | {{!}} {{#arraydefine:action|{{#replace:{{{2}}}|Action/|}}}}{{#ifeq:{{#arraysize:action}}|0|Unknown|{{#arrayprint:action|, |@@@@|[[Action/@@@@|@@@@]]}}}} | + | {{!}} {{#arraydefine:action|{{#replace:{{{2}}}|Action/|}}|, |sort=asc}}{{#ifeq:{{#arraysize:action}}|0|Unknown|{{#arrayprint:action|, |@@@@|[[Action/@@@@|@@@@]]}}}} |
{{!}} {{#if: {{{3|}}}|[[{{{3}}}|{{#replace:{{{3}}}|Herb/Leaf/|}}]]|Unknown}} | {{!}} {{#if: {{{3|}}}|[[{{{3}}}|{{#replace:{{{3}}}|Herb/Leaf/|}}]]|Unknown}} | ||
{{!}} {{#if: {{{4|}}}|[[{{{4}}}|{{#replace:{{{4}}}|Herb/Stem/|}}]]|Unknown}} | {{!}} {{#if: {{{4|}}}|[[{{{4}}}|{{#replace:{{{4}}}|Herb/Stem/|}}]]|Unknown}} | ||
Latest revision as of 02:04, 28 May 2021
This template is used as part of a semantic media wiki query to generate the body of a query for herb data.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Herb | 1 | no description | String | required |
| Requires | 2 | no description | String | required |
| Has leaf | 3 | no description | String | required |
| Has stem | 4 | no description | String | required |
| Has color | 5 | no description | String | required |
| Is similar to | 6 | no description | String | required |
| Has image | 7 | no description | String | required |