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/College/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!
====In article==== {| class="wikitable" style="background:white;" |- |'''What you type''' |<syntaxhighlight lang=moin>{{#invoke:Sports table|main|style=College |team1=FDT |team2=BBB |team3=CCC |team4=DDD |team5=EEE |win_FDT=5 |loss_FDT=0 |gf_FDT=10 |ga_FDT=0 |win_BBB=3 |loss_BBB=1 |gf_BBB= 3 |ga_BBB=2 |win_CCC=3 |loss_CCC=2 |gf_CCC= 3 |ga_CCC=3 |win_DDD=1 |loss_DDD=3 |gf_DDD= 1 |ga_DDD=4 |win_EEE=0 |loss_EEE=5 |gf_EEE= 0 |ga_EEE=6 |name_FDT=[[Dream Team]] |name_BBB=Team 2 |name_CCC=Team 3 |name_DDD=Team 4 |name_EEE={{bk|GIB}} }}</syntaxhighlight> |- |'''What it looks like''' |{{#invoke:Sports table|main|style=College |team1=FDT |team2=BBB |team3=CCC |team4=DDD |team5=EEE |win_FDT=5 |loss_FDT=0 |gf_FDT=10 |ga_FDT=0 |win_BBB=3 |loss_BBB=1 |gf_BBB= 3 |ga_BBB=2 |win_CCC=3 |loss_CCC=2 |gf_CCC= 3 |ga_CCC=3 |win_DDD=1 |loss_DDD=3 |gf_DDD= 1 |ga_DDD=4 |win_EEE=0 |loss_EEE=5 |gf_EEE= 0 |ga_EEE=6 |name_FDT=[[Dream Team]] |name_BBB=Team 2 |name_CCC=Team 3 |name_DDD=Team 4 |name_EEE={{bk|GIB}} }} |} The main command is the <nowiki>{{#invoke:Sports table|main|style=College}}</nowiki> statement which basically calls the module and enables you to set everything up. Then you list the positions of the teams as {{para|team1}}, {{para|team2}}, etc for however many teams you need in the table. You can use full team names there <u>without spaces</u> if you want, but using codes (as in the example) can make it easier. For each team you now define the wins, losses, goals for and goals against by using {{para|win_TTT}}, {{para|loss_TTT}}, {{para|gf_TTT}} and {{para|ga_TTT}} respectively (with TTT replaced by the team code). If you do not define these numbers, it is automatically assumed to be 0. It is good practice though to include them anyway and to align the columns using appropriate spaces (as in the example), so the code is easy to read. The last step now is to define the {{para|name_TTT}} parameters which determine what name is shown in the table, you can use wiki markup and templates in here as well. See [[#Dating]] to see how to change the update date.
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)