Template:FishImage: Difference between revisions
Template page
More actions
Created page with "<includeonly> {{#if: {{{animated|}}}|Category:Animated images}}<!-- -->{{#if: {{{creature|}}}|[[Category:Images of {{#switch: {{ucfirst:{{lc:{{{creature}}}}} |fish = Fish |crab = Crabs}}]]}}<!-- -->{{#if: {{{island|}}}|[[Category:Images of {{{island}}} Island Fish]]}}<!-- -->{{#if: {{{type|}}}|[[Category:Images of {{ucfirst:{{lc:{{{type}}}}}}} Fish]]}}<!-- -->{{#if: {{{rarity|}}}|[[Category:Images of {{ucfirst:{{lc:{{{rarity}}}}}}} Fish]]}}<!-- -->{{#if: {{{rari..." |
m adjusted syntax and parameters |
||
Line 2: | Line 2: | ||
{{#if: {{{animated|}}}|[[Category:Animated images]]}}<!-- | {{#if: {{{animated|}}}|[[Category:Animated images]]}}<!-- | ||
-->{{#if: {{{creature|}}}|[[Category:Images of {{#switch: {{ | -->{{#if: {{{creature|}}}|[[Category:Images of {{#switch: {{lc:{{{creature}}}}}|fish|crab = {{ucfirst:{{{creature}}}}}s|fish = Fish|crab= Crabs}}]]}}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{type|}}}|[[Category:Images of {{#switch: {{lc:{{{type}}}}}|normal|elusive= {{ucfirst:{{{type}}}}}s|normal = Normal|elusive = Elusive}} fish]]}}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{rarity|}}}|[[Category:Images of {{ucfirst:{{lc:{{{rarity}}}}}}} fish]]}}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{rarity2|}}}|[[Category:Images of {{ucfirst:{{lc:{{{rarity2}}}}}}} fish]]}}<!-- | ||
-->{{#if: {{{ | -->{{#if: {{{island|}}}|[[Category:Images of {{{island}}} fish]]}}</includeonly> | ||
</includeonly> | |||
<noinclude> | <noinclude> | ||
Line 17: | Line 16: | ||
{ | { | ||
"params": { | "params": { | ||
"rarity": { | "rarity": { | ||
"description": "The rarity of the fish", | "description": "The rarity of the fish", | ||
Line 50: | Line 39: | ||
"description": "The island collection the fish belongs to", | "description": "The island collection the fish belongs to", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true, | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
" | "Verdant Woods", | ||
" | "Floral Forest", | ||
" | "Dark Grove", | ||
"Tropical Overgrowth", | |||
"Coral Shores", | |||
"Twisted Swamp", | |||
"Ancient Sands", | |||
"Blazing Canyon", | |||
"Ashen Wastes" | |||
] | |||
}, | }, | ||
"creature": { | "creature": { | ||
Line 68: | Line 57: | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
" | "fish", | ||
" | "crab" | ||
], | ], | ||
"required": true | "required": true | ||
}, | |||
"type": { | |||
"label": "Type", | |||
"description": "the type of fish", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"normal", | |||
"elusive" | |||
] | |||
} | } | ||
}, | }, | ||
"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": [ | ||
"island", | |||
"creature", | "creature", | ||
"rarity", | "rarity", | ||
"rarity2" | "rarity2", | ||
"type" | |||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Revision as of 02:35, 6 December 2024
This template is intended for use in adding categories to a fish's file page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Island | island | The island collection the fish belongs to
| String | required |
Creature | creature | What kind of creature the fish is categorized as
| String | required |
Rarity | rarity | The rarity of the fish
| String | required |
rarity2 | rarity2 | The second rarity (i.e. Seasonal or Limited) of the fish, if any | String | optional |
Type | type | the type of fish
| String | optional |