Difference between revisions of "Template:Fb cl3 header navbar/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Davykamanzi
imported>Amorymeltzer
m (Replacing Template:Tooltip with Template:Abbr, as the former was deprecated (via WP:JWB))
 
Line 1: Line 1:
 
{{{!}}class="wikitable {{#if:{{{sortable|}}}|sortable}} {{#if: {{{collapsible|}}}|collapsible}} {{#if: {{{collapsed|}}}|collapsed}}" style="text-align: center; font-size:{{{fs|100}}}%" {{#if: {{{width|}}}|width="{{{width}}}"}}
 
{{{!}}class="wikitable {{#if:{{{sortable|}}}|sortable}} {{#if: {{{collapsible|}}}|collapsible}} {{#if: {{{collapsed|}}}|collapsed}}" style="text-align: center; font-size:{{{fs|100}}}%" {{#if: {{{width|}}}|width="{{{width}}}"}}
 
{{!}}+{{#if:{{{title|}}}|{{{title}}}}}
 
{{!}}+{{#if:{{{title|}}}|{{{title}}}}}
{{#if: {{{regional|}}}|{{#if:{{{p|}}}|!width=28{{!}}{{Tooltip|Pos.|Ranking in tournament}}}}
+
{{#if: {{{regional|}}}|{{#if:{{{p|}}}|!width=28{{!}}{{Abbr|Pos.|Ranking in tournament}}}}
 
!width={{#if:{{{region-width|}}}|{{{region-width}}}|100}}{{!}}{{#ifeq:{{{template|}}}|yes|{{tnavbar-header|{{#if:{{{region|}}}|{{{region}}}|Region}}|Template:<includeonly>{{{name|}}}</includeonly>}}|{{#if:{{{region|}}}|{{{region}}}|Region}}}}
 
!width={{#if:{{{region-width|}}}|{{{region-width}}}|100}}{{!}}{{#ifeq:{{{template|}}}|yes|{{tnavbar-header|{{#if:{{{region|}}}|{{{region}}}|Region}}|Template:<includeonly>{{{name|}}}</includeonly>}}|{{#if:{{{region|}}}|{{{region}}}|Region}}}}
!width=28{{!}}{{Tooltip|T|Total number of teams from region}}
+
!width=28{{!}}{{Abbr|T|Total number of teams from region}}
!width=28{{!}}{{Tooltip|Pld|Total games played}}
+
!width=28{{!}}{{Abbr|Pld|Total games played}}
!width=28{{!}}{{Tooltip|W|Total games won}}
+
!width=28{{!}}{{Abbr|W|Total games won}}
!width=28{{!}}{{Tooltip|D|Total games drawn (tied)}}
+
!width=28{{!}}{{Abbr|D|Total games drawn (tied)}}
!width=28{{!}}{{Tooltip|L|Total games lost}}
+
!width=28{{!}}{{Abbr|L|Total games lost}}
!width=28{{!}}{{Tooltip|Pts|Total points accumulated (teams receive {{#if:{{{wpts|}}}|{{{wpts}}}|three}} points for a win, one point for a draw and no points for a loss)}}
+
!width=28{{!}}{{Abbr|Pts|Total points accumulated (teams receive {{#if:{{{wpts|}}}|{{{wpts}}}|three}} points for a win, one point for a draw and no points for a loss)}}
!width=28{{!}}{{Tooltip|APts|Average points per game}}
+
!width=28{{!}}{{Abbr|APts|Average points per game}}
!width=28{{!}}{{Tooltip|Pts<nowiki>/</nowiki>T|Points per team}}
+
!width=28{{!}}{{Abbr|Pts<nowiki>/</nowiki>T|Points per team}}
 
|
 
|
{{#if:{{{p|}}}|!width=28{{!}}{{Tooltip|Pos.|Ranking in tournament}}}}
+
{{#if:{{{p|}}}|!width=28{{!}}{{Abbr|Pos.|Ranking in tournament}}}}
!width={{#if:{{{team-width|}}}|{{{team-width}}}|190}}{{!}}{{#ifeq:{{{template|}}}|yes|{{tnavbar-header|{{#if:{{{region|}}}|{{{region}}}|Team}}|Template:<includeonly>{{{name|}}}</includeonly>}}|{{#if:{{{region|}}}|{{{region}}}|Team}}}}{{#ifeq:{{Yesno|{{{confed|no}}}}}|yes|!!width=28{{!}}{{Tooltip|Confed.|Confederation}}|}}
+
!width={{#if:{{{team-width|}}}|{{{team-width}}}|190}}{{!}}{{#ifeq:{{{template|}}}|yes|{{tnavbar-header|{{#if:{{{region|}}}|{{{region}}}|Team}}|Template:<includeonly>{{{name|}}}</includeonly>}}|{{#if:{{{region|}}}|{{{region}}}|Team}}}}{{#ifeq:{{Yesno|{{{confed|no}}}}}|yes|!!width=28{{!}}{{Abbr|Confed.|Confederation}}|}}
{{#ifeq:{{Yesno|{{{group|no}}}}}|yes|!width=28{{!}}{{Tooltip|G|Group}}|}}
+
{{#ifeq:{{Yesno|{{{group|no}}}}}|yes|!width=28{{!}}{{Abbr|G|Group}}|}}
!width=28{{!}}{{Tooltip|Pld|Total games played}}
+
!width=28{{!}}{{Abbr|Pld|Total games played}}
!width=28{{!}}{{Tooltip|W|Total games won}}
+
!width=28{{!}}{{Abbr|W|Total games won}}
!width=28{{!}}{{Tooltip|D|Total games drawn (tied)}}
+
!width=28{{!}}{{Abbr|D|Total games drawn (tied)}}
!width=28{{!}}{{Tooltip|L|Total games lost}}
+
!width=28{{!}}{{Abbr|L|Total games lost}}
!width=28{{!}}{{Tooltip|Pts|Total points accumulated (teams receive {{#if:{{{wpts|}}}|{{{wpts}}}|three}} points for a win, one point for a draw and no points for a loss)}}
+
!width=28{{!}}{{Abbr|Pts|Total points accumulated (teams receive {{#if:{{{wpts|}}}|{{{wpts}}}|three}} points for a win, one point for a draw and no points for a loss)}}
{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||!width=28{{!}}{{Tooltip|APts|Average points per game}}}}
+
{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||!width=28{{!}}{{Abbr|APts|Average points per game}}}}
!width=28{{!}}{{Tooltip|GF|Total goals scored (goals for)}}
+
!width=28{{!}}{{Abbr|GF|Total goals scored (goals for)}}
{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||!width=28{{!}}{{Tooltip|AGF|Average goals scored per game}}}}
+
{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||!width=28{{!}}{{Abbr|AGF|Average goals scored per game}}}}
!width=28{{!}}{{Tooltip|GA|Total goals conceded (goals against)}}
+
!width=28{{!}}{{Abbr|GA|Total goals conceded (goals against)}}
{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||!width=28{{!}}{{Tooltip|AGA|Average goals conceded per game}}}}
+
{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||!width=28{{!}}{{Abbr|AGA|Average goals conceded per game}}}}
!width=28{{!}}{{Tooltip|GD|Goal difference (GF−GA)}}
+
!width=28{{!}}{{Abbr|GD|Goal difference (GF−GA)}}
{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||!width=28{{!}}{{Tooltip|AGD|Average goal difference (GD/Pld)}}}}
+
{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||!width=28{{!}}{{Abbr|AGD|Average goal difference (GD/Pld)}}}}
{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||!width=28{{!}}{{Tooltip|CS|clean sheets}}
+
{{#ifeq:{{Yesno|{{{no-extras|no}}}}}|yes||!width=28{{!}}{{Abbr|CS|clean sheets}}
!width=28{{!}}{{Tooltip|ACS|Average clean sheets}}
+
!width=28{{!}}{{Abbr|ACS|Average clean sheets}}
!width=28{{!}}{{Tooltip|YC|Yellow cards}}
+
!width=28{{!}}{{Abbr|YC|Yellow cards}}
!width=28{{!}}{{Tooltip|AYC|Average yellow cards}}
+
!width=28{{!}}{{Abbr|AYC|Average yellow cards}}
!width=28{{!}}{{Tooltip|RC|Red and/or yellow-red cards}}
+
!width=28{{!}}{{Abbr|RC|Red and/or yellow-red cards}}
!width=28{{!}}{{Tooltip|ARC|Average red/yellow-red cards}} }} }}<noinclude>
+
!width=28{{!}}{{Abbr|ARC|Average red/yellow-red cards}} }} }}<noinclude>
 
|}
 
|}
 
{{template doc}}
 
{{template doc}}

Latest revision as of 18:12, 22 July 2018

Team Pld W D L Pts APts GF AGF GA AGA GD AGD CS ACS YC AYC RC ARC
Template documentation[view] [edit] [history] [purge]

Template:Fb cl header (Football - classification - header)

This template is best for use with the Fb cl3 team and Fb cl3 footer templates on statistics pages, e.g. 2010 FIFA World Cup statistics.

Parameters:

Parameter Possible values Notes
width number Renders the table in the width given in ems, pixels or a percentage
sortable yes Makes the table sortable
collapsible yes Makes the table collapsible
collapsed yes Collapses the table
regional yes Displays the regional (continent, sub-region, etc.) version of the header; for use on articles about intercontinental (e.g. FIFA Confederations Cup), international (e.g. FIFA World Cup) or inter-regional tournaments only
region anything Gives the first column of the header a title, e.g. "Continent"
fs number Renders the font size in the size given
team-width number Renders the "Team" column (the "Region" column for the regional header) in the size given
region-width
confed yes Adds a "Confed." column for team confederations
group yes Adds a "G" column for team groups
no-extras yes Removes the "APts", "AGF", "AGA", "AGD", "CS", "ACS", "YC", "AYC", "RC" and "ARC" columns
title anything Displays a title above the header if desired
templates yes Uses navbar for use on a template for multiple pages