Template:Infobox caught: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 38: Line 38:
       </data>
       </data>
     </group>
     </group>
     <group layout="horizontal">
     <group layout="horizontal" show="incomplete">
         <header>Conditions</header>
         <header>Conditions</header>
         <data source="spring">
         <data>
           <label>Spring</label>
           <label>Spring</label>
          <default>{{check|blank}}</default>
           <format>{{#if:{{{spring|}}}|<!--
           <format>{{#if:{{{spring|}}}|<!--
           -->{{#ifeq:{{#explode:{{{spring|}}}|;|0}}|1|{{check|yes}}|&nbsp;}}{{#if:{{#explode:{{{spring|}}}|;|1}}<!--
           -->{{#ifeq:{{#explode:{{{spring|}}}|;|0}}|1|{{check|yes}}|&nbsp;}}{{#if:{{#explode:{{{spring|}}}|;|1}}<!--
Line 48: Line 47:
           </format>
           </format>
         </data>
         </data>
         <data source="summer">
         <data>
           <label>Summer</label>
           <label>Summer</label>
          <default>{{check|blank}}</default>
           <format>{{#if:{{{summer|}}}|<!--
           <format>{{#if:{{{summer|}}}|<!--
           -->{{#ifeq:{{#explode:{{{summer|}}}|;|0}}|1|{{check|yes}}|&nbsp;}}{{#if:{{#explode:{{{summer|}}}|;|1}}<!--
           -->{{#ifeq:{{#explode:{{{summer|}}}|;|0}}|1|{{check|yes}}|&nbsp;}}{{#if:{{#explode:{{{summer|}}}|;|1}}<!--
Line 56: Line 54:
           </format>
           </format>
         </data>
         </data>
         <data source="fall">
         <data>
           <label>Fall</label>
           <label>Fall</label>
          <default>{{check|blank}}</default>
           <format>{{#if:{{{fall|}}}|<!--
           <format>{{#if:{{{fall|}}}|<!--
           -->{{#ifeq:{{#explode:{{{fall|}}}|;|0}}|1|{{check|yes}}|&nbsp;}}{{#if:{{#explode:{{{fall|}}}|;|1}}<!--
           -->{{#ifeq:{{#explode:{{{fall|}}}|;|0}}|1|{{check|yes}}|&nbsp;}}{{#if:{{#explode:{{{fall|}}}|;|1}}<!--
Line 64: Line 61:
           </format>
           </format>
         </data>
         </data>
         <data source="winter">
         <data>
           <label>Winter</label>
           <label>Winter</label>
          <default>{{check|blank}}</default>
           <format>{{#if:{{{winter|}}}|<!--
           <format>{{#if:{{{winter|}}}|<!--
           -->{{#ifeq:{{#explode:{{{winter|}}}|;|0}}|1|{{check|yes}}|&nbsp;}}{{#if:{{#explode:{{{winter|}}}|;|1}}<!--
           -->{{#ifeq:{{#explode:{{{winter|}}}|;|0}}|1|{{check|yes}}|&nbsp;}}{{#if:{{#explode:{{{winter|}}}|;|1}}<!--
Line 144: Line 140:
       -->= [[Category:{{{type}}}s]]<!--
       -->= [[Category:{{{type}}}s]]<!--
       -->{{#if:{{{rarity|}}}|[[Category:{{{rarity}}} {{lc:{{{type}}}}}s]]}}<!--
       -->{{#if:{{{rarity|}}}|[[Category:{{{rarity}}} {{lc:{{{type}}}}}s]]}}<!--
       -->{{#ifeq:{{{spring|}}}|&nbsp;| |[[Category:Spring {{lc:{{{type}}}}}s]]}}<!--
       -->{{#if:{{{spring|}}}|[[Category:Spring {{lc:{{{type}}}}}s]]}}<!--
       -->{{#ifeq:{{{summer|}}}|&nbsp;| |[[Category:Summer {{lc:{{{type}}}}}s]]}}<!--
       -->{{#if:{{{summer|}}}|[[Category:Summer {{lc:{{{type}}}}}s]]}}<!--
       -->{{#ifeq:{{{fall|}}}|&nbsp;| |[[Category:Fall {{lc:{{{type}}}}}s]]}}<!--
       -->{{#if:{{{fall|}}}|[[Category:Fall {{lc:{{{type}}}}}s]]}}<!--
       -->{{#ifeq:{{{winter|}}}|&nbsp;| |[[Category:Winter {{lc:{{{type}}}}}s]]}}<!--
       -->{{#if:{{{spring|}}}|[[Category:Winter {{lc:{{{type}}}}}s]]}}<!--
       -->{{#switch:{{{difficulty}}}<!--
       -->{{#switch:{{{difficulty}}}<!--
         -->|Very Easy|Easy|Medium|Hard|Very Hard = [[Category:{{lc:{{{difficulty}}} difficulty {{{type}}}s}}]]<!--
         -->|Very Easy|Easy|Medium|Hard|Very Hard = [[Category:{{lc:{{{difficulty}}} difficulty {{{type}}}s}}]]<!--
Line 155: Line 151:
       -->= [[Category:{{{type}}}]]<!--
       -->= [[Category:{{{type}}}]]<!--
       -->{{#if:{{{rarity|}}}|[[Category:{{{rarity}}} fish]]}}<!--
       -->{{#if:{{{rarity|}}}|[[Category:{{{rarity}}} fish]]}}<!--
       -->{{#ifeq:{{{spring|}}}|&nbsp;| |[[Category:Spring fish]]}}<!--
       -->{{#if:{{{spring|}}}|[[Category:Spring fish]]}}<!--
       -->{{#ifeq:{{{summer|}}}|0||[[Category:Summer fish]]}}<!--
       -->{{#if:{{{summer|}}}|[[Category:Summer fish]]}}<!--
       -->{{#ifeq:{{{fall|}}}|&nbsp;| |[[Category:Fall fish]]}}<!--
       -->{{#if:{{{fall|}}}|[[Category:Fall fish]]}}<!--
       -->{{#ifeq:{{{winter|}}}|&nbsp;| |[[Category:Winter fish]]}}<!--
       -->{{#if:{{{winter|}}}|[[Category:Winter fish]]}}<!--
       -->{{#if:{{{size|}}}|[[Category:{{{size}}} size fish]]}}<!--
       -->{{#if:{{{size|}}}|[[Category:{{{size}}} size fish]]}}<!--
       -->{{#if:{{{pattern|}}}|[[Category:{{{pattern}}} pattern fish]]<!--
       -->{{#if:{{{pattern|}}}|[[Category:{{{pattern}}} pattern fish]]<!--
Line 169: Line 165:
   Categories
   Categories
-->{{#if:{{{item_group|}}}|{{Array|{{{item_group}}}|;|[[Category:{item}s]]}}}}<!--
-->{{#if:{{{item_group|}}}|{{Array|{{{item_group}}}|;|[[Category:{item}s]]}}}}<!--
-->{{#if:{{{weather|}}}|{{Array|{{{weather|}}}|;|[[Category:Caught while {item}]]}}}}<!--
-->{{#ifeq:{{{weather|}}}|Any|[[Category:Caught in any weather]]|{{Array|{{{weather|}}}|;|[[Category:Caught while {{lc:{item}}}]]}}}}<!--
-->{{#switch:{{{time}}}<!--
-->{{#switch:{{{time}}}<!--
   -->|All day = [[Category:Found all day]]<!--
   -->|All day = [[Category:Found all day]]<!--

Revision as of 13:45, 16 February 2024

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

Example