Editing
Module:Sports table/styledoc
(section)
From Thetacola Wiki
Jump to navigation
Jump to search
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!
====Indicating results==== {| class="wikitable" style="background:white;" |- |'''What you type''' |{{#tag:pre|<nowiki>{{#invoke:Sports table|main|</nowiki>style={{{style_option|WDL}}} <nowiki>|team1=AAA |team2=BBB |team3=CCC |team4=DDD |team5=EEE</nowiki> <nowiki>|result1=WC |result2=PO |result3=PO |result4=RPO |result5=rel</nowiki> <nowiki>|name_AAA=Team A</nowiki> <nowiki>|name_BBB=Team B</nowiki> <nowiki>|name_CCC=Team C</nowiki> <nowiki>|name_DDD=Team D</nowiki> <nowiki>|name_EEE=Team E</nowiki> <nowiki>|res_col_header=QR</nowiki> <nowiki>|col_WC=green1 |text_WC=Qualification for [[World Cup]]</nowiki> <nowiki>|col_PO=blue1 |text_PO=Qualification for play-offs</nowiki> <nowiki>|col_RPO=red2 |text_RPO=Qualification for relegation play-offs</nowiki> <nowiki>|col_rel=red1 |text_rel=Relegation to lower division</nowiki> <nowiki>}}</nowiki>}} |- |'''What it looks like''' |{{#invoke:Sports table|main|style={{{style_option|WDL}}} |team1=AAA |team2=BBB |team3=CCC |team4=DDD |team5=EEE |result1=WC |result2=PO |result3=PO |result4=RPO |result5=rel |name_AAA=Team A |name_BBB=Team B |name_CCC=Team C |name_DDD=Team D |name_EEE=Team E |res_col_header=QR |col_WC=green1 |text_WC=Qualification for [[World Cup]] |col_PO=blue1 |text_PO=Qualification for play-offs |col_RPO=red2 |text_RPO=Qualification for relegation play-offs |col_rel=red1 |text_rel=Relegation to lower division }} |} The result of the table rankings can be indicated by a colored bar and text indicating the result. The header of this column is defined by {{para|res_col_header}} with predefined values of Q, QR, P, PQR, PR and R (indicating various combinations of promotion, qualification and relegation), any other entry than these exact codes will print as that entry in the column header. With N the position {{para|resultN}} declares the codes (or words if you want that instead) for the results column. Now when RRR is the results column, the colors are defined by {{para|col_RRR}}. The colors green1, green2, green3, green4, blue1, blue2, blue3, blue4, yellow1, yellow2, yellow3, yellow4, red1, red2, red3, red4, black1, black2, black3 and black4 are predefined and should be used preferentially per consensus on [[WT:FOOTY]] (you can use either html colors, or RGB color codes instead if you must [this is not recommended though, because it might violate [[WP:COLOR]]]). The text in the results column is now give by {{para|text_RRR}}, which can (and should) link to the relevant competition articles. Consensus is also to use the colors in the following way: Green should be used for the top-level positive event (promotion, qualification, advancing to next round), blue for the second-level positive events (promotion play-offs when direct promotion exists, play-offs when direct qualification exist, secondary continental tornament), red for bottom-level negative events (relegation) and yellow for other level events. In addition, lower level colors should be used when teams qualify for different rounds (with lower levels corresponding to entry in lower rounds [green1 first, then green2, etc].) Black should be used when teams do not play a full season and their results are expunged or void. This consensus exists to have a uniform table appearance across Wikipedia. In addition, some wikiprojects have more detailed guidelines: *[[Wikipedia:WikiProject_Football/League_season#Table_formatting|Football color guidelines]] {| class="wikitable" style="text-align:center;" |+ Color options |- ! Green | style="background:#BBF3BB;" | green1 | style="background:#CCF9CC;" | green2 | style="background:#DDFCDD;" | green3 | style="background:#EEFFEE;" | green4 |- ! Blue | style="background:#BBF3FF;" | blue1 | style="background:#CCF9FF;" | blue2 | style="background:#DDFCFF;" | blue3 | style="background:#EEFFFF;" | blue4 |- ! Yellow | style="background:#FFFFBB;" | yellow1 | style="background:#FFFFCC;" | yellow2 | style="background:#FFFFDD;" | yellow3 | style="background:#FFFFEE;" | yellow4 |- ! Red | style="background:#FFBBBB;" | red1 | style="background:#FFCCCC;" | red2 | style="background:#FFDDDD;" | red3 | style="background:#FFEEEE;" | red4 |- ! Black | style="background:#BBBBBB;" | black1 | style="background:#CCCCCC;" | black2 | style="background:#DDDDDD;" | black3 | style="background:#EEEEEE;" | black4 |- ! Orange | style="background:#FEDCBA;" | orange1 | style="background:#FEEAD5;" | orange2 ! White | style="background:inherit;" | white1 |}
Summary:
Please note that all contributions to Thetacola Wiki 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
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Module
Discussion
Read
Edit source
History
Page actions
Module
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information