Template:Infobox caught: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><infobox> <title source="title"> <default>{{PAGENAME}}</default> </title> <image source="image"> <default>{{Exists|File:{{#titleparts:{{PAGENAME}}}}.png|{{#titleparts:{{PAGENAME}}}}.png|}}</default> <caption source="description" /> </image> <group> <header>Information</header> <data source="type"> <label>Type</label> <!-- Type shown in in-game details --> <format><!-- -->{{#switch:{{{t...")
 
(add links to labels)
 
(23 intermediate revisions by the same user not shown)
Line 36: Line 36:
       <data source="pattern">
       <data source="pattern">
       <label>Pattern</label>
       <label>Pattern</label>
      </data>
      <data source="location">
        <label>Location</label>
        <format>{{Array|{{{location|}}}|;|[[{item}]]|<br />|sort=0}}</format>
       </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>&nbsp;</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 53: Line 48:
         </data>
         </data>
         <data source="summer">
         <data source="summer">
           <label>Summer</label>
           <label>[[Summer]]</label>
          <default>&nbsp;</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 61: Line 55:
         </data>
         </data>
         <data source="fall">
         <data source="fall">
           <label>Fall</label>
           <label>[[Fall]]</label>
          <default>&nbsp;</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 69: Line 62:
         </data>
         </data>
         <data source="winter">
         <data source="winter">
           <label>Winter</label>
           <label>[[Winter]]</label>
          <default>&nbsp;</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 107: Line 99:
       </data>
       </data>
       <data source="weather">
       <data source="weather">
         <label>Weather</label>
         <label>[[Weather]]</label>
         <format><!--
         <format><!--
             -->{{#ifeq:{{{weather|}}}<!--
             -->{{#ifeq:{{{weather|}}}<!--
Line 148: 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|}}}|&nbsp;| |[[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 173: 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 180: 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]]}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
Necessary new line due to styling issues
Necessary new line due to styling issues
Line 197: Line 203:


Examples
Examples
--><noinclude>{{Documentation|content=
--><noinclude>{{Documentation|type=Infobox|content=
==Example==
==Example==
{{Infobox caught
{{Infobox caught

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