Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:FishImage: Difference between revisions

Template page
m adjusted syntax and parameters
changed my mind
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#if: {{{type|}}}|[[Category:Images of {{ucfirst:{{lc:{{{type}}}}}}} fish]]}}<!--
{{#if: {{{animated|}}}|[[Category:Animated images]]}}<!--
 
-->{{#if: {{{creature|}}}|[[Category:Images of {{#switch: {{lc:{{{creature}}}}}|fish|crab = {{ucfirst:{{{creature}}}}}s|fish = Fish|crab= Crabs}}]]}}<!--
 
-->{{#if: {{{type|}}}|[[Category:Images of {{#switch: {{lc:{{{type}}}}}|normal|elusive= {{ucfirst:{{{type}}}}}s|normal = Normal|elusive = Elusive}} fish]]}}<!--
 
-->{{#if: {{{rarity|}}}|[[Category:Images of {{ucfirst:{{lc:{{{rarity}}}}}}} fish]]}}<!--
-->{{#if: {{{rarity|}}}|[[Category:Images of {{ucfirst:{{lc:{{{rarity}}}}}}} fish]]}}<!--
-->{{#if: {{{island|}}}|[[Category:Images of {{{island}}} fish]]}}<!--
-->{{#if: {{{time|}}}|[[Category:Images of {{ucfirst:{{lc:{{{time}}}}}}}-time fish]]}}</includeonly><noinclude>


-->{{#if: {{{rarity2|}}}|[[Category:Images of {{ucfirst:{{lc:{{{rarity2}}}}}}} fish]]}}<!--
-->{{#if: {{{island|}}}|[[Category:Images of {{{island}}} fish]]}}</includeonly>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"type": {
"description": "The type of the fish",
"type": "string",
"required": true,
"label": "Type",
"suggestedvalues": [
"Normal",
"Elusive"
]
},
"rarity": {
"rarity": {
"description": "The rarity of the fish",
"description": "The rarity of the fish",
Line 29: Line 30:
"Mythic"
"Mythic"
]
]
},
"rarity2": {
"description": "The second rarity (i.e. Seasonal or Limited) of the fish, if any",
"type": "string",
"required": false
},
},
"island": {
"island": {
"label": "Island",
"label": "Island",
"description": "The island collection the fish belongs to",
"description": "The island (or grotto) collection the fish belongs to",
"type": "string",
"type": "string",
"required": true,
"required": true,
Line 44: Line 40:
"Floral Forest",
"Floral Forest",
"Dark Grove",
"Dark Grove",
"Sunken Swamp",
"Tropical Overgrowth",
"Tropical Overgrowth",
"Coral Shores",
"Coral Shores",
"Twisted Swamp",
"Twisted Swamp",
"Mirrored Oasis",
"Ancient Sands",
"Ancient Sands",
"Blazing Canyon",
"Blazing Canyon",
"Ashen Wastes"
"Ashen Wastes",
"Volcanic Springs"
]
]
},
},
"creature": {
"time": {
"label": "Creature",
"description": "The time that the fish is available",
"description": "What kind of creature the fish is categorized as",
"type": "string",
"type": "string",
"suggestedvalues": [
"required": true,
"fish",
"crab"
],
"required": true
},
"type": {
"label": "Type",
"label": "Type",
"description": "the type of fish",
"type": "string",
"suggestedvalues": [
"suggestedvalues": [
"normal",
"Day",
"elusive"
"Night",
"Always"
]
]
}
}
Line 74: Line 65:
"description": "This template is intended for use in adding categories to a fish's file page.",
"description": "This template is intended for use in adding categories to a fish's file page.",
"paramOrder": [
"paramOrder": [
"type",
"rarity",
"island",
"island",
"creature",
"time"
"rarity",
"rarity2",
"type"
]
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 11:16, 19 December 2024


This template is intended for use in adding categories to a fish's file page.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Typetype

The type of the fish

Suggested values
Normal Elusive
Stringrequired
Rarityrarity

The rarity of the fish

Suggested values
Common Uncommon Rare Epic Legendary Mythic
Stringrequired
Islandisland

The island (or grotto) collection the fish belongs to

Suggested values
Verdant Woods Floral Forest Dark Grove Sunken Swamp Tropical Overgrowth Coral Shores Twisted Swamp Mirrored Oasis Ancient Sands Blazing Canyon Ashen Wastes Volcanic Springs
Stringrequired
Typetime

The time that the fish is available

Suggested values
Day Night Always
Stringrequired