Difference between revisions of "Template:CFB Yearly Record Subhead"

From blackwiki
Jump to navigation Jump to search
imported>AGK
m (Protected Template:CFB Yearly Record Subhead: Highly-visible template (between 1900 and 4000 transclusions) (‎[edit=autoconfirmed] (indefinite) ‎[move=sysop] (indefinite)))
imported>Frietjes
(allow for startyear=endyear per request)
Line 1: Line 1:
 
|-
 
|-
| style="background:#dddddd; border-bottom: 2px solid #aaaaaa;" colspan="{{ #if:{{{hiddencols|}}}|{{ #expr: 9-{{{hiddencols|}}} }}|9 }}" align="center" | '''{{{name}}}''' {{#ifeq:{{{conf|}}} | no | | ''({{{conf}}})''}} <small>({{{startyear}}}{{#if:{{{endyear|}}} | {{#ifeq:{{{endyear|}}} | single | | –{{{endyear|}}} }} | –present}})</small><noinclude>
+
| style="background:#dddddd; border-bottom: 2px solid #aaaaaa;text-align:center;" colspan="{{ #if:{{{hiddencols|}}}|{{ #expr: 9-{{{hiddencols|}}} }}|9 }}" | '''{{{name}}}''' {{#ifeq:{{{conf|}}} | no | | ''({{{conf}}})''}} <small>({{{startyear}}}{{#switch:{{{endyear|}}}  
 +
  |present|= –present
 +
  |single|{{{startyear}}} =
 +
  |#default= –{{{endyear|}}}  
 +
  }})</small><noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 22:21, 5 October 2016

|- | style="background:#dddddd; border-bottom: 2px solid #aaaaaa;text-align:center;" colspan="9" | {{{name}}} ({{{conf}}}) ({{{startyear}}}–present)

Template documentation[view] [edit] [history] [purge]

Usage

This template is the subheader for a table containing the yearly record of either a college football coach or team. It is to be used in conjunction with the other templates associated with this table (under See also).

This subheader can be used in several ways within a team/coach record table:

  • to indicate coaching changes within a team
  • to indicate conference membership changes within a team
  • to indicate a change in the institution of a head coach

Detail

{{CFB Yearly Record Subhead
 | name      = insert the full name of the team, coach, or conference the following entries will describe
 | conf      = insert "no" if the team is/was not a member of a conference; otherwise insert the name of the conference
               unless this subheading describes a conference membership change, in which case use the 'name' param instead
 | startyear = insert the first season the subsection describes
 | endyear   = insert the last season the subsection describes OR insert "single" to indicate
               a one-year span of time (identified by 'startyear') (if left blank, will display "present")
}}

Basic usage

{{CFB Yearly Record Subhead
 | name      = 
 | conf      = 
 | startyear = 
 | endyear   = 
}}

See also