Difference between revisions of "Template:Infobox chef/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(display live and sandbox templates side-by-side for easier comparison)
imported>Jonesey95
m (Fix invalid self-closed HTML tag or other HTML Tidy-related tag error)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Template test cases notice}}
 
{{Template test cases notice}}
  
==''Living'' chef==
+
== Test case 1: ''Living'' chef ==
{|
+
 
| style="vertical-align: top;" | '''Live version of template'''
+
<table style="background: transparent; float: right;">
{{Infobox Chef <!-- see Template:Infobox Chef -->
+
<tr><th>{{tl|{{BASEPAGENAME}}}}</th><th>{{tl|{{BASEPAGENAME}}/sandbox}}</th></tr>
 +
<tr><td style="vertical-align: top;">
 +
 
 +
{{Infobox chef <!-- see Template:Infobox chef -->
 
| name          = Chef Name
 
| name          = Chef Name
 
| image          = {{POTD/{{#time:Y-m-d}}|image}}
 
| image          = {{POTD/{{#time:Y-m-d}}|image}}
 
| imagesize      = 150px <!-- Defaults to template default -->
 
| imagesize      = 150px <!-- Defaults to template default -->
 
| caption        = Picture of the day at 150px<br />{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}
 
| caption        = Picture of the day at 150px<br />{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}
| birthname      = Birth name
+
| birth_name    = Birth name
| birthdate      = {{Birth date and age|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
+
| birth_date    = {{Birth date and age|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
| birthplace    = Place of birth
+
| birth_place    = Place of birth
| deathdate      = <!-- Comment -->
+
| death_date    = <!-- Comment -->
| deathplace    = <!-- Comment -->
+
| death_place    = <!-- Comment -->
 
| style          = Cooking style
 
| style          = Cooking style
 
| education      = Education
 
| education      = Education
Line 23: Line 26:
 
| website        = http://en.wikipedia.org/wiki/Main_Page
 
| website        = http://en.wikipedia.org/wiki/Main_Page
 
}}
 
}}
| style="vertical-align: top;" | '''Sandbox version of template'''
+
 
{{Infobox Chef/sandbox <!-- see Template:Infobox Chef -->
+
</td><td style="vertical-align: top;">
 +
 
 +
{{Infobox chef/sandbox <!-- see Template:Infobox chef -->
 
| name          = Chef Name
 
| name          = Chef Name
 
| image          = {{POTD/{{#time:Y-m-d}}|image}}
 
| image          = {{POTD/{{#time:Y-m-d}}|image}}
 
| imagesize      = 150px <!-- Defaults to template default -->
 
| imagesize      = 150px <!-- Defaults to template default -->
 
| caption        = Picture of the day at 150px<br />{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}
 
| caption        = Picture of the day at 150px<br />{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}
| birthname      = Birth name
+
| birth_name    = Birth name
| birthdate      = {{Birth date and age|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
+
| birth_date    = {{Birth date and age|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
| birthplace    = Place of birth
+
| birth_place    = Place of birth
| deathdate      = <!-- Comment -->
+
| death_date    = <!-- Comment -->
| deathplace     = <!-- Comment -->
+
| death_place    = <!-- Comment -->
 +
| style          = Cooking style
 +
| education      = Education
 +
| ratings        = [[Michelin star]]s {{Rating|1|3}}<br>[[American Automobile Association|AAA Motor Club]] {{Rating|3|5}}<br>[[Mobil]] {{Rating|5|5}}<br>[[Good Food Guide]] {{Rating|8|10}}
 +
| restaurants    = Restaurants
 +
| prevrests      = Previous restaurants
 +
| television     = Television
 +
| awards        = Awards won
 +
| website        = http://en.wikipedia.org/wiki/Main_Page
 +
}}
 +
 
 +
</td></tr></table>
 +
{{clear}}
 +
 
 +
== Test case 2: ''Dead'' chef ==
 +
 
 +
<table style="background: transparent; float: right;">
 +
<tr><th>{{tl|{{BASEPAGENAME}}}}</th><th>{{tl|{{BASEPAGENAME}}/sandbox}}</th></tr>
 +
<tr><td style="vertical-align: top;">
 +
 
 +
{{Infobox chef <!-- see Template:Infobox chef -->
 +
| name          = Chef Name
 +
| image          = {{POTD/{{#time:Y-m-d}}|image}}
 +
| imagesize      = 200px <!-- Defaults to template default -->
 +
| caption        = Picture of the day at 200px<br />{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}
 +
| birth_name    = Birth name
 +
| birth_date    = {{Birth date|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
 +
| birth_place    = Place of birth
 +
| death_date    = {{death date and age|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
 +
| death_place    = Place of death
 
| style          = Cooking style
 
| style          = Cooking style
 
| education      = Education
 
| education      = Education
Line 43: Line 77:
 
| website        = http://en.wikipedia.org/wiki/Main_Page
 
| website        = http://en.wikipedia.org/wiki/Main_Page
 
}}
 
}}
|}
 
  
==''Dead'' chef==
+
</td><td style="vertical-align: top;">
{|
+
 
| style="vertical-align: top;" | '''Live version of template'''
+
{{Infobox chef/sandbox <!-- see Template:Infobox chef -->
{{Infobox Chef <!-- see Template:Infobox Chef -->
 
 
| name          = Chef Name
 
| name          = Chef Name
 
| image          = {{POTD/{{#time:Y-m-d}}|image}}
 
| image          = {{POTD/{{#time:Y-m-d}}|image}}
 
| imagesize      = 200px <!-- Defaults to template default -->
 
| imagesize      = 200px <!-- Defaults to template default -->
 
| caption        = Picture of the day at 200px<br />{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}
 
| caption        = Picture of the day at 200px<br />{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}
| birthname      = Birth name
+
| birth_name    = Birth name
| birthdate      = {{Birth date|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
+
| birth_date    = {{Birth date|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
| birthplace    = Place of birth
+
| birth_place    = Place of birth
| deathdate      = {{death date and age|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
+
| death_date    = {{death date and age|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
| deathplace    = Place of death
+
| death_place    = Place of death
 
| style          = Cooking style
 
| style          = Cooking style
 
| education      = Education
 
| education      = Education
Line 67: Line 99:
 
| website        = http://en.wikipedia.org/wiki/Main_Page
 
| website        = http://en.wikipedia.org/wiki/Main_Page
 
}}
 
}}
| style="vertical-align: top;" | '''Sandbox version of template'''
+
 
{{Infobox Chef/sandbox <!-- see Template:Infobox Chef -->
+
</td></tr></table>
 +
{{clear}}
 +
 
 +
== Test case 3: Module ==
 +
 
 +
<table style="background: transparent; float: right;">
 +
<tr><th>{{tl|{{BASEPAGENAME}}}}</th><th>{{tl|{{BASEPAGENAME}}/sandbox}}</th></tr>
 +
<tr><td style="vertical-align: top;">
 +
 
 +
{{Infobox person
 
| name          = Chef Name
 
| name          = Chef Name
 
| image          = {{POTD/{{#time:Y-m-d}}|image}}
 
| image          = {{POTD/{{#time:Y-m-d}}|image}}
 
| imagesize      = 200px <!-- Defaults to template default -->
 
| imagesize      = 200px <!-- Defaults to template default -->
 
| caption        = Picture of the day at 200px<br />{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}
 
| caption        = Picture of the day at 200px<br />{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}
| birthname      = Birth name
+
| birth_name    = Birth name
| birthdate      = {{Birth date|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
+
| birth_date    = {{Birth date|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
| birthplace    = Place of birth
+
| birth_place    = Place of birth
| deathdate      = {{death date and age|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
+
| death_date    = {{death date and age|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
| deathplace    = Place of death
+
| death_place    = Place of death
 +
| education      = Education
 +
| module = {{Infobox chef|child=yes
 
| style          = Cooking style
 
| style          = Cooking style
 +
| ratings        = [[Michelin star]]s {{Rating|1|3}}<br>[[American Automobile Association|AAA Motor Club]] {{Rating|3|5}}<br>[[Mobil]] {{Rating|5|5}}<br>[[Good Food Guide]] {{Rating|8|10}}
 +
| restaurants    = Restaurants
 +
| prevrests      = Previous restaurants
 +
| television    = Television
 +
| awards        = Awards won
 +
}}
 +
| website        = http://en.wikipedia.org/wiki/Main_Page
 +
}}
 +
 +
</td><td style="vertical-align: top;">
 +
 +
{{Infobox person
 +
| name          = Chef Name
 +
| image          = {{POTD/{{#time:Y-m-d}}|image}}
 +
| imagesize      = 200px <!-- Defaults to template default -->
 +
| caption        = Picture of the day at 200px<br />{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}
 +
| birth_name    = Birth name
 +
| birth_date    = {{Birth date|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
 +
| birth_place    = Place of birth
 +
| death_date    = {{death date and age|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}|1950|{{CURRENTMONTH}}|{{CURRENTDAY2}}|mf=y}}
 +
| death_place    = Place of death
 
| education      = Education
 
| education      = Education
 +
| module = {{Infobox chef/sandbox|child=yes
 +
| style          = Cooking style
 
| ratings        = [[Michelin star]]s {{Rating|1|3}}<br>[[American Automobile Association|AAA Motor Club]] {{Rating|3|5}}<br>[[Mobil]] {{Rating|5|5}}<br>[[Good Food Guide]] {{Rating|8|10}}
 
| ratings        = [[Michelin star]]s {{Rating|1|3}}<br>[[American Automobile Association|AAA Motor Club]] {{Rating|3|5}}<br>[[Mobil]] {{Rating|5|5}}<br>[[Good Food Guide]] {{Rating|8|10}}
 
| restaurants    = Restaurants
 
| restaurants    = Restaurants
Line 85: Line 151:
 
| television    = Television
 
| television    = Television
 
| awards        = Awards won
 
| awards        = Awards won
 +
}}
 
| website        = http://en.wikipedia.org/wiki/Main_Page
 
| website        = http://en.wikipedia.org/wiki/Main_Page
 
}}
 
}}
|}
+
 
 +
</td></tr></table>
 +
{{clear}}

Latest revision as of 21:31, 28 January 2017

  1. REDIRECT Template:Testcases notice
  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.

Test case 1: Living chef

{{Infobox chef}}{{Infobox chef/sandbox}}
Chef Name
Template:POTD/2026-03-27
Picture of the day at 150px
March 27, 2026
Born
Birth name

(1950-03-27) March 27, 1950 (age 76)
Place of birth
EducationEducation
Culinary career
Cooking styleCooking style
Websitehttp://en.wikipedia.org/wiki/Main_Page
Template:Wikidata image
Chef Name
Template:POTD/2026-03-27
Picture of the day at 150px
March 27, 2026
BornBirth name
(1950-03-27) March 27, 1950 (age 76)
Place of birth
Cooking styleCooking style
EducationEducation
Official website
http://en.wikipedia.org/wiki/Main_Page

Test case 2: Dead chef

{{Infobox chef}}{{Infobox chef/sandbox}}
Chef Name
Template:POTD/2026-03-27
Picture of the day at 200px
March 27, 2026
Born
Birth name

(1950-03-27)March 27, 1950
Place of birth
DiedMarch 27, 2026(2026-03-27) (aged 76)
Place of death
EducationEducation
Culinary career
Cooking styleCooking style
Websitehttp://en.wikipedia.org/wiki/Main_Page
Template:Wikidata image
Chef Name
Template:POTD/2026-03-27
Picture of the day at 200px
March 27, 2026
BornBirth name
(1950-03-27)March 27, 1950
Place of birth
DiedMarch 27, 2026(2026-03-27) (aged 76)
Place of death
Cooking styleCooking style
EducationEducation
Official website
http://en.wikipedia.org/wiki/Main_Page

Test case 3: Module

{{Infobox chef}}{{Infobox chef/sandbox}}
Chef Name
Template:POTD/2026-03-27
Picture of the day at 200px
March 27, 2026
Born
Birth name

(1950-03-27)March 27, 1950
Place of birth
DiedMarch 27, 2026(2026-03-27) (aged 76)
Place of death
EducationEducation
Culinary career
Cooking styleCooking style
Websitehttp://en.wikipedia.org/wiki/Main_Page
Template:Wikidata image
Chef Name
Template:POTD/2026-03-27
Picture of the day at 200px
March 27, 2026
Born
Birth name

(1950-03-27)March 27, 1950
Place of birth
DiedMarch 27, 2026(2026-03-27) (aged 76)
Place of death
EducationEducation
Culinary career
Cooking styleCooking style
Websitehttp://en.wikipedia.org/wiki/Main_Page
Template:Wikidata image