Jump to content

Template talk:Infobox NFL single game

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
{{NFL single game infobox
|name=
|image=
|caption=
|visitor=
|visitor abbr=
|visitor coach=
|visitor record=
|home=
|home abbr=
|home coach=
|home record=
|visitor qtr1=
|visitor qtr2=
|visitor qtr3=
|visitor qtr4=
|visitor qtr5=
|visitor qtr6=
|visitor total=
|home qtr1=
|home qtr2=
|home qtr3=
|home qtr4=
|home qtr5=
|home qtr6=
|home total=
|date=
|stadium=
|city=
|referee=
|attendance=
|odds=
|network=
|announcers=
|}}

removing 'auto link' for coaches

[edit]

I've removed the [[ ]] around the home coach and visitor coach.

This is because some names need more complex links, for example, [[Jimmy Johnson (American football coach)|Jimmy Johnson]].

In other more complex, more standard templates, the code checks each field to see if the information has been given, and if so displays it; the conventional format is to specify the link (if any) in the template call. For example, instead of;

|home coach=Jimmy Johnson

...providing a link to the incorrect article, it will now be necessary to specify the link, with;

|home coach=[[Jimmy Johnson (American football coach)|Jimmy Johnson]]

Ideally, a similar change would be made on all fields, and 'if' code added to check that the fields exist etc, but I don't have the time to do this right now.

I will manually alter the pages that use this template, adding the linkage for the coaches.

 Chzz  ►  16:40, 26 April 2009 (UTC)[reply]