Template:Creature Infobox: Difference between revisions

add plurality for creatures except for fish
ReisuDesign (talk | contribs)
No edit summary
 
(34 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#invoke:Infobox|main
--><infobox>
|kind = Creature
   <title source="name">
|sep = ,
  <format>{{#if:{{{number|}}}|<span class="number">{{{number}}} </span>}}{{{name|{{PAGENAME}}}}}</format>
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}
  </title>
|title = <!--
  <image source="image"/>
-->{{{title|<!--
  <group layout="horizontal">
   -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!--
    <data source="category">
  -->{{{name|{{PAGENAME}}}}}<!--
      <label>Category</label>
-->}}}
      <format>[[{{{category}}}]]</format>
|subtitle = {{{subtitle|}}}
    </data>
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
    <data source="type">
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
      <label>Type</label>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
      <format>[[{{{type}}}]]</format>
|sections = Checkbox, Information, Selling Prices
    </data>
 
  </group>
|Checkbox_nolabel = 1
  <data source="quality">
|Checkbox = Collected
    <label>Quality</label>
|Collected = Mark as collected <span class="tpt-instance wds-checkbox" data-category="{{PAGEID:Creature/List}}" data-pageid="{{PAGEID}}"></span>
    <format>{{{quality}}}</format>
 
  </data>
|Information_collapsible = Yes
  <data source="min_size">
|Information = Category, Group, Type, Quality, Size, Collection Score, Distribution, Habitat, Season, Active Time, Active Weather
    <label>Size</label>
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
    <format>{{{min_size}}} - {{{max_size}}} Li</format>
|Group = {{#if:{{{group|}}}|[[{{{group}}}]]}}
  </data>
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}}
  <data source="habitat">
|Quality = {{#if:{{{quality|}}}|{{#switch:{{{quality|}}}|Gray|Common= {{Common}}|Green|Blue|Uncommon = {{Uncommon}}|Purple|Rare = {{Rare}}|Gold|Yellow|Stellar = {{Stellar}}|Miracle= {{Miracle}}}}}}
    <label>Habitat</label>
|Size = {{{min_size|???}}} – {{{max_size|???}}} cm
    <format>{{{habitat}}}</format>
|Collection Score = {{#switch:{{{quality|}}}|<!--
  </data>
-->|Gray|Common = <ul><li>★ +5</li><li>★★ +13</li><li>★★★ +23</li></ul><!--
  <data source="distribution">
-->|Purple|Rare = <ul><li>★ +10</li><li>★★ +26</li><li>★★★ +46</li></ul><!--
    <label>Distribution</label>
-->|Gold|Stellar = <ul><li>★ +30</li><li>★★ +78</li><li>★★★ +138</li></ul><!--
    <format>{{#switch:{{{distribution|}}}|All Regions=All Regions|#default=[[{{{distribution}}}]]}}</format>
-->|#default = <ul><li>★ +?</li><li>★★ +?</li><li>★★★ +?</li></ul><!--
  </data>
-->}}
  <data source="time">
|Distribution = {{#if:{{{distribution|}}}|{{#switch:{{{distribution}}}|All Regions=All Regions|Exclusive to Islets=Exclusive to [[Islets]]|#default=[[{{{distribution}}}]]}}}}
    <label>Active Time</label>
|Habitat = {{{habitat|}}}
    <format>{{#switch:{{{time|}}}|All Day=All Day|#default=[[{{{time}}}]]}}</format>
|Season = {{#if:{{{season|}}}|{{Array|{{{season|}}}|;|[[{item}]]|,{space} }}}}
  </data>
|Active Time = {{#if:{{{time|}}}|{{#switch:{{{time}}}|All Day=All Day|#default=[[{{{time}}}]]}}}}
  <data source="description">
|Active Weather = {{#if:{{{weather|}}}|{{#switch:{{{weather}}}|Any Weather=Any Weather|#default=[[{{{weather}}}]]}}}}
    <format>'''Description'''<br>{{{description}}}</format>
 
  </data>
|Selling Prices_collapsible = Yes
</infobox><!--
|Selling Prices_columns = 3
|Selling Prices = ★, ★★, ★★★
|★ = {{Item|Dough|x={{{sell1|{{{price1|?}}}}}}|notext=1}}
|★★ = {{Item|Dough|x={{{sell2|{{{price2|?}}}}}}|notext=1}}
|★★★ = {{Item|Dough|x={{{sell3|{{{price3|?}}}}}}|notext=1}}
}}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!--
 
-->{{#invoke:Bucket|put|creatures
|+templateargs = name, number, quality, category, group, type, min_size, max_size, distribution, habitat, time, weather, images
|page_id = {{PAGEID}}
|folio_score = {{#switch:{{{quality|}}}|<!--
-->|Gray|Common = 5; 12; 22<!--
-->|Purple|Rare = 10; 24; 44<!--
-->|Gold|Stellar = 40; 96; 176<!--
-->|#default = ?; ?; ?<!--
-->}}
|folio_score-delimiter = ;
|sell = {{{sell1|{{{price1|?}}}}}}; {{{sell2|{{{price2|?}}}}}}; {{{sell3|{{{price3|?}}}}}}
|sell-delimiter = ;
|image = {{{image|{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png}}}
|images-delimiter = ;
|description = {{#invoke:Feature|unstripNoWikiFrame|{{{description|}}}}}
|removed = {{{removed|0}}}
}}<!--
 
-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
-->[[Category:Creatures]]<!--
-->[[Category:Creatures]]<!--
Sort
  Sort
-->{{#if:{{{number|}}}|[[Category:Creature|{{{number}}}]]|[[Category:Creature]][[Category:Creature Missing Number]]}}<!--
-->{{#if:{{{number|}}}|[[Category:Creature|{{{number}}}]]|[[Category:Creature]][[Category:Creature Missing Number]]}}<!--
Type
  Category
-->{{#switch:{{{type}}}|Fish=[[Category:{{{type}}}]]|Shore-Dweller|Insect=[[Category:{{{type}}}s]]}}<!--
-->{{#switch:{{{category}}}|Shore-Dweller=[[Category:Shore-Dwellers]]|Insect=[[Category:Insects]]|[[Category:{{{category}}}]]}}<!--
Category
  Group
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
-->{{#if:{{{group|}}}|[[Category:{{{group}}}]]}}<!--
Quality
  Type
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
  Quality
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
   {{#if:{{{quality|}}}|[[Category:Creature by Quality|{{#switch:{{{quality|}}}
   {{#if:{{{quality|}}}|[[Category:Creatures by Quality|{{#switch:{{{quality|}}}
   |Gray       = 0
   |Gray|Common        = 0
   |Green       = 1
   |Green|Blue|Uncommon = 1
   |Purple     = 2
   |Purple|Rare        = 2
   |Gold        = 3
   |Gold|Stellar       = 3
   |#default = 4
  |Miracle            = 4
   |#default           = 5
   }}]]}}<!--
   }}]]}}<!--
  Distribution
  Distribution
-->{{#if:{{{distribution|}}}|[[Category:{{{distribution}}} Creatures]]{{#if:{{{type|}}}|[[Category:{{{distribution}}} {{{type|}}}]]}}}}<!--
-->{{#if:{{{distribution|}}}|[[Category:{{{distribution}}} Creatures]]}}<!--
Time
-->{{#if:{{{time|}}}|[[Category:{{{time}}} Creatures]]}}<!--
-->{{#if:{{{time|}}}|[[Category:{{{time}}} Creatures]]{{#if:{{{type|}}}|[[Category:{{{time}}} {{{type|}}}]]}}}}<!--
-->{{#if:{{{season|}}}|{{Array|{{{season|}}}|;|[[Category:{item} Creatures]]}}}}<!--
-->{{#if:{{{weather|}}}|[[Category:{{{weather}}} Creatures]]}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>