Template:Bugs/doc

From Fields of Mistria Wiki
Jump to navigation Jump to search

Description

This template provides the common Table-Header (and a closing footer) for Bugs. It is intended to be used in conjunction with Template:BugRow, 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"
!Image
!Name
!Description
!Sell Price
!Location
!Spawn Condition
!Season
!Weather
!Time
!Museum

Use

This template can be used by entering the following onto a relevant page.

{{Bugs|header or footer}}

Example

{{Bugs|header}}
{{:Bumblebee|BugRow}}
{{Bugs|footer}}
Image Name Description Sell Price Location Spawn Condition Season Weather Time Museum



Bumblebee.png Bumblebee A common insect found during the daytime in all seasons but winter. data-sort-value="10">Tesserae Icon.png10t Overworld Season icon spring.png Spring
Season icon summer.png Summer
Season icon autumn.png Fall
Weather icon sunny.png Sunny
Weather icon petals.png Wind
Weather icon leaves.png Wind
Day No



Syntax

<onlyinclude>
{{#switch: {{lc:{{{1}}}}}
|foot|footer=
{{!}}-
{{!}}}
|head
|header=
{{{!}} class="wikitable sortable roundedborder"
{{!}}-
!class="unsortable"{{!}}Image
!Name<!--
-->{{#if:{{#pos:{{{hide|}}}|description}}||!!Description}}<!--
-->{{#if:{{#pos:{{{hide|}}}|sellPrice}}||!!Sell Price}}<!--
-->{{#if:{{#pos:{{{hide|}}}|location}}||!!Location}}<!--
-->{{#if:{{#pos:{{{hide|}}}|spawnCondition}}||!!Spawn Condition}}<!--
-->{{#if:{{#pos:{{{hide|}}}|season}}||!!Season}}<!--
-->{{#if:{{#pos:{{{hide|}}}|weather}}||!!Weather}}<!--
-->{{#if:{{#pos:{{{hide|}}}|time}}||!!Time}}<!--
-->{{#if:{{#pos:{{{hide|}}}|museum}}||!!Museum}}
}}
</onlyinclude>