Difference between revisions of "Template:Fish Data"
m |
m |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{Title Changer |{{#if: {{{name|}}} | {{#if: {{{species|}}} | {{{name}}} (''{{{species}}}'') }}}}}} {{StartProfile |
|title = {{cn|{{{name|}}}}} | |title = {{cn|{{{name|}}}}} | ||
|image = {{{image|No_Image.png}}} | |image = {{{image|No_Image.png}}} | ||
Line 11: | Line 11: | ||
{{#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|}}} }} }}| }} | ||
{{#if: {{{min_sg|}}}{{{max_sg|}}} | {{profile-line-two-column |left=[[sg]] |right={{sg-phrase|{{{min_sg}}}|{{{max_sg}}} }} }} | }} | {{#if: {{{min_sg|}}}{{{max_sg|}}} | {{profile-line-two-column |left=[[sg]] |right={{sg-phrase|{{{min_sg}}}|{{{max_sg}}} }} }} | }} | ||
− | {{#if: {{{min_ph|}}}{{{max_ph|}}} | {{profile-line-two-column |left=[[pH]] |right={{#if: {{{min_ph}}} | | + | {{#if: {{{min_ph|}}}{{{max_ph|}}} | {{profile-line-two-column |left=[[pH]] |right={{#if: {{{min_ph}}} | {{{min_ph}}} | ?}} - {{#if: {{{max_ph}}} | {{{max_ph}}} | ?}}| }}| }} |
{{#if: {{{min_temperature|}}}{{{max_temperature|}}} | {{profile-line-two-column |left=[[Temperature|Temp.]] |right={{Temp-phrase|{{{temperature_units}}}|{{{min_temperature}}} |{{{max_temperature}}} }} }} | }} | {{#if: {{{min_temperature|}}}{{{max_temperature|}}} | {{profile-line-two-column |left=[[Temperature|Temp.]] |right={{Temp-phrase|{{{temperature_units}}}|{{{min_temperature}}} |{{{max_temperature}}} }} }} | }} | ||
− | {{#if: {{{min_water_hardness|}}}{{{max_water_hardness|}}} | {{profile-line-two-column |left=[[Water Hardness]] |right={{#if: {{{min_water_hardness|}}} | | + | {{#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: {{{availability|}}} | {{profile-line-two-column |left=[[Availability]] |right={{Availability-phrase|{{{availability}}} }} }} | }} | {{#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> | + | {{#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|}}} | | + | {{#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: {{{habitat|}}} | {{profile-line-two-column |left=[[Habitat]] |right={{Habitat-phrase|{{{habitat|}}} }} }} | }} | {{#if: {{{habitat|}}} | {{profile-line-two-column |left=[[Habitat]] |right={{Habitat-phrase|{{{habitat|}}} }} }} | }} | ||
− | {{#if: {{{family|}}} | {{profile-line-two-column |left= | + | {{#if: {{{family|}}} | {{profile-line-two-column |left=Family |right={{{family}}} }} | }} |
{{#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 |
Revision as of 01:48, 9 August 2017
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;" />