Difference between revisions of "Template:Infobox"

From QBWiki
Jump to navigation Jump to search
m (Test for Image argument, remove nested table)
Line 1: Line 1:
 +
<includeonly>
 
{| border=1 cellpadding=2 cellspacing=0 width=310 class="toccolours" style="float: right; margin: 0 0 0.75em 0.75em; background: #f9f9f9; border: 1px #c6c6c6 solid; border-collapse: collapse; font-size: 85%;"
 
{| border=1 cellpadding=2 cellspacing=0 width=310 class="toccolours" style="float: right; margin: 0 0 0.75em 0.75em; background: #f9f9f9; border: 1px #c6c6c6 solid; border-collapse: collapse; font-size: 85%;"
 
|- style="border-bottom-width:0"
 
|- style="border-bottom-width:0"
Line 6: Line 7:
 
{{{Caption|}}}
 
{{{Caption|}}}
 
|-
 
|-
! align=center colspan=2| Noted Subjects: <br> {{{Subjects|}}}
+
! align=center colspan=2| {{ifNoted Subjects: <br> {{{Subjects|}}}
 
|-
 
|-
 
|'''Current Collegiate Team'''|| {{{schoolcur|None}}}
 
|'''Current Collegiate Team'''|| {{{schoolcur|None}}}
Line 17: Line 18:
 
|-
 
|-
 
|}
 
|}
<includeonly>[[Category:People]]</includeonly>
+
[[Category:People]]</includeonly>
 +
<noinclude>
 +
{{Infobox
 +
  |Name = Name
 +
  |Image = Image formatted to 200px (optional)
 +
  |Subjects = Subjects
 +
  |schoolcur = schoolcur
 +
  |schoolpast = schoolpast
 +
  |highschool = highschool
 +
}}
 +
Usage:<pre>{{Infobox
 +
  |Name = Name
 +
  |Image = Image, formatted to 200px (optional)
 +
  |Subjects = Subjects
 +
  |schoolcur = schoolcur
 +
  |schoolpast = schoolpast
 +
  |highschool = highschool
 +
}}</pre>
 +
</noinclude>

Revision as of 12:40, 18 December 2020


Name
200px
{{ifNoted Subjects:
Subjects
Current Collegiate Team schoolcur
Past Collegiate Teams schoolpast
High School Team highschool
Middle School Team None

Usage:

{{Infobox
  |Name = Name
  |Image = Image, formatted to 200px (optional)
  |Subjects = Subjects
  |schoolcur = schoolcur
  |schoolpast = schoolpast
  |highschool = highschool
}}