Wikipedia talk:WikiProject Football/Templates

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Johan Elisson (talk | contribs) at 17:11, 3 March 2006 (→‎Layout: minor correction). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Jump to navigation Jump to search

Template standardization

How about standardizing all those templates on the bottom of most of the football related articles? I've thought about this for a while, and my proposition is pretty simple, the bottom page template boxes are started with a {{fb start}} template, and ended with a {{fb end}} template. All other templates, for national leagues, international competitions, club history series, and anything other, should then be modified so that they can be placed between the start and end tags to produce a good looking infobox. An example of the written code could look something like this:

{{fb start}}
{{Football in Sweden}}
{{Allsvenskan}}
{{Royal League}}
{{fb end}}

And it would produce this result. See the 1-5 links on the page for examples on how {{fb start}}, {{Football in Sweden}}, {{Allsvenskan}}, {{Royal League}} and {{fb end}} could look like. The whole meaning of this would be a system where any infobox could be placed on any page without having to have them as separate boxes, or rewriting the templates, meaning that in theory it should be simple to group into one infobox 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 should also be introduced to make these boxes look good when combining several different pieces. Comments? -- Elisson Talk 19:31, 2 February 2006 (UTC)[reply]

Looks ok to me. CTOAGN (talk) 20:33, 3 February 2006 (UTC)[reply]

I've created {{fb start}} (redirects to {{football box start}}) and {{fb end}} (redirects to {{football box end}}), so feel free to either discuss what the standard boxes should look like, or start implementing the standard in football infoboxes. -- Elisson Talk 01:23, 4 February 2006 (UTC)[reply]

I support your proposal. It looks pretty good in the version from your sandbox. About its actual implementation, we could even start right now. I don't think people will get disappointed by that, it's not a particularly invasive change. --Angelo 21:59, 25 February 2006 (UTC)[reply]
I think it looks good, and should be implemented. Oldelpaso 01:52, 26 February 2006 (UTC)[reply]
I'm all for it. -Aabha (talk) 03:39, 26 February 2006 (UTC)[reply]
I think it's a great addition. veila# 04:00, 26 February 2006 (UTC)[reply]
Great! I've spent this evening modifying some 500 pages to go with the standard. I've changed the {{International football}}, {{Football World Cup}} and {{Non-FIFA teams}} templates, the templates for national teams and national associations for all six confederations, and a few more. I think these were the thoughest to get through, so even though there are several dozens of templates left, they should be easier to handle as they aren't scattered all over Wikipedia, which means you olny need to modify a few pages at a time (which was not the case with the International football template ;) ). -- Elisson Talk 22:00, 26 February 2006 (UTC)[reply]

Proposal

Layout

  • {{fb start}}:
    {| class="toccolours" style="margin: 0.5em auto; width:47em; clear: both;"
    This starts the box and produces the standard layout and defines margins and width.
  • {{fb end}}:
    |}
    This ends the box.
  • {{Copa América}} (a template listing stuff):
    <noinclude>{{fb start}}</noinclude>
    This does nothing to the template except making it easier to see how a template looks.
    |-
    This starts a new row.
    !colspan="12" style="background:#BFD7FF;"|[[Copa América]]
    This designs the started row to be a header row, defines the column span, defines background colour and produces the header text (linked, in this case).
    |-
    This starts a new row.
    |colspan="12" style="text-align:center;"|
    This designs the started row, defines the column span and centers the text that will follow.
    <!-- NBSPs prevent wrapping-->
    This is just a note to the editors of the template that the   entries in the text that will follow prevents wrapping in the middle of a link.
    [[South American Championship 1916|Argentina&nbsp;1916]]&nbsp;|
    ...
    [[Copa América 2004|Peru&nbsp;2004]]&nbsp;|
    [[Copa América 2007|Venezuela&nbsp;2007]]<noinclude>
    This is the text that is contained in the started row. The last entry should not be ended by any pipe. but instead by the <noinclude> tag. This prevents extra rows to be added when using the template.
    {{fb end}}</noinclude>
    This does nothing to the template except making it easier to see how a template looks, note that the <noinclude> starting tag must be placed on the row above.
  • {{Football in Sweden}} (a template with tables):
    <noinclude>{{fb start}}</noinclude>
    This does nothing to the template except making it easier to see how a template looks.
    |-
    This starts a new row.
    !colspan="12" style="background:#BFD7FF;"|[[Football in Sweden]]
    This designs the started row to be a header row, defines the column span, defines background colour and produces the header text (linked, in this case).
    |-
    This starts a new row.
    |colspan="3" style="text-align:center;"|[[Swedish Football Association|National association]]
    |colspan="3" style="text-align:center;"|[[Sweden national football team|National team]]
    |colspan="3" style="text-align:center;"|[[List of football clubs in Sweden|List of clubs]]
    |colspan="3" style="text-align:center;"|[[Swedish football champions|Champions]]
    This designs the started row, defines four columns, defines the column span and centers the text that follows.
    |-
    This starts a new row.
    |colspan="3" style="text-align:center;"|[[Football records in Sweden|Records]]
    |colspan="3" style="text-align:center;"|[[Sweden women's national football team|Women's national team]]
    |colspan="3" style="text-align:center;"|[[List of women's football clubs in Sweden|List of women's clubs]]
    |colspan="3" style="text-align:center;"|[[Seasons in Swedish football|Seasons]]
    This designs the started row, defines four columns, defines the column span and centers the text that follows.
    <noinclude>{{fb end}}</noinclude>
    This does nothing to the template except making it easier to see how a template looks.

Discussion

The width defined in {{fb start}}
The header colour defined in the template
The total number of columns defined in the template
  • I have set this number to 12, to make most designs currently used still be compatible with the standardization. 12 is dividible by 1, 2, 3, 4, 6 and 12, which allows many configurations of the number of columns in table boxes. This number is crucial as any two separate boxes that are added between the same {{fb start}} and {{fb end}} need to have the same total column number (but not necessarily the same configuration). -- Elisson Talk 18:00, 1 March 2006 (UTC)[reply]
    • Twelve? Isn't it too much?!? Whatever, if it does not add any relevant issue of development for possible future template, it's good anyway. --Angelo 02:19, 2 March 2006 (UTC)[reply]
      • Twelve is the lowest number dividible by two, three and four. Having less "total columns" than that would make it impossible to design good looking templates with one of these numbers of columns. -- Elisson Talk 13:10, 2 March 2006 (UTC)[reply]