Difference between revisions of "Template:Infobox sheep breed/doc"

From blackwiki
Jump to navigation Jump to search
imported>Justlettersandnumbers
(image size, horns)
imported>Vanisaac
m (→‎TemplateData: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
  
 
== Usage ==
 
== Usage ==
 
 
<pre style="overflow: auto">
 
<pre style="overflow: auto">
 
{{Infobox sheep breed
 
{{Infobox sheep breed
Line 12: Line 11:
 
| image_caption = caption
 
| image_caption = caption
 
| status        = conservation status (extinct, critical, endangered, etc)
 
| status        = conservation status (extinct, critical, endangered, etc)
| altname      = ''alternate name''; use {{Unbulleted list}} if more than one
+
| altname      = alternate name; use {{Unbulleted list}} if more than one
 
| country      = country of origin
 
| country      = country of origin
 
| distribution  = distribution
 
| distribution  = distribution
 +
| standard      = [url Entity]; use {{Unbulleted list}} if more than one
 +
| type          = e.g., upland, lowland, fat-tailed, hair
 
| use          = e.g., meat, wool, milk, vegetation control
 
| use          = e.g., meat, wool, milk, vegetation control
 
| nickname      = nickname; use {{Unbulleted list}} if more than one
 
| nickname      = nickname; use {{Unbulleted list}} if more than one
Line 21: Line 22:
 
| maleheight    = male height
 
| maleheight    = male height
 
| femaleheight  = female height
 
| femaleheight  = female height
 +
| skincolor    = skin color
 
| woolcolor    = wool color
 
| woolcolor    = wool color
 
| facecolor    = face color
 
| facecolor    = face color
Line 36: Line 38:
 
| status        =  
 
| status        =  
 
| altname      =  
 
| altname      =  
 +
| nickname      =
 
| country      =  
 
| country      =  
 
| distribution  =  
 
| distribution  =  
 +
| standard      =
 
| use          =  
 
| use          =  
| nickname      =
 
 
| maleweight    =  
 
| maleweight    =  
 
| femaleweight  =  
 
| femaleweight  =  
 
| maleheight    =  
 
| maleheight    =  
 
| femaleheight  =  
 
| femaleheight  =  
 +
| skincolor    =
 +
| type          =
 
| woolcolor    =  
 
| woolcolor    =  
 
| facecolor    =  
 
| facecolor    =  
Line 52: Line 57:
  
 
== Examples ==
 
== Examples ==
 
 
{{Infobox sheep breed
 
{{Infobox sheep breed
 
| name          = Dorper
 
| name          = Dorper
Line 65: Line 69:
 
| facecolor    = Black
 
| facecolor    = Black
 
}}
 
}}
 +
<pre style="overflow:auto;">
 +
{{Infobox sheep breed
 +
| name          = Dorper
 +
| altname      =
 +
| country      = [[South Africa]]
 +
| status        = Common
 +
| image        = Point Buchon Trail sheep.jpg
 +
| image_caption = A Dorper flock
 +
| maleweight    =
 +
| femaleweight  =
 +
| woolcolor    = Mainly black, some white
 +
| facecolor    = Black
 +
}}
 +
</pre>
 
{{clear}}
 
{{clear}}
  
 
== Microformat ==
 
== Microformat ==
 +
{{UF-species}}
  
{{UF-species}}
+
== TemplateData ==
 +
{{TemplateData header}}
 +
<templatedata>
 +
{
 +
"params": {
 +
"name": {
 +
"description": "Name of the sheep breed",
 +
"required": true
 +
},
 +
"image": {
 +
"label": "Image of the sheep",
 +
"suggested": true
 +
},
 +
"image_size": {
 +
"label": "Size of the image"
 +
},
 +
"image_alt": {},
 +
"image_caption": {
 +
"label": "Image caption"
 +
},
 +
"status": {},
 +
"altname": {
 +
"label": "Alternative name(s)"
 +
},
 +
"nickname": {},
 +
"country": {},
 +
"distribution": {
 +
"label": "Distrobution",
 +
"description": "Where the sheep can be found",
 +
"example": "Worldwide",
 +
"type": "string"
 +
},
 +
"standard": {},
 +
"use": {
 +
"label": "Use",
 +
"description": "What the sheep are reared for",
 +
"example": "Wool",
 +
"type": "string"
 +
},
 +
"maleweight": {
 +
"label": "Male Weight",
 +
"description": "The average weight of the male (ram)",
 +
"type": "number",
 +
"suggested": true
 +
},
 +
"femaleweight": {
 +
"label": "Female Weight",
 +
"description": "The average weight of the female (ewe)"
 +
},
 +
"maleheight": {
 +
"label": "Male Height",
 +
"description": "The average male (ram) height",
 +
"type": "number"
 +
},
 +
"femaleheight": {
 +
"label": "Female Height",
 +
"description": "The average female (eve) height",
 +
"type": "number"
 +
},
 +
"skincolor": {
 +
"label": "Skin colour",
 +
"description": "The skin colour of the sheep",
 +
"example": "White"
 +
},
 +
"type": {},
 +
"woolcolor": {
 +
"label": "Wool colour",
 +
"description": "The colour of the wool"
 +
},
 +
"facecolor": {
 +
"label": "Face colour",
 +
"description": "The colour of the face"
 +
},
 +
"horns": {
 +
"label": "Horns",
 +
"description": "Is the sheep horned"
 +
},
 +
"note": {
 +
"label": "Note",
 +
"description": "Any notes"
 +
}
 +
},
 +
"description": "An infobox to describe a breed of sheep",
 +
"format": "block"
 +
}
 +
</templatedata>
  
<includeonly>
+
<includeonly>{{Sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
[[Category:Animal infobox templates|Sheep Breed]]
 
[[Category:Sheep breeds| ]]
 
[[Category:Sheep breeds| ]]
[[Category:Animal infobox templates|Sheepbreed]]
+
}}</includeonly>
</includeonly>
 

Latest revision as of 21:17, 25 April 2020

Usage

{{Infobox sheep breed
| name          = name of sheep breed
| image         = image.ext
| image_size    = image size
| image_alt     = alt text for image; see [[WP:ALT]]
| image_caption = caption
| status        = conservation status (extinct, critical, endangered, etc)
| altname       = alternate name; use {{Unbulleted list}} if more than one
| country       = country of origin
| distribution  = distribution
| standard      = [url Entity]; use {{Unbulleted list}} if more than one
| type          = e.g., upland, lowland, fat-tailed, hair
| use           = e.g., meat, wool, milk, vegetation control
| nickname      = nickname; use {{Unbulleted list}} if more than one
| maleweight    = male weight
| femaleweight  = female weight
| maleheight    = male height
| femaleheight  = female height
| skincolor     = skin color
| woolcolor     = wool color
| facecolor     = face color
| horns         = horned or hornless
| note          = extra notes
}}
{{Infobox sheep breed
| name          = 
| image         = 
| image_size    = 
| image_alt     = 
| image_caption = 
| status        = 
| altname       = 
| nickname      = 
| country       = 
| distribution  = 
| standard      =
| use           = 
| maleweight    = 
| femaleweight  = 
| maleheight    = 
| femaleheight  = 
| skincolor     = 
| type          = 
| woolcolor     = 
| facecolor     = 
| horns         = 
| note          = 
}}

Examples

Dorper
Point Buchon Trail sheep.jpg
A Dorper flock
Conservation statusCommon
Country of originSouth Africa
Traits
WeightTemplate:Ubl
HeightTemplate:Ubl
Wool colorMainly black, some white
Face colorBlack
Template:Ubl

Template:Ns0

{{Infobox sheep breed
| name          = Dorper
| altname       = 
| country       = [[South Africa]]
| status        = Common
| image         = Point Buchon Trail sheep.jpg
| image_caption = A Dorper flock
| maleweight    = 
| femaleweight  = 
| woolcolor     = Mainly black, some white
| facecolor     = Black
}}

Microformat

Template:UF-species

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Infobox sheep breed

An infobox to describe a breed of sheep

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of the sheep breed

Unknownrequired
Image of the sheepimage

no description

Unknownsuggested
Size of the imageimage_size

no description

Unknownoptional
Image_altimage_alt

no description

Unknownoptional
Image captionimage_caption

no description

Unknownoptional
Statusstatus

no description

Unknownoptional
Alternative name(s)altname

no description

Unknownoptional
Nicknamenickname

no description

Unknownoptional
Countrycountry

no description

Unknownoptional
Distrobutiondistribution

Where the sheep can be found

Example
Worldwide
Stringoptional
Standardstandard

no description

Unknownoptional
Useuse

What the sheep are reared for

Example
Wool
Stringoptional
Male Weightmaleweight

The average weight of the male (ram)

Numbersuggested
Female Weightfemaleweight

The average weight of the female (ewe)

Unknownoptional
Male Heightmaleheight

The average male (ram) height

Numberoptional
Female Heightfemaleheight

The average female (eve) height

Numberoptional
Skin colourskincolor

The skin colour of the sheep

Example
White
Unknownoptional
Typetype

no description

Unknownoptional
Wool colourwoolcolor

The colour of the wool

Unknownoptional
Face colourfacecolor

The colour of the face

Unknownoptional
Hornshorns

Is the sheep horned

Unknownoptional
Notenote

Any notes

Unknownoptional