Wikipedia:WikiProject Football/Templates

From Wikipedia, the free encyclopedia

WikiProject
on Football
Main pages
Main project talk
  Football in Australia project talk
  Non-league project 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
External links 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 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.

[edit] Templates used

The standardization consists of four templates, and only needs minor modification of the existing navboxes to work.

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:

  1. Open up and edit the navbox page.
  2. 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.
  3. Add the following under the previous code:
    |-
    !style="background:#BFD7FF;"|{{Tnavbar-header|[[Navbox header]]|Template Name|bgcolor=#BFD7FF}}
    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.
  4. 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.
  5. 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&nbsp;item]]&nbsp;| 
    [[Second item|Second&nbsp;item]]&nbsp;| 
    ...
    [[Last item|Last&nbsp;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.
  6. 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 talk:Infobox Football biography
{{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

[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:

For instructions on how to use these templates, see Template talk:Football squad2 start

[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>]]

All such templates should be substituted. For example, use {{subst:fc|<clubname>}}, which will produce [[<clubname> F.C.|<clubname>]].

[edit] Stub notices

Listed below are the specific stub notices that can be used for stub articles.

[edit] People

Code What it looks like Where to use
{{Africa-footybio-stub}} On stub articles about African people related to football.
{{Asia-footybio-stub}} On stub articles about Asian people related to football.
{{Australia-footy-bio-stub}} On stub articles about Australian people related to football.
{{Euro-footy-bio-stub}} On stub articles about European people related to football (excluding England and Scotland).
{{Belgium-footy-bio-stub}} On stub articles about Belgian people related to football.
{{Denmark-footy-bio-stub}} On stub articles about Danish people related to football.
{{England-footy-bio-stub}} On stub articles about English people related to football.
{{Ireland-footy-bio-stub}} On stub articles about people from Republic of Ireland related to football.
{{Italy-footy-bio-stub}} On stub articles about Italian people related to football.
{{Norway-footy-bio-stub}} On stub articles about Norwegian people related to football.
{{NI-footy-bio-stub}} On stub articles about people from Northern Ireland related to football.
{{Poland-footybio-stub}} On stub articles about Polish people related to football.
{{Scotland-footybio-stub}} On stub articles about Scottish people related to football.
{{Spain-footybio-stub}} This biographical article related to Spanish football (soccer) is a stub. You can help Wikipedia by expanding it. On stub articles about Spanish people related to football.
{{Sweden-footybio-stub}} This biographical article related to Swedish football (soccer) is a stub. You can help Wikipedia by expanding it. On stub articles about Swedish people related to football.
{{Wales-footybio-stub}} On stub articles about Welsh people related to football.
{{NorthAm-footybio-stub}} On stub articles about North American people related to football.
{{Oceania-footybio-stub}} On stub articles about Oceanian people related to football.
{{SouthAm-footybio-stub}} On stub articles about South American people related to football.
{{Brazil-footy-bio-stub}} On stub articles about Brazilian people related to football.
{{footy-bio-stub}} On stub articles about persons related to football (if they cannot be sorted into the correct region).

[edit] Clubs

Code What it looks like Where to use
{{Africa-footyclub-stub}} On stub articles about African football clubs.
{{Asia-footyclub-stub}} On stub articles about Asian football clubs.
{{Euro-footyclub-stub}} On stub articles about European football clubs (excluding England).
{{England-footyclub-stub}} On stub articles about English football clubs.
{{Portugal-footyclub-stub}} On stub articles about Portuguese football clubs.
{{SouthAm-footyclub-stub}} On stub articles about South American football clubs.
{{US-footyclub-stub}} On stub articles about United States football clubs.
{{footyclub-stub}} On stub articles about football clubs in regions not covered above.

[edit] Miscellaneous

Code What it looks like Where to use
{{footy-org-stub}} On stub articles about football organizations.
{{footy-stub}} On stub articles about football not covered by any of the above templates.

[edit] Talk page templates

These should be only used on talk pages.

Code What it looks like Where to use
{{football}}
WikiProject on Football This article is supported by the WikiProject on Football, which is an attempt to establish standards for football related articles on Wikipedia. Please participate by editing the article WikiProject Football/Templates, or visit the project page for more details.
On talk pages of football articles.

[edit] Barnstars

Used to recognise users as being particularly useful to the WikiProject. These should be places on user talk pages.

Image What to type Description
The Football (Soccer) Star {{ subst:Football (soccer) star|message ~~~~ }} The Football (Soccer) Star is awarded to those who contribute exceptionally to football (soccer)-related articles. Also used for the WikiProject Football and WikiProject A-League. Introduced and designed by Guinnog.