Difference between revisions of "Template:Fish Data"
m |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
{{#if: {{{species|}}} | {{profile-line-single-column |content= {{sn|{{{species}}}}} }} | }} | {{#if: {{{species|}}} | {{profile-line-single-column |content= {{sn|{{{species}}}}} }} | }} | ||
{{#if: {{{difficulty|}}} | {{profile-line-two-column |left=[[Difficulty]] |right={{difficulty-phrase|{{{difficulty}}} }} }} | }} | {{#if: {{{difficulty|}}} | {{profile-line-two-column |left=[[Difficulty]] |right={{difficulty-phrase|{{{difficulty}}} }} }} | }} | ||
− | |||
{{#if: {{{min_tank_size|}}} | {{profile-line-two-column |left=[[Tank Size|Min. Tank Size ]] |right={{TankSize-phrase|{{{min_tank_size_unit}}}|{{{min_tank_size}}} }} }} | }} | {{#if: {{{min_tank_size|}}} | {{profile-line-two-column |left=[[Tank Size|Min. Tank Size ]] |right={{TankSize-phrase|{{{min_tank_size_unit}}}|{{{min_tank_size}}} }} }} | }} | ||
{{#if: {{{min_size|}}}{{{max_size|}}} | {{profile-line-two-column |left=[[Fish Growth Size|Size]] |right={{size-phrase|{{{size_units}}}|{{{min_size|}}}|{{{max_size|}}} }} }}| }} | {{#if: {{{min_size|}}}{{{max_size|}}} | {{profile-line-two-column |left=[[Fish Growth Size|Size]] |right={{size-phrase|{{{size_units}}}|{{{min_size|}}}|{{{max_size|}}} }} }}| }} | ||
Line 16: | Line 15: | ||
{{#if: {{{min_water_hardness|}}}{{{max_water_hardness|}}} | {{profile-line-two-column |left=[[Water Hardness]] |right={{#if: {{{min_water_hardness|}}} | {{{min_water_hardness}}} | ? }}-{{#if: {{{max_water_hardness|}}} | {{{max_water_hardness}}} °d| ? }}| }} | }} | {{#if: {{{min_water_hardness|}}}{{{max_water_hardness|}}} | {{profile-line-two-column |left=[[Water Hardness]] |right={{#if: {{{min_water_hardness|}}} | {{{min_water_hardness}}} | ? }}-{{#if: {{{max_water_hardness|}}} | {{{max_water_hardness}}} °d| ? }}| }} | }} | ||
{{#if: {{{stocking_ratio_male|}}}{{{stocking_ratio_female|}}} | {{profile-line-two-column |left=[[Stocking Ratio]] |right={{{stocking_ratio_male|?}}}:{{{stocking_ratio_female|?}}} M:F }} | }} | {{#if: {{{stocking_ratio_male|}}}{{{stocking_ratio_female|}}} | {{profile-line-two-column |left=[[Stocking Ratio]] |right={{{stocking_ratio_male|?}}}:{{{stocking_ratio_female|?}}} M:F }} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{availability|}}} | {{profile-line-two-column |left=[[Availability]] |right={{Availability-phrase|{{{availability}}} }} }} | }} |
{{#if: {{{diet|}}} | {{profile-line-two-column |left=[[Diet]] |right={{Diet-phrase|{{{diet}}} }}{{#ifeq: {{lc:{{{food_pellet|0}}}}} | yes | <BR>Pellet Foods | {{#ifeq: {{{food_pellet|0}}} | 1 | <BR>Pellet Foods | }} }}{{#ifeq: {{lc:{{{food_flake|0}}}}} | yes | <BR>Flake Foods | {{#ifeq: {{{food_flake|0}}} | 1 | <BR>Flake Foods | }} }}{{#ifeq: {{lc:{{{food_live|0}}}}} | yes | <BR>Live Foods | {{#ifeq: {{{food_live|0}}} | 1 | <BR>Live Foods | }} }}{{#ifeq: {{lc:{{{food_other|0}}}}} | yes | <BR>Other (See article) | {{#ifeq: {{{food_other|0}}} | 1 | <BR>Other (See article) | }} }}}} | }} | {{#if: {{{diet|}}} | {{profile-line-two-column |left=[[Diet]] |right={{Diet-phrase|{{{diet}}} }}{{#ifeq: {{lc:{{{food_pellet|0}}}}} | yes | <BR>Pellet Foods | {{#ifeq: {{{food_pellet|0}}} | 1 | <BR>Pellet Foods | }} }}{{#ifeq: {{lc:{{{food_flake|0}}}}} | yes | <BR>Flake Foods | {{#ifeq: {{{food_flake|0}}} | 1 | <BR>Flake Foods | }} }}{{#ifeq: {{lc:{{{food_live|0}}}}} | yes | <BR>Live Foods | {{#ifeq: {{{food_live|0}}} | 1 | <BR>Live Foods | }} }}{{#ifeq: {{lc:{{{food_other|0}}}}} | yes | <BR>Other (See article) | {{#ifeq: {{{food_other|0}}} | 1 | <BR>Other (See article) | }} }}}} | }} | ||
{{#if: {{{min_life_span|}}}{{{max_life_span|}}} | {{profile-line-two-column |left=[[Life Span]] |right={{#if: {{{min_life_span|}}} | {{{min_life_span}}} | ? }}-{{#if: {{{max_life_span|}}} | {{{max_life_span}}} | ? }} years }} | }} | {{#if: {{{min_life_span|}}}{{{max_life_span|}}} | {{profile-line-two-column |left=[[Life Span]] |right={{#if: {{{min_life_span|}}} | {{{min_life_span}}} | ? }}-{{#if: {{{max_life_span|}}} | {{{max_life_span}}} | ? }} years }} | }} | ||
Line 23: | Line 22: | ||
{{#ifeq: {{lc:{{{captive_bred|0}}}}} | yes | {{profile-line-single-column |content=''This animal is available captive bred'' }} | {{#ifeq: {{{captive_bred|0}}} | 1 | {{profile-line-single-column |content=''This animal is available captive bred'' }} | }} }} | {{#ifeq: {{lc:{{{captive_bred|0}}}}} | yes | {{profile-line-single-column |content=''This animal is available captive bred'' }} | {{#ifeq: {{{captive_bred|0}}} | 1 | {{profile-line-single-column |content=''This animal is available captive bred'' }} | }} }} | ||
{{EndProfile}} {{Categorize | {{EndProfile}} {{Categorize | ||
− | |type= {{{type|f}}} | + | |type={{{type|f}}} |
− | |tank_size_units = {{{min_tank_size_unit|}}} | + | |tank_size_units ={{{min_tank_size_unit|}}} |
|tank_size = {{{min_tank_size}}} | |tank_size = {{{min_tank_size}}} | ||
− | |temperature_units = {{{ | + | |temperature_units = {{{temperature_units|}}} |
|min_temperature = {{{min_temperature|}}} | |min_temperature = {{{min_temperature|}}} | ||
|max_temperature = {{{max_temperature|}}} | |max_temperature = {{{max_temperature|}}} | ||
Line 32: | Line 31: | ||
|min_sg = {{{min_sg|1}}} | |min_sg = {{{min_sg|1}}} | ||
|captive_bred = {{{captive_bred|0}}} | |captive_bred = {{{captive_bred|0}}} | ||
− | |difficulty = {{{difficulty|} | + | |difficulty = {{{difficulty|}}} |
− | + | |availability = {{{availability|}}} | |
− | |availability = {{{ | ||
|habitat = {{{habitat|}}} | |habitat = {{{habitat|}}} | ||
|diet = {{{diet|}}} | |diet = {{{diet|}}} | ||
Line 46: | Line 44: | ||
}} }} | }} }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
+ | <templatedata> | ||
+ | { | ||
+ | "sets": [ | ||
+ | { | ||
+ | "label": "Tank Size", | ||
+ | "params": [ | ||
+ | "min_tank_size", | ||
+ | "min_tank_size_unit" | ||
+ | ] | ||
+ | } | ||
+ | ], | ||
+ | "params": { | ||
+ | "name": { | ||
+ | "label": "Name", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "species": { | ||
+ | "label": "Species", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "image": {}, | ||
+ | "caption": {}, | ||
+ | "type": {}, | ||
+ | "max_sg": { | ||
+ | "label": "Maximum Specific Gravity", | ||
+ | "description": "The maximum specific gravity this species can tolerate without adverse effects to it's health", | ||
+ | "type": "number" | ||
+ | }, | ||
+ | "min_sg": {}, | ||
+ | "difficulty": {}, | ||
+ | "min_tank_size": { | ||
+ | "label": "Minimum Tank Size", | ||
+ | "example": "125", | ||
+ | "type": "number" | ||
+ | }, | ||
+ | "min_tank_size_unit": { | ||
+ | "label": "Tank Size Unit", | ||
+ | "description": "Gallons or Liters", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "min_size": {}, | ||
+ | "max_size": {}, | ||
+ | "size_units": {}, | ||
+ | "min_ph": {}, | ||
+ | "max_ph": {}, | ||
+ | "min_temperature": {}, | ||
+ | "max_temperature": {}, | ||
+ | "temperature_units": {}, | ||
+ | "min_water_hardness": {}, | ||
+ | "max_water_hardness": {}, | ||
+ | "stocking_ratio_male": {}, | ||
+ | "stocking_ratio_female": {}, | ||
+ | "availability": {}, | ||
+ | "diet": {}, | ||
+ | "food_pellet": {}, | ||
+ | "food_flake": {}, | ||
+ | "food_live": {}, | ||
+ | "food_other": {}, | ||
+ | "min_life_span": {}, | ||
+ | "max_life_span": {}, | ||
+ | "habitat": {}, | ||
+ | "family": {}, | ||
+ | "captive_bred": {}, | ||
+ | "stub": {}, | ||
+ | "extra_common_names": {}, | ||
+ | "extra_scientific_names": {} | ||
+ | }, | ||
+ | "description": "Primary fish profile", | ||
+ | "format": "block" | ||
+ | } | ||
+ | </templatedata> | ||
{{template doc}} | {{template doc}} | ||
</noinclude> | </noinclude> |
Latest revision as of 01:54, 13 December 2017
Primary fish profile
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | no description
| String | required |
Species | species | no description
| String | required |
Image | image | no description
| Unknown | optional |
Caption | caption | no description
| Unknown | optional |
Type | type | no description
| Unknown | optional |
Maximum Specific Gravity | max_sg | The maximum specific gravity this species can tolerate without adverse effects to it's health
| Number | optional |
Min_sg | min_sg | no description
| Unknown | optional |
Difficulty | difficulty | no description
| Unknown | optional |
Minimum Tank Size | min_tank_size | no description
| Number | optional |
Tank Size Unit | min_tank_size_unit | Gallons or Liters
| String | optional |
Min_size | min_size | no description
| Unknown | optional |
Max_size | max_size | no description
| Unknown | optional |
Size_units | size_units | no description
| Unknown | optional |
Min_ph | min_ph | no description
| Unknown | optional |
Max_ph | max_ph | no description
| Unknown | optional |
Min_temperature | min_temperature | no description
| Unknown | optional |
Max_temperature | max_temperature | no description
| Unknown | optional |
Temperature_units | temperature_units | no description
| Unknown | optional |
Min_water_hardness | min_water_hardness | no description
| Unknown | optional |
Max_water_hardness | max_water_hardness | no description
| Unknown | optional |
Stocking_ratio_male | stocking_ratio_male | no description
| Unknown | optional |
Stocking_ratio_female | stocking_ratio_female | no description
| Unknown | optional |
Availability | availability | no description
| Unknown | optional |
Diet | diet | no description
| Unknown | optional |
Food_pellet | food_pellet | no description
| Unknown | optional |
Food_flake | food_flake | no description
| Unknown | optional |
Food_live | food_live | no description
| Unknown | optional |
Food_other | food_other | no description
| Unknown | optional |
Min_life_span | min_life_span | no description
| Unknown | optional |
Max_life_span | max_life_span | no description
| Unknown | optional |
Habitat | habitat | no description
| Unknown | optional |
Family | family | no description
| Unknown | optional |
Captive_bred | captive_bred | no description
| Unknown | optional |
Stub | stub | no description
| Unknown | optional |
Extra_common_names | extra_common_names | no description
| Unknown | optional |
Extra_scientific_names | extra_scientific_names | no description
| Unknown | optional |
This documentation is transcluded from Template:Fish Data/doc.
The {{Fish Data}} template is used for creating a template for profiles for fish, amphibians and reptiles.
Usage
Variables
name
This is the common name of the fish in question. Generally the most common name should be listed here.
image
This filed should be set to the file name the image that will be displayed in the profile box
This caption will be displayed beneath the image
species
This is the species name of the most commonly associated fish, it should generally be the same as the page name
difficulty
This should be set as a rating of difficulty. Only values from Template:Units-difficulty will be recognized.
min_tank_size
This is the minimum tank size that the fish should be kept in. This should only be a numeric value, and contain no units. Either Liters or US Gallons may be used.
min_tank_size_units
This value should indicate the units you used in the min_tank_size variable. You should enter either L or Gal. This value is passed to the Template:Units-vol, so only strings recognized there will be understood.
max_size
This is the maximum size that the fish commonly grows to in captivity. Units can be either cm or inches. Only numeric values should be entered.
max_size_units
This is the units you entered the max_size value for. Generally you should enter either cm or in here. Values are parsed using Template:Units-size
min_temperature
This value is used to denote the lower range of the animals viable temperature. The value can be in either Ferinheight or Celsius. The units must match the max_temperature variable.
max_temperature
The high end of the animals viable temperature range. The value can be in either Ferinheight or Celsius. The units must match the max_temperature variable.
temperature_units
This variable defines the units used in the min_temperature and max_temperature variables. Understood variables are F and C. These values are parsed by Template:Units-temp
min_ph
This variable represents the minimum pH the animal can tolerate. This should be a numeric value.
max_ph
This variable represents the maximum pH the animal can tolerate. This should be a numeric value.
min_water_hardness
This variable represents the minimum water hardness the animal can tolerate. This should be a numeric value.
max_water_hardness
This variable represents the maximum water hardness the animal can tolerate. This should be a numeric value.
stocking_ratio_female
This number, combined with the stocking ratio male should indicate the number of males to females to keep in single tank.
stocking_ratio_male
This number, combined with the stocking ratio female should indicate the number of males to females to keep in single tank.
availability
This is a string representing how common a fish is. This string is parsed by the Template:Units-availability template.
diet
This is a string representing the type of food this animal should be fed. This value is parsed by the Template:Units-diet
food_pellet
This is a boolean (1 for true, or 0 for false) indicating if this fish will accept pellet food.
food_flake
This is a boolean (1 for true, or 0 for false) indicating if this fish will accept flake food.
food_live
This is a boolean (1 for true, or 0 for false) indicating if this fish will accept live food.
food_vegetables
This is a boolean (1 for true, or 0 for false) indicating if this fish will accept fresh veggies.
food_other
This is a boolean (1 for true, or 0 for false) indicating if this fish will requires a non-standard food.
min_life_span
This variable indicates the low-end of the expected lifespan of the fish.
max_life_span
This variable indicates the high-end of the expected lifespan of the fish.
min_sg
This value is used to indicate the low end of the tolerable specific gravity. For freshwater set this to one, or leave it blank.
max_sg
This value is used to indicate the high end of the tolerable specific gravity. For freshwater set this to one, or leave it blank.
Code
{{Fish Data |name = |image = |caption = |species = |difficulty = |min_tank_size = |min_tank_size_unit = |max_size = |min_size = |size_units = |min_ph = |max_ph = |min_temperature = |max_temperature = |temperature_units = |min_water_hardness = |max_water_hardness = |stocking_ratio_female = |stocking_ratio_male = |availability = |diet = |food_pellet = |food_flake = |food_live = |food_vegetables = |food_other = |min_life_span = |max_life_span = |min_sg = |max_sg = }}
Change log
- March 3, 2011
- Change log started<div style="clear:both;" />