Template:Infobox caught: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(20 intermediate revisions by one other user not shown)
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 source="spring">
           <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 49: Line 48:
         </data>
         </data>
         <data source="summer">
         <data source="summer">
           <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 57: Line 55:
         </data>
         </data>
         <data source="fall">
         <data source="fall">
           <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 65: Line 62:
         </data>
         </data>
         <data source="winter">
         <data source="winter">
           <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}}<!--
           -->|<br />({{#explode:{{{fall|}}}|;|1}})}}}}
           -->|<br />({{#explode:{{{winter|}}}|;|1}})}}}}
           </format>
           </format>
         </data>
         </data>
Line 103: Line 99:
       </data>
       </data>
       <data source="weather">
       <data source="weather">
         <label>Weather</label>
         <label>[[Weather]]</label>
         <format><!--
         <format><!--
             -->{{#ifeq:{{{weather|}}}<!--
             -->{{#ifeq:{{{weather|}}}<!--
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:{{{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:{{lc:{{{difficulty}}} difficulty {{{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]]}}<!--
       -->{{#ifeq:{{{spring|}}}|&nbsp;| |[[Category:Spring fish]]}}<!--
       -->{{#if:{{{spring|}}}|[[Category:Spring fish]]}}<!--
       -->{{#ifeq:{{{summer|}}}|{{check|blank}}||[[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]]<!--
      -->{{#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:{{lc:{{{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 169: Line 175:
   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}]]}}}}<!--
-->{{#switch:{{{time}}}<!--
-->{{#switch:{{{time}}}<!--
   -->|All day = [[Category:Found all day]]<!--
   -->|All day = [[Category:Found all day]]<!--
Line 176: Line 181:
   -->|#default = [[Category:Pages with wrong time input]]<!--
   -->|#default = [[Category:Pages with wrong time input]]<!--
-->}}<!--
-->}}<!--
-->{{#switch:{{{time2}}}<!--
-->{{#if:{{{time2|}}}|<!--
  -->{{#switch:{{{time2}}}<!--
   -->|Morning|Afternoon|Evening = [[Category:Found in the {{lc:{{{time}}}}}]]<!--
   -->|Morning|Afternoon|Evening = [[Category:Found in the {{lc:{{{time}}}}}]]<!--
   -->|Night = [[Category:Found at night]]<!--
   -->|Night = [[Category:Found at night]]<!--
   -->|#default = [[Category:Pages with wrong time input]]<!--
   -->|#default = [[Category:Pages with wrong time input]]<!--
  -->}}<!--
-->}}<!--
-->}}<!--
-->{{#if:{{{time3|}}}|<!--
-->{{#switch:{{{time3}}}<!--
-->{{#switch:{{{time3}}}<!--
  -->|Morning|Afternoon|Evening = [[Category:Found in the {{lc:{{{time}}}}}]]<!--
    -->|Morning|Afternoon|Evening = [[Category:Found in the {{lc:{{{time}}}}}]]<!--
  -->|Night = [[Category:Found at night]]<!--
    -->|Night = [[Category:Found at night]]<!--
  -->|#default = [[Category:Pages with wrong time input]]<!--
    -->|#default = [[Category:Pages with wrong time input]]<!--
  -->}}<!--
-->}}<!--
-->}}<!--
-->{{#if:{{{journal_id|}}}|[[Category:{{{type}}}|{{{journal_id}}}]]|[[Category:{{{type}}}]][[Category:Item missing sort ID]]}}<!--
-->{{#if:{{{journal_id|}}}|[[Category:{{{type}}}|{{{journal_id}}}]]|[[Category:{{{type}}}]][[Category:Item missing sort ID]]}}<!--

Latest revision as of 23:56, 23 September 2025

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

Example