Wikipedia:WikiProject Football/Templates
From Wikipedia, the free encyclopedia
|
WikiProject on Football |
|
| Main pages | |
| Main project | talk |
| Task forces and sub-projects | talk |
| Football portal | talk |
| New articles | talk |
| Cleanup articles | talk |
| Football AID | |
| Article improvement drive | talk |
| Previous collaborations | talk |
| Featured collaborations | talk |
| Previous nominations | talk |
| Football Assessment | |
| Assessment Department | talk |
| Assessment log | talk |
| Manual of style | |
| Club articles | talk |
| Club templates | talk |
| National team articles | talk |
| National team templates | talk |
| National association articles | talk |
| National assn. templates | talk |
| Competition articles | talk |
| Match articles | talk |
| Player articles | talk |
| Stadium articles | talk |
| Other | |
| Category structure | talk |
| Notability criteria | talk |
| Template list | talk |
| Sources and links | talk |
| Participants | talk |
| Project milestones | talk |
| Did You Know? archive | talk |
This page is part of the WikiProject on Football and is intended to be used as a guide on template standardization.
Contents |
[edit] Navigational boxes (navboxes)
This is a system for allowing all navigational boxes related to football organisations to be placed on any page without having to have them as separate boxes, thus making it simple to, for example (unrealistic as it may be), group into one navbox the listing of the teams in the FA Premier League with the listing of the Asian football federations and the Man Utd infobox, together with standard links for Swedish football. Standard colours for header rows, standard methods for listing teams, and other standardizations have been introduced to make these boxes look good when combining several different pieces.
They should not be used for squad lists or manager histories or for other similar uses. These should use the templates outlined at below.
[edit] Templates used
The standardization consists of four templates, and only needs minor modification of the existing navboxes to work.
- {{football box start}} or {{fb start}}
- {{football box end}} or {{fb end}}
- {{football box inner start}} or {{fb inner start}}
- {{football box inner end}} or {{fb inner end}}
The latter of the variants are redirects but are easier to remember and to type, and works just as well.
[edit] If the navbox is standardized
If the navbox you intend to include in an article already standardized (there may be a text at the template page saying so, but if there is not, test this by simply adding it to an article and preview, if this produces strange results, it is standardized, if it shows up as it should, it is not standardized), the only thing you need to do to include it in the article is to type in:
{{fb start}}{{Football template}}{{fb end}}
Of course replacing {{Football template}} with the navbox you intend to use. If there already are {{fb start}} and {{fb end}} tags included in the article, just place {{Football template}} somewhere in between them, there is no need for double sets of tags:
{{fb start}}{{Football template}}{{Another football template}}{{fb end}}
[edit] If the navbox is not standardized
If the navbox you intend to include in an article is not standardized, a few modifications to the navbox are necessary if you want to use it with the {{fb start}} and {{fb end}} tags. In case you are a lazy Wikipedian, just add the template the regular way without modifying anything, but in case you are a good Wikipedian, do the following:
- Open up and edit the navbox page.
- Add the following at the absolute top of the navbox:
<noinclude>{{fb start}}</noinclude>
This ensures that the template page of the navbox shows how the navbox looks when used instead of showing the code. - Add the following under the previous code:
|-
!style="background:#BFD7FF;"|{{Tnavbar-header|[[Navbox header]]|Template Name}}
This produces the header of the navbox, with the standard colour, which may be changed when making for example club navboxes, but otherwise this colour (light blue) should be used for most templates. It also includes small links to template, template talk and edit template. The [[Navbox header]] should of course be modified to fit the purpose of the navbox you are creating/standardizing, but Template Name must be the exact name used after Template: in the title. - Add the following under the previous code:
{{fb inner start}}
This is a short piece of code that allows all kinds of navbox configurations to be displayed between the same {{fb start}} and {{fb end}} tags. - Next add the contents of the navbox. When creating/standardizing a navbox listing things, the standard code is:
|- style="text-align:center;"
|
<!-- NBSPs prevent wrapping-->
[[First item|First item]] |
[[Second item|Second item]] |
...
[[Last item|Last item]]
When creating/standardizing a navbox with tables, the standard code is:
|- style="text-align:center;"
|width="xx%"|[[1st row, 1st col]]
|width="xx%"|...
|width="xx%"|[[1st row, Last col]]
|- style="text-align:center;"
|[[2nd row, 1st col]]
|...
|[[2nd row, Last col]]
And so on. - Add the following under the previous code:
{{fb inner end}}<noinclude>
{{fb end}}
{{using fb}}</noinclude>
The first tag is the ending of the earlier {{fb inner start}}, the second tag is the ending of the earlier {{fb start}} and the last tag adds a short explanation on how to use the template and also adds it in this category.
This should work on all navboxes that only contain one header and one type of formatting (listing or tables, not both). If the navbox is more complicated than that, you may either fiddle around a little yourself if you are confident in that you understand the use of the templates, or contact someone that can help you, preferably by asking on this page's talk page.
[edit] Information boxes (infoboxes)
| Code | Where to use | Usage instructions |
|---|---|---|
| {{Infobox Football biography}} | Biographies of players or managers, both past and present | Template:Infobox Football biography/doc |
| {{Infobox Football club}} | Articles about clubs | Template talk:Infobox Football club |
| {{Infobox National football team}} | Articles about national teams | Template talk:Infobox National football team |
| {{Infobox FA Premier League season}} | FA Premier League season articles | Template talk: Infobox FA Premier League season |
| {{Infobox football official}} | Biographies of referees, both past and present | Template:Infobox football official/doc |
[edit] Squad lists
[edit] Clubs
For squad lists in club articles, use the following templates:
For instructions on how to use these templates, see Template talk:Football squad player
[edit] Players
For most major clubs and national teams, there are navboxes for the current squad that can be inserted at the foot of a player's biography. See Category:Football squad templates for a full list.
To create a new squad template (having first checked there isn't one already) use the following templates:
- {{Football squad}} in conjunction with:
- {{Football squad2 player}}
- {{Football squad lastplayer}}
- {{Football squad manager}}
For instructions on how to use these templates, see Template:Football squad/doc and Template talk:Football squad.
[edit] Managers
For most major clubs and national teams, there are navboxes for the current squad that can be inserted at the foot of a player's biography. See Category:Football manager history templates for a full list.
- {{Football manager history}} should be used in conjunction with:
- {{Football manager list entry}}
- {{Football manager last}}
[edit] Timesavers
The following templates are used with subst to save writing the entire link.
- {{fc}} - Creates a link in the format of [[<clubname> F.C.|<clubname>]]
- {{afc}} - Creates a link in the format of [[<clubname> A.F.C.|<clubname>]]
- {{afc2}} - Creates a link in the format of [[A.F.C. <clubname>|<clubname>]]
- {{lfc}} - Creates a link in the format of [[<clubname> L.F.C.|<clubname>]]
- {{efs}} - Creates a link in the format of [[<season> in English football|<season>]]
- {{wc}} - Creates a link in the format of [[<year> FIFA World Cup]]
- {{ec}} - Creates a link in the format of [[19<year> UEFA European Football Championship|Euro <year>]]
- {{ec2}} - Creates a link in the format of [[<year> UEFA European Football Championship|Euro <year>]]
- {{nft}} - Creates a link in the format of [[<country> national football team|<country>]]
- {{fcl}} - Creates a link in the format of <flag icon>[[List of football clubs in <country>|<country>]]
All such templates should be substituted. For example, use {{subst:fc|<clubname>}}, which will produce [[<clubname> F.C.|<clubname>]].

