Template:Crops/doc
Jump to navigation
Jump to search
Description
This template provides the common Table-Header (and a closing footer) for Crops. It is intended to be used in conjunction with Template:CropsRow, which requires transclusion tags on each page to be transcluded.
For more information on transclusion tags, please see https://www.mediawiki.org/wiki/Transclusion
Header:
{| class="wikitable sortable roundedborder" style="text-align: center; mw-collapsible sortable" style="width:100em; max-width:99%;" !Image !Name !Seeds Image !Seeds Source !Seed Buy Price !Description !Growth Time !Sell Price
Use
This template can be used by entering the following onto a relevant page.
{{Crops|header or footer}}
Example
{{Crops|header}} {{:Turnip|CropsRow}} {{Crops|footer}}
Image | Name | Seeds | Source | Description | Growth Time | Sell Price |
---|---|---|---|---|---|---|
Turnip |
General Store for 25t |
A fast growing spring crop. Has a spicy taste when raw, and a sweet taste when cooked. | 4 Days | 40t |
Syntax
<includeonly> {{#switch: {{lc:{{{1}}}}} |foot|footer= {{!}}- {{!}}} |head |header= {{{!}} class="wikitable sortable roundedborder" style="text-align: center; mw-collapsible sortable" style="width:100em; max-width:99%;" {{!}}- !class="unsortable" style="width:2%;" {{!}}Image !Name !class="unsortable" style="width:2%;" {{!}}Seeds<!-- -->{{#if:{{#pos:{{{hide|}}}|source}}||!!style="width:10em;" {{!}} Source}}<!-- -->{{#if:{{#pos:{{{hide|}}}|buyPrice}}||!!style="width:8em;" {{!}} Buy Price}}<!-- -->{{#if:{{#pos:{{{hide|}}}|description}}||!!Description}}<!-- -->{{#if:{{#pos:{{{hide|}}}|growthTime}}||!!style="width:10em;" {{!}}Growth Time}}<!-- -->{{#if:{{#pos:{{{hide|}}}|sellPrice}}||!!style="width:8em;" {{!}}Sell Price}} }} </includeonly>