Difference between revisions of "Template:Infobox dog breed"

From blackwiki
Jump to navigation Jump to search
(remove border collaspe and update color in accordance with new Animalia taxobox color)
imported>Scottalter
(implemented new infobox with trait information)
Line 1: Line 1:
{| class="infobox" style="width: 20em;" cellpadding="2"
+
{| class="infobox vcard" style="width: 20em; font-size: 0.9em;"
 
|-
 
|-
<!-- the name of the dog -->
+
<!-- the name of the breed -->
! colspan="3" style="background-color: #D3D3A4;" | <span style="font-size: larger;">{{{name}}}</span>
+
| style="background-color: #D3D3A4; text-align: center; font-size: larger;" colspan="2" | '''{{{name}}}'''
 +
<!-- if we have an image -->
 +
|-
 +
{{#if: {{{image|}}} |
 +
{{!}} colspan="2"  style="text-align: center;" {{!}} [[Image:{{{image|}}}|{{{imagedimensions|250px}}}]]{{#if: {{{image_caption|}}}|<br /><small>{{{image_caption|}}}</small>|}}
 +
|}}
 +
<!--alternative names one parameter, separate them by <br> if more than one-->
 +
|- class="note"
 +
{{#if: {{{altname<includeonly>|</includeonly>}}} |
 +
{{!}} '''Other names'''
 +
{{!}} {{{altname}}} }}
 +
<!--country of origin -->
 +
|- class="note"
 +
{{#if: {{{country<includeonly>|</includeonly>}}} |
 +
{{!}} '''Country of origin'''
 +
{{!}} {{{country}}} }}
 +
<!--nicknames one parameter separate them by <br /> if more than one -->
 +
|- class="note"
 +
{{#if: {{{nickname<includeonly>|</includeonly>}}} |
 +
{{!}} '''Nicknames'''
 +
{{!}} {{{nickname}}} }}
 +
<!--
 +
traits
 +
-->
 +
|-
 +
| colspan="2" style="padding: 0px 0px 0px 0px;" |
 +
{| width="100%" class="collapsible" style="border-spacing: 0"
 +
|-
 +
! colspan="3" style="background-color: #D3D3A4; font-size: 8pt;" | Traits
 +
|-
 +
{{#if:{{{maleweight|}}} |
 +
{{!}}'''Weight'''
 +
{{!}}Male
 +
{{!}}{{{maleweight}}}}}
 +
|-
 +
{{#if:{{{femaleweight|}}} |
 +
{{!}}{{#if:{{{maleweight|}}} || '''Weight'''}}
 +
{{!}}Female
 +
{{!}}{{{femaleweight}}}}}
 +
|-
 +
{{#if:{{{maleheight|}}} |
 +
{{!}}'''Height'''
 +
{{!}}Male
 +
{{!}}{{{maleheight}}}}}
 +
|-
 +
{{#if:{{{femaleheight|}}} |
 +
{{!}}{{#if:{{{maleheight|}}} || '''Height'''}}
 +
{{!}}Female
 +
{{!}}{{{femaleheight}}}}}
 +
|-
 +
{{#if:{{{coat|}}} |
 +
{{!}}'''Coat'''
 +
{{!}} colspan="2" {{!}}{{{coat}}}}}
 +
|-
 +
{{#if:{{{color|}}} |
 +
{{!}}'''Color'''
 +
{{!}} colspan="2" {{!}}{{{color}}}}}
 +
|-
 +
{{#if:{{{litter_size|}}} |
 +
{{!}} style="width: 58px;" {{!}}'''Litter size'''
 +
{{!}} colspan="2" {{!}}{{{litter_size}}}}}
 
|-
 
|-
<!-- if we have an image -->
+
{{#if:{{{life_span|}}} |  
{{#if:{{{image|}}}|<tr style="image-align: center;"><td colspan="3">[[Image:{{{image|null.png}}}|250px|center|]]<small><center>{{{image_caption|}}}</center></small></td></tr>}}<!--
+
{{!}}'''Life span'''
alternative names one parameter, separate them by <br> if more than one
+
{{!}} colspan="2" {{!}}{{{life_span}}}}}
-->{{#if:{{{altname|}}}|<tr style="background-color: #D3D3A4;"><th colspan="3">Alternative names</th></tr><tr style="text-align: center;"><td colspan="3">{{{altname|}}}</td></tr>}}<!--
+
|}
country of origin
+
<!--
-->{{#if:{{{country|}}}|<tr style="background-color: #D3D3A4;"><th colspan="3">Country of origin</th></tr><tr style="text-align: center;"><td colspan="3">{{{country|}}}</td></tr>}}<!--
 
nicknames one parameter separate them by <br /> if more than one
 
-->{{#if:{{{nickname|}}}|<tr style="background-color: #D3D3A4;"><th colspan="3">Common nicknames</th></tr><tr style="text-align: center;"><td colspan="3">{{{nickname|}}}</td></tr>}}<!--
 
 
  breed table standards links and groupings  
 
  breed table standards links and groupings  
 
  it would be nice to have the following 5 lines to be conditional on the following 6 kennel clubs via an "or"  
 
  it would be nice to have the following 5 lines to be conditional on the following 6 kennel clubs via an "or"  
 
  simply testing against fcistd, akcstd, ankcstd, ckcstd
 
  simply testing against fcistd, akcstd, ankcstd, ckcstd
 
  but it doesn't seem to be a way to do that with hiddenStructure -->
 
  but it doesn't seem to be a way to do that with hiddenStructure -->
|- style="background-color: #D3D3A4;"
+
|-  
! colspan="3" | Classification and breed standards
+
| colspan="2" style="padding: 0px 0px 0px 0px;" |
 +
{| width="100%" class="collapsible collapsed" style="border-spacing: 0"
 +
|-
 +
! colspan="3" style="background-color: #D3D3A4; font-size: 8pt;" | Classification & standards
 +
|-
 
<!-- the FCI -->
 
<!-- the FCI -->
{{#if:{{{fcistd|}}}|<tr style="text-align: left;"><th>[[Fédération_Cynologique_Internationale|FCI]]:</th><td>Group {{{fcigroup|}}} Section {{{fcisection}}} #{{{fcinum}}}</td><td>[{{{fcistd}}} Stds]</td></tr>}}<!--
+
{{#if:{{{fcistd|}}} |
the AKC  
+
{{!}}'''[[Fédération Cynologique Internationale|FCI]]'''
-->{{#if:{{{akcstd|}}}|<tr style="text-align: left;"><th>[[American Kennel Club|AKC]]:</th><td>{{{akcgroup}}}</td><td>[{{{akcstd}}} Stds]</td></tr>}}<!--
+
{{!}}Group {{{fcigroup|}}} Section {{{fcisection}}} #{{{fcinum}}}
AKC FSS group  
+
{{!}}[{{{fcistd}}} standard]}}
-->{{#if:{{{akcfss|}}}|<tr style="text-align: left;"><td></td><td colspan="2">The AKC [http://www.akc.org/reg/fss_details.cfm Foundation Stock Service] (FSS) is an optional recording service for purebred dogs that are not yet eligible for AKC registration.</td></tr>}}<!--
+
|-
AKC misc group  
+
<!-- the AKC -->
-->{{#if:{{{akcmisc|}}}|<tr style="text-align: left;"><td></td><td colspan="2">The AKC [http://www.akc.org/breeds/miscellaneous_class.cfm Miscellaneous class] is for breeds working towards full AKC recognition.</td></tr>}}<!--
+
{{#if:{{{akcstd|}}} |  
the Australian National Kennel Council  
+
{{!}}'''[[American Kennel Club|AKC]]'''
-->{{#if:{{{ankcstd|}}}|<tr style="text-align: left;"><th>[[Australian National Kennel Council|ANKC]]:</th><td>{{{ankcgroup}}}</td><td>[{{{ankcstd}}} Stds]</td></tr>}}<!--
+
{{!}}{{{akcgroup}}}
the Canadian Kennel Club  
+
{{!}}[{{{akcstd}}} standard]}}
-->{{#if:{{{ckcstd|}}}|<tr style="text-align: left;"><th>[[Canadian Kennel Club|CKC]]:</th><td>{{{ckcgroup|}}}</td><td>[{{{ckcstd}}} Stds]</td></tr>}}<!--
+
|-
CKC misc list  
+
<!-- AKC FSS group -->
-->{{#if:{{{ckcmisc|}}}|<tr style="text-align: left;"><td></td><td colspan="2">The CKC Miscellaneous List is for breeds working towards full CKC recognition.</td></tr>}}<!--
+
{{#if:{{{akcfss|}}} |
kennel club of the UK
+
{{!}}
-->{{#if:{{{kcukstd|}}}|<tr style="text-align: left;"><th style="white-space: nowrap;">[[The Kennel Club|KC (UK)]]:</th><td>{{{kcukgroup}}}</td><td>[{{{kcukstd}}} Stds]</td></tr>}}<!--
+
{{!}} colspan="2" {{!}}The AKC [http://www.akc.org/reg/fss_details.cfm Foundation Stock Service] (FSS) is an optional recording service for purebred dogs that are not yet eligible for AKC registration.}}
new zeland kennel club  
+
|-
-->{{#if:{{{nzkcstd|}}}|<tr style="text-align: left;"><th>[[New Zealand Kennel Club|NZKC]]:</th><td>{{{nzkcgroup}}}</td><td>[{{{nzkcstd}}} Stds]</td></tr>}}<!--
+
<!-- AKC misc group -->
united kennel club  
+
{{#if:{{{akcmisc|}}} |  
-->{{#if:{{{ukcstd|}}}|<tr style="text-align: left;"><th>[[United Kennel Club|UKC]]:</th><td>{{{ukcgroup}}}</td><td>[{{{ukcstd}}} Stds]</td></tr>}}<!--
+
{{!}}
no major kennel club  
+
{{!}} colspan="2" {{!}}The AKC [http://www.akc.org/breeds/miscellaneous_class.cfm Miscellaneous class] is for breeds working towards full AKC recognition.}}
-->{{#if:{{{notrecognized|}}}|<tr style="text-align: center;"><td colspan="3">Not recognized by any major kennel club</td></tr>}}<!--
+
|-
no major kennel club, because it's extinct  
+
<!-- the Australian National Kennel Council -->
-->{{#if:{{{extinct|}}}|<tr style="text-align: center;"><td colspan="3">This breed of dog is [[Extinction|extinct]]</td></tr>}}<!--
+
{{#if:{{{ankcstd|}}} |  
note  
+
{{!}}'''[[Australian National Kennel Council|ANKC]]'''
-->{{#if:{{{note|}}}|<tr style="background-color:#D3D3A4;"><th colspan="3">Notes</th></tr><tr style="text-align: center;"><td colspan="3">{{{note|}}}</td></tr>}}
+
{{!}}{{{ankcgroup}}}
|}{{#ifeq:{{NAMESPACEE}}|{{ns:0}}|[[Category:Dog breeds]]}}<noinclude>
+
{{!}}[{{{ankcstd}}} standard]}}
 +
|-
 +
<!-- the Canadian Kennel Club -->
 +
{{#if:{{{ckcstd|}}} |  
 +
{{!}}'''[[Canadian Kennel Club|CKC]]'''
 +
{{!}}{{{ckcgroup|}}}
 +
{{!}}[{{{ckcstd}}} standard]}}
 +
|-
 +
<!-- CKC misc list -->
 +
{{#if:{{{ckcmisc|}}} |
 +
{{!}}
 +
{{!}} colspan="2" {{!}}The CKC Miscellaneous List is for breeds working towards full CKC recognition.}}
 +
|-
 +
<!-- kennel club of the UK -->
 +
{{#if:{{{kcukstd|}}} |  
 +
{{!}}'''[[The Kennel Club|KC (UK)]]'''
 +
{{!}}{{{kcukgroup}}}
 +
{{!}}[{{{kcukstd}}} standard]}}
 +
|-
 +
<!-- new zeland kennel club -->
 +
{{#if:{{{nzkcstd|}}} |  
 +
{{!}}'''[[New Zealand Kennel Club|NZKC]]'''
 +
{{!}}{{{nzkcgroup}}}
 +
{{!}}[{{{nzkcstd}}} standard]}}
 +
|-
 +
<!-- united kennel club -->
 +
{{#if:{{{ukcstd|}}} |
 +
{{!}}'''[[United Kennel Club|UKC]]'''
 +
{{!}}{{{ukcgroup}}}
 +
{{!}}[{{{ukcstd}}} standard]}}
 +
|-
 +
<!-- no major kennel club -->
 +
{{#if:{{{notrecognized|}}} |  
 +
{{!}} colspan="3" {{!}}Not recognized by any major kennel club}}
 +
|-
 +
<!-- no major kennel club, because it's extinct -->
 +
{{#if:{{{extinct|}}} |  
 +
{{!}} colspan="3" {{!}}This breed of dog is [[Extinction|extinct]]}}
 +
|}
 +
<!--
 +
note-->
 +
|-
 +
{{#if:{{{note|}}} |
 +
! style="background-color: #D3D3A4; font-size: 8pt;" colspan="2" {{!}}Notes
 +
{{!}}-
 +
{{!}} colspan="3" {{!}}{{{note|}}} }}
 +
|}<includeonly>{{#ifeq:{{NAMESPACEE}}|{{ns:0}}|[[Category:Dog breeds]]}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 03:25, 9 April 2008

{{{name}}}
Other names {{{altname}}}
Country of origin {{{country}}}
Nicknames {{{nickname}}}
Traits
Template documentation[view] [edit] [history] [purge]
{{{name}}}
[[Image:{{{image}}}|250px]]
{{{image_caption}}}
Other names {{{altname}}}
Country of origin {{{country}}}
Nicknames {{{nickname}}}
Traits
Weight Male {{{maleweight}}}
Female {{{femaleweight}}}
Height Male {{{maleheight}}}
Female {{{femaleheight}}}
Coat {{{coat}}}
Litter size {{{litter_size}}}
Life span {{{life_span}}}
Notes
{{{note}}}

Blank template

{{Infobox dog breed
| name           = 
| image          = 
| image_alt      = 
| image_caption  = 
| image2         = 
| image_alt2     = 
| image_caption2 = 
| altname        = 
| nickname       = 
| stock          = 
| country        = 
<!-----Traits----->
| height         = 
| maleheight     = 
| femaleheight   = 
| weight         = 
| maleweight     = 
| femaleweight   = 
| coat           = 
| colour         = <!-- or | color =  -->
| litter_size    = 
| life_span      = 
<!-----Kennel club standards----->
| kc_name        = 
| kc_std         = 
| kc2_name       = <!-- if required for dual-national breeds -->
| kc2_std        = 
| fcistd         = <!-- if recognised by the FCI -->
| notrecognised  = <!-- or | notrecognized =  -->
| extinct        = 
<!-----Notes----->
| note           = 
}}

Parameters

  • name: Name of the breed (or landrace, crossbreed, hybrid, etc.). Should agree with article title (aside from any parenthetical disambiguation).
  • image: The name of the image.
  • Check Commons for appropriate photos.
  • There is also image2 with corresponding parameters.
  • image_alt: Alternate text to describe an image to those that cannot see it.
  • If an image is included, alt text should be provided using image_alt. Alt text should not repeat the caption; instead, it should describe the image to someone who can't see it (see WP:ALT).
  • image_caption: A caption that describes the image.
  • altname: Other names by which the breed is known by English speakers.
  • nickname: Common nicknames.
  • country: Country of origin, preferably at time of origin to avoid squabbling over current political boundaries.
Traits
  • weight: The general weight range
  • maleweight: The weight range of males
  • femaleweight: The weight range of females
  • height: The general height range
  • maleheight: The height range of males
  • femaleheight: The height range of females
  • coat: The coat type
  • colour or color: Use one only not both. The color/colour as per Wikipedia:Manual of Style#National varieties of English.
  • litter_size: The range in size of a litter
  • life_span: The range in life span in years
Kennel club standards
  • kc_name: The name of the national kennel club of the breed’s country of origin
  • Link to a article if it exists then pipe the club’s acronym
  • There is also a kc2_name and kc3_name if more than one country claims the breed.
  • kc_std: The URL to the breed standard from that kennel club(s).
  • fcistd: If the breed is recognised by the FCI, add the URL to the FCI breed standard.
  • notes: Free-form concise comments, usually about the breed recognition or standards.
  • notrecognised=yes or notrecognized=yes: Shows a "Not recognis(z)ed by any major kennel club.
  • extinct=yes: Shows an "Extinct" message. This parameter should be removed if not used.
Special parameter
  • trinomial=: Replaces domestic dog with custom text. Italics and wikilinks must be done manually in the supplied parameter value. Entirely wild populations like the Australian dingo, use {{Taxobox}}, not {{Infobox dog breed}}. This parameter should not be used with |x=. If in the future we need to indicate a dingo-and-something-else hybrid that is actually treated as a dog breed, we can use |trinomial= for this, or change the template.

Microformat

Template:UF-species

Tracking categories

See also