Template:Infobox class: Difference between revisions

From Parents
Jump to navigation Jump to search
(Put image in header)
(Darken background of teacher header more)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Infobox table|1=<tr>
<includeonly>{{Infobox table|1=<tr>
<th>{{{teacher_class_name}}}'s {{{year}}}
<th style="font-size: larger;">{{{teacher}}}'s
<br/>{{{grade}}} Class{{#if:{{{image|}}}|
<br/>{{{grade}}} Class{{#if:{{{image|}}}|
<br/>[[{{{image}}}|frameless]]||}}</tr>}}</includeonly><noinclude>
<br/>[[{{{image}}}|frameless]]|}}</tr>
<tr>
<th style="background: hsl(0, 0%, 95%);">{{{teacher_page}}}</th>
</tr>{{#if:{{{teacher_email|}}}{{{teacher_phone}}}|
{{#if:{{{teacher_email}}}|<tr>
<td style="text-align: center;">[mailto:{{{teacher_email}}} {{{teacher_email}}}]</td>
</tr>|}}
{{#if:{{{teacher_phone}}}|<tr>
<td style="text-align: center;">{{{teacher_phone}}}</td>
</tr>|}}|}}}}</includeonly><noinclude>
{{Infobox class
{{Infobox class
|teacher = {{{teacher}}}
|year = {{{year}}}
|grade = {{{grade}}}
|grade = {{{grade}}}
|image = {{{image}}}
|image = {{{image}}}
|teacher_page = {{{teacher_page}}}
|teacher_class_name = {{{teacher_class_name}}}
|teacher_email = {{{teacher_email}}}
}}
}}
<pre>
<pre>
{{Infobox class
{{Infobox class
|year = e.g. 2013-2014
|teacher = Ms. Teacher
|grade = First Grade, Kindergarten, etc.
|grade = First Grade, Kindergarten, Pre-K, etc.
|image = File:class.jpeg
|image = File:class.jpeg
|teacher_page = [[Ms. Teacher]]
|teacher_class_name = Ms. Lastname, Mr. Firstname, etc.
|teacher_email = teacher@example.edu
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 18:34, 8 August 2013

{{{teacher_class_name}}}'s {{{year}}}
{{{grade}}} Class
[[{{{image}}}|frameless]]
{{{teacher_page}}}
{{{teacher_email}}}
{{{teacher_phone}}}
{{Infobox class
|year               = e.g. 2013-2014
|grade              = First Grade, Kindergarten, Pre-K, etc.
|image              = File:class.jpeg
|teacher_page       = [[Ms. Teacher]]
|teacher_class_name = Ms. Lastname, Mr. Firstname, etc.
|teacher_email      = teacher@example.edu
}}