Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sports table/Custom/doc
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Default styles=== If you wish to set the column style of multiple columns at once to imitate a different style of the Sports table module, then this may be done using the {{para|default_style}} parameter. {| class="wikitable" style="background:white;" |- |'''What you type''' |<syntaxhighlight lang=moin>{{#invoke:Sports table|main|style=Custom |default_style=WDLbasic |num_cols=6 |colstyle3=W |team1=FDT |team2=BBB |team3=CCC |team4=DDD |team5=EEE |win_FDT=5 |loss_FDT=0 |col6_FDT=10 |win_BBB=3 |draw_BBB=1 |loss_BBB=1 |col6_BBB= 3 |win_CCC=3 |loss_CCC=2 |col6_CCC= 3 |win_DDD=1 |draw_DDD=1 |loss_DDD=3 |col6_DDD= 1 |win_EEE=0 |loss_EEE=5 |name_FDT=[[FIFA World Cup Dream Team]] |name_BBB=Team 2 |name_CCC=Team 3 |name_DDD=Team 4 |name_EEE={{fb|GIB}} }}</syntaxhighlight> |- |'''What it looks like''' |{{#invoke:Sports table|main|style=Custom |default_style=WDLbasic |num_cols=6 |colstyle3=W |team1=FDT |team2=BBB |team3=CCC |team4=DDD |team5=EEE |win_FDT=5 |loss_FDT=0 |col6_FDT=10 |win_BBB=3 |draw_BBB=1 |loss_BBB=1 |col6_BBB= 3 |win_CCC=3 |loss_CCC=2 |col6_CCC= 3 |win_DDD=1 |draw_DDD=1 |loss_DDD=3 |col6_DDD= 1 |win_EEE=0 |loss_EEE=5 |name_FDT=[[FIFA World Cup Dream Team]] |name_BBB=Team 2 |name_CCC=Team 3 |name_DDD=Team 4 |name_EEE={{fb|GIB}} }} |} For backwards compatibility with the WDL style, there are many choices for {{para|default_style}} which produce similar columns to those in the WDL style. Valid choices for this parameter are shown below. If the parameter {{para|num_cols}} is set, this parameter will take precedence over the number of columns given by the default style. If no {{para|ranking_col}} is defined, then the ranking column will be set equal to the pts column. Note that a column style set using {{para|colstyleN}} takes precedence over the column style set by {{para|default_style}}. For backwards compatibility with the WDL style, if using one of these default styles, then parameters {{para|show_win}}, {{para|show_draw}}, {{para|show_loss}}, and {{para|hide_played}} may be used to remove some of these columns, and alter the number of columns accordingly. Additionally, to list losses first, use {{para|loss_before_draw|true}} or {{para|loss_before_tie|true}}. ====WDLbasic==== Column styles are (in order): pld, win, draw, loss, pts ====WLbasic==== Column styles are (in order): pld, win, loss, pts ====WDLgdiff==== Column styles are (in order): pld, win, draw, loss, gf, ga, diff_gf_ga, pts ====WLgdiff==== Column styles are (in order): pld, win, loss, gf, ga, diff_gf_ga, pts
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)