Jump to content

Template:Infobox dog breed and Template:Infobox dog breed/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
>Jonesey95
fix text color in dark mode; this generally works but may cause problems, in which case revert or try specifying a different CSS value
 
>GKFX
m Copy from Template:Infobox dog breed, use #invoke to reduce WP:PEIS
 
Line 2: Line 2:
| bodyclass = biota
| bodyclass = biota
| templatestyles = infobox/mobileviewfix.css
| templatestyles = infobox/mobileviewfix.css
| abovestyle = background-color:#d3d3a4; color:inherit;text-align:center;vertical-align:middle;
| abovestyle = background-color:#d3d3a4;text-align:center;vertical-align:middle;
| aboveclass = summary
| aboveclass = summary
| above = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}  
| above = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}  
Line 34: Line 34:


| rowstyle20 = padding:0;
| rowstyle20 = padding:0;
| data20 = {{#if:{{{weight|}}}{{{maleweight|}}}{{{femaleweight|}}}{{{height|}}}{{{maleheight|}}}{{{femaleheight|}}}{{{coat|}}}{{{color|}}}{{{colour|}}}{{{litter_size|}}}
| data20 = {{#if:{{{weight|}}}{{{maleweight|}}}{{{femaleweight|}}}{{{height|}}}{{{maleheight|}}}{{{femaleheight|}}}{{{coat|}}}{{{color|}}}{{{colour|}}}{{{litter_size|}}}{{{life_span|}}}
   |{{#invoke:infobox3cols | infoboxTemplate | child = yes
   |{{#invoke:infobox3cols | infoboxTemplate | child = yes
   | 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!-->}}
   | 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!-->}}


   | headerstyle = background-color:#d3d3a4; color:inherit;text-align:center;vertical-align:middle;
   | headerstyle = background-color:#d3d3a4;text-align:center;vertical-align:middle;
   | header21 = Traits
   | header21 = Traits


Line 71: Line 71:
   | label31 = Litter&nbsp;size
   | label31 = Litter&nbsp;size
   | data31 ={{{litter_size|}}}
   | data31 ={{{litter_size|}}}
  | label32 = Life&nbsp;span
  | data32 ={{{life_span|}}}
   }}
   }}
}}
}}
Line 80: Line 83:


|header41 = Kennel club standards
|header41 = Kennel club standards
| headerstyle = background-color:#d3d3a4; color:inherit;text-align:center;vertical-align:middle;
| headerstyle = background-color:#d3d3a4;text-align:center;vertical-align:middle;
|label82  = {{{kc_name|}}}
|label82  = {{{kc_name|}}}
| data82 = {{br separated entries
| data82 = {{br separated entries
Line 92: Line 95:
     |2 = {{#if:{{{kc2_std1|}}}|[{{{kc2_std1}}} standard]}}
     |2 = {{#if:{{{kc2_std1|}}}|[{{{kc2_std1}}} standard]}}
     |3 = {{#if:{{{kc2_std2|}}}|[{{{kc2_std2}}} standard]}}
     |3 = {{#if:{{{kc2_std2|}}}|[{{{kc2_std2}}} standard]}}
    }}
|label84  = {{{kc3_name|}}}
| data84 = {{br separated entries
    |1 = {{#if:{{{kc3_std|}}}|[{{{kc3_std}}} standard]}}
    |2 = {{#if:{{{kc3_std1|}}}|[{{{kc3_std1}}} standard]}}
    |3 = {{#if:{{{kc3_std2|}}}|[{{{kc3_std2}}} standard]}}
     }}
     }}
   | label85 = [[Fédération Cynologique Internationale]]
   | label85 = [[Fédération Cynologique Internationale]]
Line 105: Line 114:
| data91 = {{{note|}}}
| data91 = {{{note|}}}


| belowstyle = background-color: #d3d3a4; color:inherit;
| 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>}})
| 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>}})


}}{{main other|[[Category:Articles with 'species' microformats]]
}}{{main other|[[Category:Articles with 'species' microformats]]
}}</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 | kc_std1 | kc_std2 | kc2_name | kc2_std | kc2_std1 | kc2_std2 | kc3_name | kc3_std | kc3_std1 | kc3_std2 | landrace | litter_size | maleheight | maleweight | name | nickname | note | notrecognised | notrecognized | origin | distribution | stock | trinomial | unrecogised | unrecognised | unrecognized | var | weight | x }}<noinclude>
}}</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 | distribution | stock | trinomial | unrecogised | unrecognised | unrecognized | var | weight | x }}<noinclude>
{{Documentation}}<!-- Categories should be put at the bottom of [[Template:Infobox Dog breed/doc]] -->
{{Documentation}}<!-- Categories should be put at the bottom of [[Template:Infobox Dog breed/doc]] -->
</noinclude>
</noinclude>