Difference between revisions of "Template:Fish Data"

From The Aquarium Wiki
Jump to: navigation, search
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: {{{temperament|}}}                | {{profile-line-two-column |left=[[Temperament]] |right={{temperament-phrase|{{{temperament}}} }}  }} | }}
 
 
{{#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: {{{units-accessibility|}}}        | {{profile-line-two-column |left=[[Availability]] |right={{Availability-phrase|{{{units-accessibility}}} }} }} | }}
+
{{#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|}}}
+
   |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|}}}
  |temperament = {{{temperament|}}
+
   |availability = {{{availability|}}}
   |availability = {{{units-accessibility|}}
 
 
   |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

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename

no description

Default
empty
Example
empty
Auto value
empty
Stringrequired
Speciesspecies

no description

Default
empty
Example
empty
Auto value
empty
Stringrequired
Imageimage

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Captioncaption

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Typetype

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Maximum Specific Gravitymax_sg

The maximum specific gravity this species can tolerate without adverse effects to it's health

Default
empty
Example
empty
Auto value
empty
Numberoptional
Min_sgmin_sg

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Difficultydifficulty

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Minimum Tank Sizemin_tank_size

no description

Default
empty
Example
125
Auto value
empty
Numberoptional
Tank Size Unitmin_tank_size_unit

Gallons or Liters

Default
empty
Example
empty
Auto value
empty
Stringoptional
Min_sizemin_size

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Max_sizemax_size

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Size_unitssize_units

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Min_phmin_ph

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Max_phmax_ph

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Min_temperaturemin_temperature

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Max_temperaturemax_temperature

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Temperature_unitstemperature_units

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Min_water_hardnessmin_water_hardness

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Max_water_hardnessmax_water_hardness

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Stocking_ratio_malestocking_ratio_male

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Stocking_ratio_femalestocking_ratio_female

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Availabilityavailability

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Dietdiet

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Food_pelletfood_pellet

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Food_flakefood_flake

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Food_livefood_live

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Food_otherfood_other

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Min_life_spanmin_life_span

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Max_life_spanmax_life_span

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Habitathabitat

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Familyfamily

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Captive_bredcaptive_bred

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Stubstub

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Extra_common_namesextra_common_names

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Extra_scientific_namesextra_scientific_names

no description

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Documentation icon Documentationviewedithistory⧼Code-rev-purge-link⧽

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

caption

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;" />