Difference between revisions of "Template:Infobox dog breed"

From blackwiki
Jump to navigation Jump to search
imported>Scottalter
(implemented new infobox with trait information)
imported>Cavalryman
(Plural better)
 
(111 intermediate revisions by 41 users not shown)
Line 1: Line 1:
{| class="infobox vcard" style="width: 20em; font-size: 0.9em;"
+
<includeonly>{{short description|Dog breed|noreplace}}{{infobox
|-
+
| bodyclass = biota
<!-- the name of the breed -->
+
 
| style="background-color: #D3D3A4; text-align: center; font-size: larger;" colspan="2" | '''{{{name}}}'''
+
| abovestyle = background-color:#d3d3a4;text-align:center;vertical-align:middle;
<!-- if we have an image -->
+
| aboveclass = summary
|-
+
| above = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}  
{{#if: {{{image|}}} |
+
 
{{!}} colspan="2"  style="text-align: center;" {{!}} [[Image:{{{image|}}}|{{{imagedimensions|250px}}}]]{{#if: {{{image_caption|}}}|<br /><small>{{{image_caption|}}}</small>|}}
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{imagedimensions|}}}}}}|sizedefault=frameless|alt={{{image_alt|}}}}}
|}}
+
| caption = {{{image_caption|{{{caption|}}}}}}
<!--alternative names one parameter, separate them by <br> if more than one-->
+
 
|- class="note"
+
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{{image_size2|{{{imagedimensions2|}}}}}}|sizedefault=frameless|alt={{{image_alt2|}}}}}
{{#if: {{{altname<includeonly>|</includeonly>}}} |
+
| caption2 = {{{image_caption2|{{{caption2|}}}}}}
{{!}} '''Other names'''
+
 
{{!}} {{{altname}}} }}
+
| labelstyle    = white-space:nowrap;padding-right:0.65em<!--(to ensure gap between any long/nonwrapped label and subsequent data on same line-->;
<!--country of origin -->
+
| datastyle      = line-height:1.3em;
|- class="note"
+
 
{{#if: {{{country<includeonly>|</includeonly>}}} |
+
| label1 = {{nowrap|Other names}}<!--This nowrap keeps this column from being excessively narrow.-->
{{!}} '''Country of origin'''
+
| data1 = {{{altname|}}}
{{!}} {{{country}}} }}
+
 
<!--nicknames one parameter separate them by <br /> if more than one -->
+
| label2 = Common nicknames
|- class="note"
+
| data2 = {{{nickname|}}}
{{#if: {{{nickname<includeonly>|</includeonly>}}} |
+
 
{{!}} '''Nicknames'''
+
| label3 = Origin
{{!}} {{{nickname}}} }}
+
| data3 = {{{origin|{{{country|}}}}}}
<!--
+
 
  traits
+
| label4 = {{#if:{{{breeds|}}}{{{stock|}}}|[[Foundation stock]]}}
-->
+
| data4  = {{{breeds|{{{stock|}}}}}}
|-
+
 
| colspan="2" style="padding: 0px 0px 0px 0px;" |
+
| label6      = {{#if:{{{landrace|}}}{{{cross|}}}{{{x|}}}{{{×|}}}{{{var|}}}|Variety|Breed}} status
{| width="100%" class="collapsible" style="border-spacing: 0"
+
| data6      = {{#if:{{{extinct|}}}|[[Extinction|Extinct]]{{#if:{{{notrecognized|{{{notrecognised|{{{unrecognized|{{{unrecognised|}}}}}}}}}}}}|.&#32;}}}}{{#if:{{{notrecognized|{{{notrecognised|{{{unrecognized|{{{unrecogised|}}}}}}}}}}}}|Not recogni{{#if:{{{notrecognised|{{{unrecognised|}}}}}}|s|z}}ed as a [[Dog breed|breed]] by any major [[kennel club]].}}
|-
+
 
! colspan="3" style="background-color: #D3D3A4; font-size: 8pt;" | Traits
+
| rowstyle20 = padding:0;
|-
+
| data20 = {{#if:{{{weight|}}}{{{maleweight|}}}{{{femaleweight|}}}{{{height|}}}{{{maleheight|}}}{{{femaleheight|}}}{{{coat|}}}{{{color|}}}{{{colour|}}}{{{litter_size|}}}{{{life_span|}}}
{{#if:{{{maleweight|}}} |  
+
  |{{infobox3cols | child = yes
{{!}}'''Weight'''
+
  | bodyclass = collapsible {{#if:{{{collapse_standards_and_traits|}}}|collapsed|<!--Do not collapse by default; it's an accessibility problem and a usability problem for millions of mobile users!-->}}
{{!}}Male
+
 
{{!}}{{{maleweight}}}}}
+
  | headerstyle = background-color:#d3d3a4;text-align:center;vertical-align:middle;
|-
+
  | header21 = Traits
{{#if:{{{femaleweight|}}} |  
+
 
{{!}}{{#if:{{{maleweight|}}} || '''Weight'''}}
+
  | label22 = Height
{{!}}Female
+
  | data22 = {{{height|}}}
{{!}}{{{femaleweight}}}}}
+
 
|-
+
  | label23 = {{#if:{{{height|}}} |<nowiki />| Height}}
{{#if:{{{maleheight|}}} |  
+
  | data23a = {{#if:{{{maleheight|}}}|Dogs}}
{{!}}'''Height'''
+
  | data23b = {{{maleheight|}}}
{{!}}Male
+
 
{{!}}{{{maleheight}}}}}
+
  | label24 = {{#if:{{{height|}}}{{{maleheight|}}} |<nowiki />| Height}}
|-
+
  | data24a = {{#if:{{{femaleheight|}}}|Bitches}}
{{#if:{{{femaleheight|}}} |
+
  | data24b = {{{femaleheight|}}}
{{!}}{{#if:{{{maleheight|}}} || '''Height'''}}
+
 
{{!}}Female
+
  | label25 = Weight
{{!}}{{{femaleheight}}}}}
+
  | data25 = {{{weight|}}}
|-
+
 
{{#if:{{{coat|}}} |
+
  | label26 = {{#if:{{{weight|}}} |<nowiki />| Weight}}
{{!}}'''Coat'''
+
  | data26a = {{#if:{{{maleweight|}}}|Dogs}}
{{!}} colspan="2" {{!}}{{{coat}}}}}
+
  | data26b = {{{maleweight|}}}
|-
+
 
{{#if:{{{color|}}} |
+
  | label27 = {{#if:{{{weight|}}}{{{maleweight|}}} |<nowiki />| Weight}}
{{!}}'''Color'''
+
  | data27a = {{#if:{{{femaleweight|}}}|Bitches}}
{{!}} colspan="2" {{!}}{{{color}}}}}
+
  | data27b = {{{femaleweight|}}}
|-
+
 
{{#if:{{{litter_size|}}} |  
+
  | label28 = Coat
{{!}} style="width: 58px;" {{!}}'''Litter size'''
+
  | data28 = {{{coat|}}}
{{!}} colspan="2" {{!}}{{{litter_size}}}}}
+
 
|-
+
  | label29 = Colo{{#if:{{{colour|}}}|u}}r
{{#if:{{{life_span|}}} |  
+
  | data29 = {{{color|{{{colour|}}}}}}
{{!}}'''Life span'''
+
 
{{!}} colspan="2" {{!}}{{{life_span}}}}}
+
  | label31 = Litter&nbsp;size
|}
+
  | data31 ={{{litter_size|}}}
<!--
+
 
breed table standards links and groupings
+
  | label32 = Life&nbsp;span
it would be nice to have the following 5 lines to be conditional on the following 6 kennel clubs via an "or"
+
  | data32 ={{{life_span|}}}
simply testing against fcistd, akcstd, ankcstd, ckcstd
+
  }}
but it doesn't seem to be a way to do that with hiddenStructure -->
+
}}
|-
+
 
| colspan="2" style="padding: 0px 0px 0px 0px;" |
+
| rowstyle40 = padding:0;
{| width="100%" class="collapsible collapsed" style="border-spacing: 0"
+
| data40 = {{#if:{{{kc_name|}}}{{{kc2_name|}}}{{{kc3_name|}}}{{{fcistd|}}}
|-
+
  |{{infobox3cols | child = yes
! colspan="3" style="background-color: #D3D3A4; font-size: 8pt;" | Classification & standards
+
  | bodyclass = collapsible {{#if:{{{collapse_standards_and_traits|}}}|collapsed|<!--Do not collapse by default; it's an accessibility problem and a usability problem for millions of mobile users!-->}}
|-
+
 
<!-- the FCI -->
+
|header41 = Kennel club standards
{{#if:{{{fcistd|}}} |
+
| headerstyle = background-color:#d3d3a4;text-align:center;vertical-align:middle;
{{!}}'''[[Fédération Cynologique Internationale|FCI]]'''
+
|label82  = {{{kc_name|}}}
{{!}}Group {{{fcigroup|}}} Section {{{fcisection}}} #{{{fcinum}}}
+
| data82  = {{#if:{{{kc_std|}}}|[{{{kc_std}}} standard]}}
{{!}}[{{{fcistd}}} standard]}}
+
|label83  = {{{kc2_name|}}}
|-
+
| data83  = {{#if:{{{kc2_std|}}}|[{{{kc2_std}}} standard]}}
<!-- the AKC -->
+
|label84 = {{{kc3_name|}}}
{{#if:{{{akcstd|}}} |
+
| data84  = {{#if:{{{kc3_std|}}}|[{{{kc3_std}}} standard]}}
{{!}}'''[[American Kennel Club|AKC]]'''
+
  | label85 = [[Fédération Cynologique Internationale|FCI]]
{{!}}{{{akcgroup}}}
+
  | data85 = {{br separated entries
{{!}}[{{{akcstd}}} standard]}}
+
    |1 = {{#if:{{{fcistd|}}}|[{{{fcistd}}} standard]}}
|-
+
    |2 = {{#if:{{{fcistd1|}}}|[{{{fcistd1}}} standard]}}
<!-- AKC FSS group -->
+
    |3 = {{#if:{{{fcistd2|}}}|[{{{fcistd2}}} standard]}}
{{#if:{{{akcfss|}}} |
+
    }}
{{!}}
+
  }}
{{!}} 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.}}
+
}}
|-
+
 
<!-- AKC misc group -->
+
| label91 = Notes
{{#if:{{{akcmisc|}}} |  
+
| data91 = {{{note|}}}
{{!}}
+
 
{{!}} colspan="2" {{!}}The AKC [http://www.akc.org/breeds/miscellaneous_class.cfm Miscellaneous class] is for breeds working towards full AKC recognition.}}
+
| belowstyle = background-color: #d3d3a4;
|-
+
| below = <span class="vernacular">{{#if:{{{x|}}}{{{×|}}}|[[Canid hybrid]]|{{#if:{{{trinomial|}}}|Dog|Dog}}}}</span> ({{#if:{{{x|}}}{{{×|}}}|<span class="hybrid">''[[Canis lupus familiaris]]'' × ''{{{x|{{{×}}}}}}''</span>|<span class="trinominal">{{{trinomial|[[domestic dog]]}}}</span>}})
<!-- the Australian National Kennel Council -->
+
 
{{#if:{{{ankcstd|}}} |  
+
}}{{main other|[[Category:Articles with 'species' microformats]]
{{!}}'''[[Australian National Kennel Council|ANKC]]'''
+
}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox dog breed with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox dog breed]] with unknown parameter "_VALUE_"|ignoreblank=y| × | altname | breeds | caption | caption2 | coat | collapse_standards_and_traits | color | colour | country | cross | extinct | fcistd | fcistd1 | fcistd2 | femaleheight | femaleweight | height | image | image_alt | image_alt2 | image_caption | image_caption2 | image_size | image_size2 | image2 | imagedimensions | imagedimensions2 | kc_name | kc_std | kc2_name | kc2_std | kc3_name | kc3_std | landrace | life_span | litter_size | maleheight | maleweight | name | nickname | note | notrecognised | notrecognized | origin | stock | trinomial | unrecogised | unrecognised | unrecognized | var | weight | x }}<noinclude>
{{!}}{{{ankcgroup}}}
+
{{Documentation}}<!-- Categories should be put at the bottom of [[Template:Infobox Dog breed/doc]] -->
{{!}}[{{{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}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 23:56, 20 January 2021

Template documentation[view] [edit] [history] [purge]
[[Category:Template:Pagetype with short description]]
{{{name}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}|{{{image_alt}}}]]
{{{image_caption}}}
Other names{{{altname}}}
Common nicknames{{{nickname}}}
Origin{{{country}}}
Foundation stock{{{stock}}}
Variety statusExtinct. Not recognised as a breed by any major kennel club.
Traits
Height {{{height}}}
Dogs {{{maleheight}}}
Bitches {{{femaleheight}}}
Weight {{{weight}}}
Dogs {{{maleweight}}}
Bitches {{{femaleweight}}}
Coat {{{coat}}}
Colour {{{colour}}}
Litter size {{{litter_size}}}
Life span {{{life_span}}}
[[Category:Infobox templates|Template:Remove first word ]]
Kennel club standards
KC name [{{{kc_std}}} standard]
2nd KC name [{{{kc2_std}}} standard]
FCI [{{{fcistd}}} standard]
[[Category:Infobox templates|Template:Remove first word ]]
Notes{{{note}}}
Dog (domestic dog)
[[Category:Infobox templates|Template:Remove first word]]

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