Difference between revisions of "Template:AFB game box scoring entry"

From blackwiki
Jump to navigation Jump to search
blackwiki>ShakespeareFan00
m
blackwiki>Jonesey95
(fix linter errors (misc tidy formatting error, div inside of span))
Line 1: Line 1:
 
<noinclude>{| class="infobox" style="width:35em; font-size:90%;"
 
<noinclude>{| class="infobox" style="width:35em; font-size:90%;"
 
|-
 
|-
|</noinclude><includeonly>{{#if: {{{FirstEntry|}}} |<tr><td style="border-top: 1px solid #aaaaaa; border-bottom: 1px solid #aaaaaa;"></td></tr><tr><td><table class="infobox collapsible collapsed nowraplinks" style="border:none; margin:0 0; padding:0 0; width:100%;"><tr><th colspan=5>Scoring summary</th></tr>|}}{{#if: {{{Quarter|}}} |<tr><td colspan=5 style="border-top: 1px solid #aaaaaa;"></td></tr><tr><td rowspan={{{QuarterEntries|1}}}>{{{Quarter}}}</td>| <tr>&nbsp; |}}<td><span style="white-space:nowrap;">{{align|right|{{{Time}}}}}</span></td><td><span style="white-space:nowrap">{{{Team}}}</span></td><td>{{{Event}}}</td><td><span style="white-space:nowrap">{{{Score}}}</span></td></tr>
+
|</noinclude><includeonly>{{#if: {{{FirstEntry|}}} |<tr><td style="border-top: 1px solid #aaaaaa; border-bottom: 1px solid #aaaaaa;"></td></tr><tr><td><table class="infobox collapsible collapsed nowraplinks" style="border:none; margin:0 0; padding:0 0; width:100%;"><tr><th colspan=5>Scoring summary</th></tr>|}}{{#if: {{{Quarter|}}} |<tr><td colspan=5 style="border-top: 1px solid #aaaaaa;"></td></tr><tr><td rowspan={{{QuarterEntries|1}}}>{{{Quarter}}}</td>| <tr>&nbsp; |}}<td><span style="white-space:nowrap;">{{right|{{{Time}}}}}</span></td><td><span style="white-space:nowrap">{{{Team}}}</span></td><td>{{{Event}}}</td><td><span style="white-space:nowrap">{{{Score}}}</span></td></tr>
 
{{#if: {{{LastEntry|}}} |</table>|}}</includeonly><noinclude>
 
{{#if: {{{LastEntry|}}} |</table>|}}</includeonly><noinclude>
 
{{AFB game box end}}
 
{{AFB game box end}}
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 19:22, 23 August 2018

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

Usage

This template is to be used in conjunction with two other templates: it must be preceded by {{AFB game box start}} and must be followed by {{AFB game box end}}.

When combined, the three templates will provide a thorough box score for an American football game.

All fields (copy and paste text and then delete unneeded parameters): {{AFB game box scoring entry|FirstEntry=|Quarter=|QuarterEntries=|Time=|Team=|Event=|Score=|LastEntry=}}

Parameters legend

  • FirstEntry: Enter "yes" if recording the first score of the game.
  • Quarter: the quarter in which the score occurred. Example: Q1 for the first quarter.
  • QuarterEntries: the number of scores to be grouped within the quarter (omits the horizontal line between scores). Leave "Quarter" undefined for the subsequent scores in the same quarter.
  • Time: Time remaining in the quarter at the time of the score.
  • Team: Abbreviation of the team that scored.
  • Event: Brief description of the scoring play. (Examples: "Santonio Holmes 6 yard pass from Ben Roethlisberger (Jeff Reed kick)" or "28 yard field goal by Stephen Gostkowski")
  • Score: The abbreviation of the leading team followed by the score of the game. (Example: USC 14–10 or Pitt 13–9 or NYG 17–14)
  • LastEntry: Enter "yes" if recording the last score of the game.

See also