Template:Infobox caught: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
(add links to labels)
 
(8 intermediate revisions by the same user not shown)
Line 41: Line 41:
         <header>Conditions</header>
         <header>Conditions</header>
         <data source="spring">
         <data source="spring">
           <label>Spring</label>
           <label>[[Spring]]</label>
           <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 48:
         </data>
         </data>
         <data source="summer">
         <data source="summer">
           <label>Summer</label>
           <label>[[Summer]]</label>
           <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 55: Line 55:
         </data>
         </data>
         <data source="fall">
         <data source="fall">
           <label>Fall</label>
           <label>[[Fall]]</label>
           <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 62: Line 62:
         </data>
         </data>
         <data source="winter">
         <data source="winter">
           <label>Winter</label>
           <label>[[Winter]]</label>
           <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 99: Line 99:
       </data>
       </data>
       <data source="weather">
       <data source="weather">
         <label>Weather</label>
         <label>[[Weather]]</label>
         <format><!--
         <format><!--
             -->{{#ifeq:{{{weather|}}}<!--
             -->{{#ifeq:{{{weather|}}}<!--
Line 143: Line 143:
       -->{{#if:{{{summer|}}}|[[Category:Summer {{lc:{{{type}}}}}s]]}}<!--
       -->{{#if:{{{summer|}}}|[[Category:Summer {{lc:{{{type}}}}}s]]}}<!--
       -->{{#if:{{{fall|}}}|[[Category:Fall {{lc:{{{type}}}}}s]]}}<!--
       -->{{#if:{{{fall|}}}|[[Category:Fall {{lc:{{{type}}}}}s]]}}<!--
       -->{{#if:{{{spring|}}}|[[Category:Winter {{lc:{{{type}}}}}s]]}}<!--
       -->{{#if:{{{winter|}}}|[[Category:Winter {{lc:{{{type}}}}}s]]}}<!--
      -->{{#ifeq:{{{weather|}}}<!--
        -->|Any<!--
        -->|[[Category:Any weather {{{type}}}]]<!--
        -->|{{Array|{{{weather}}}|;|[[Category:{item} weather {{lc:{{{type}}}}}s]]}}<!--
      -->}}<!--
       -->{{#switch:{{{difficulty}}}<!--
       -->{{#switch:{{{difficulty}}}<!--
         -->|Very easy|Easy|medium|Hard|Very hard = [[Category:{{{{difficulty}}} difficulty {{lc:{{{type}}}s}}]]<!--
         -->|Very easy|Easy|Medium|Hard|Very hard = [[Category:{{{difficulty}}} difficulty {{lc:{{{type}}}s}}]]<!--
         -->|#default = [[Category:Pages with wrong input]]<!--
         -->|#default = [[Category:Pages with wrong difficulty input]]<!--
       -->}}<!--
       -->}}<!--
   -->|Fish<!-- fishing
   -->|Fish<!-- fishing
       -->= [[Category:{{{type}}}]]<!--
       -->= [[Category:{{{type}}}es]]<!--
       -->{{#if:{{{rarity|}}}|[[Category:{{{rarity}}} fish]]}}<!--
       -->{{#if:{{{rarity|}}}|[[Category:{{{rarity}}} fish]]}}<!--
       -->{{#if:{{{spring|}}}|[[Category:Spring fish]]}}<!--
       -->{{#if:{{{spring|}}}|[[Category:Spring fish]]}}<!--
Line 157: Line 162:
       -->{{#if:{{{size|}}}|[[Category:{{{size}}} size fish]]}}<!--
       -->{{#if:{{{size|}}}|[[Category:{{{size}}} size fish]]}}<!--
       -->{{#if:{{{pattern|}}}|[[Category:{{{pattern}}} pattern fish]]<!--
       -->{{#if:{{{pattern|}}}|[[Category:{{{pattern}}} pattern fish]]<!--
      -->{{#ifeq:{{{weather|}}}<!--
        -->|Any<!--
        -->|[[Category:Any weather fish]]<!--
        -->|{{Array|{{{weather}}}|;|[[Category:{item} weather fish]]}}<!--
      -->}}<!--
       -->{{#switch:{{{difficulty}}}<!--
       -->{{#switch:{{{difficulty}}}<!--
         -->|Very easy|Easy|Medium|Hard|Very hard = [[Category:{{{difficulty}}} difficulty fish]]<!--
         -->|Very easy|Easy|Medium|Hard|Very hard = [[Category:{{{difficulty}}} difficulty fish]]<!--
         -->|#default = [[Category:Pages with wrong input]]<!--
         -->|#default = [[Category:Pages with wrong difficulty input]]<!--
       -->}}<!--
       -->}}<!--
   -->|#default = [[Category:Pages with wrong difficulty input]]<!--
   -->|#default = [[Category:Pages with wrong difficulty input]]<!--
Line 165: Line 175:
   Categories
   Categories
-->{{#if:{{{item_group|}}}|{{Array|{{{item_group}}}|;|[[Category:{item}s]]}}}}<!--
-->{{#if:{{{item_group|}}}|{{Array|{{{item_group}}}|;|[[Category:{item}s]]}}}}<!--
-->{{#ifeq:{{{weather|}}}|Any|[[Category:Caught in any weather]]|{{Array|{{{weather|}}}|;|{{[[Category:Caught in lc:{item} weather]]}}}}}}<!--
-->{{#switch:{{{time}}}<!--
-->{{#switch:{{{time}}}<!--
   -->|All day = [[Category:Found all day]]<!--
   -->|All day = [[Category:Found all day]]<!--

Latest revision as of 06:53, 17 February 2024

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

Example