Template:Infobox caught: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
(add links to labels)
 
(17 intermediate revisions by the same user not shown)
Line 40: Line 40:
     <group layout="horizontal" show="incomplete">
     <group layout="horizontal" show="incomplete">
         <header>Conditions</header>
         <header>Conditions</header>
         <data>
         <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 47: Line 47:
           </format>
           </format>
         </data>
         </data>
         <data>
         <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 54: Line 54:
           </format>
           </format>
         </data>
         </data>
         <data>
         <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 61: Line 61:
           </format>
           </format>
         </data>
         </data>
         <data>
         <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:{{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]]}}<!--
       -->{{#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:{{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 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 while {{lc:{item}}}]]}}}}<!--
-->{{#switch:{{{time}}}<!--
-->{{#switch:{{{time}}}<!--
   -->|All day = [[Category:Found all day]]<!--
   -->|All day = [[Category:Found all day]]<!--
Line 172: 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 06:53, 17 February 2024

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

Example