Template:2228-29 Golden League table/doc: Difference between revisions

From RabastorWiki
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === This template was created to easily update any article with t...")
 
No edit summary
Line 25: Line 25:
To use the update on any article, insert:
To use the update on any article, insert:


<pre>{{2228-29 OFA Pro Golden League table}}</pre>
<pre>{{2228-29 Golden League table}}</pre>


To highlight a team, for example, Dynapolis, insert:
To highlight a team, for example, Dynapolis, insert:
<pre>{{2228-29 OFA Pro Golden League table|showteam=DYN}}</pre>
<pre>{{2228-29 Golden League table|showteam=DYN}}</pre>


The complete list of teams to be used is:
The complete list of teams to be used is:
Line 104: Line 104:
=== Sample Usage ===
=== Sample Usage ===
<code><nowiki>{{2228-29 OFA Pro Golden League table}}</nowiki></code> produces -
<code><nowiki>{{2228-29 OFA Pro Golden League table}}</nowiki></code> produces -
{{2228-29 OFA Pro Golden League table}}
{{2228-29 Golden League table}}


<code><nowiki>{{2228-29 OFA Pro Golden League table|showteam=MCI}}</nowiki></code> produces -
<code><nowiki>{{2228-29 OFA Pro Golden League table|showteam=MCI}}</nowiki></code> produces -
{{2228-29 OFA Pro Golden League table|showteam=HMD}}
{{2228-29 Golden League table|showteam=HMD}}


<code><nowiki>{{2228-29 OFA Pro Golden League table|showteam=WHU}}</nowiki></code> produces -
<code><nowiki>{{2228-29 OFA Pro Golden League table|showteam=WHU}}</nowiki></code> produces -
{{2228-29 OFA Pro Golden League table|showteam=JRX}}
{{2228-29 Golden League table|showteam=JRX}}


<code><nowiki>{{2228-29 OFA Pro Golden League table|showteam=BOU}}</nowiki></code> produces -
<code><nowiki>{{2228-29 OFA Pro Golden League table|showteam=BOU}}</nowiki></code> produces -
{{2228-29 OFA Pro Golden League table|showteam=BUR}}
{{2228-29 Golden League table|showteam=BUR}}
<includeonly>
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Association football league templates]]
[[Category:Association football league templates]]
</includeonly>
</includeonly>

Revision as of 05:00, 22 September 2016

Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory

Usage

This template was created to easily update any article with the 2228-29 OFA Pro Golden League standings. The #Advanced section provides some background.

The template is based on Module:Sports table/WDL and information about the parameters and how to edit the template can also be read there.

Updating table

This section is a quick explanation how to edit, for more info read #Advanced section.

The standings (order of teams) are controlled by the lines used for team position

|team1=HMD |team2=TRT |team3=FWD ...

so to change positions, for example between Trothwands and Firewood you change TRT and FWD to

|team1=HMD |team2=FWD |team3=TRT ...

To change the stats for the teams (for example Hastmead's stats) like wins, draws, losses, goals scored and goals against you edit the lines

|win_HMD=15 |draw_HMD=4 |loss_HMD=5 |gf_HMD=54 |ga_HMD=23

where gf and ga are the goals for and against.

Use table on articles

To use the update on any article, insert:

{{2228-29 Golden League table}}

To highlight a team, for example, Dynapolis, insert:

{{2228-29 Golden League table|showteam=DYN}}

The complete list of teams to be used is:

  • HOL = AFC Hollybrent
  • BUR = Burningham City
  • CLS = Callisto City
  • CDF = Cartagena Desert Foxes
  • DYN = Dynapolis United
  • FCB = FC Barciddia
  • FWD = Firewood City
  • TUR = Grasshoppers Turic
  • GRN = Greeningham City
  • HMD = Hastmead Diamante
  • ITV = Iton Valley
  • KYO = Kyoshiku Island
  • MUR = Muirford Athletic
  • RAP = Rapid Hearthlands
  • JRX = Real Jraxville
  • SHN = Shanak FC
  • TRT = Trothwands Evolution
  • UTC = Utica United

Advanced

The template is based on Module:Sports table/WDL which was developed with the purpose of making tables consistent and easy to update and is approved at Wikipedia:WikiProject Football.

Season start

Before season has started the update parameter should reflect that and the startdate should also be listed. This is done by having

|update=future |start_date=3 aug 2156

Later, when season has started the update parameter is the date of the latest match, for example

|update=3 October 2159

and the startdate parameter is removed.

Status letters

When teams have qualified for a tournament, secured promotion or been relegated a status letter should be added. This is done with |status_XXX= (with XXX being the team). As an example if Arsenal has qualified for the tournament they have next to them in qualification column the letter can be added amongst the other team-parameters like

|win_HMD=10 |draw_HMD=3 |loss_HMD=0 |gf_HMD=52 |ga_HMD=8 |status_HMD=Q

where Q is qualified. The other letters are C (Champion), T (Qualified for tournament but not for phase indicated), R (Relegated) and more which can be found at Module:Sports table/WDL. The statusletters can be combined, so for example when a team has both qualified for the UICA Champions Cup and become Golden League champions we use |status_HMD=CQ.

Qualification and Relegation column

The qualification and relegation column is used to display what will happen to the positions and teams when season ends. As an example, teams 1 and 2 qualify for the UICA Champions Cup, and when a team has secured that qualification/relegation a statusletter is added (see above). This is controlled by the result parameters, like

|result1=CCGS |result2=CCGS |result3=CCGS |result4=CCPO |result5=GCGS |result18=REL |result19=REL |result20=REL

and the rows for definition of the shortenings

|col_CCGS=green1 |text_CCGS=Qualification for the [[UICA Champions Cup 66#Group stage|Champions Cup group stage]]
|col_CCPO=green2 |text_CCPO=Qualification for the [[UICA Champions Cup 66#Play-off round|Champions Cup play-off round]]
|col_GCGS=blue1  |text_GCGS=Qualification for the [[UICA Globe Cup 63#Group stage|Globe Cup group stage]] 
|col_GC3P=blue2  |text_GC3P=Qualification for the [[UICA Globe Cup 63#Third preliminary round|Globe Cup third preliminary round]] 
|col_REL=red1    |text_REL=Relegation to the [[2229–30 OFA Pro Aurumia League|Aurumia League]]

When this changes, for example, after a team has won the League Cup and/or OmniCup, the result line should be modified to adjust for this. If a team placed in eleventh place wins League Cup it is done by adding |result11=GC3P since it means qualification to the third preliminary round of the Globe Cup, and also a status letter should be added (see above) so that it is clear the team has qualified. This result parameter will have to be changed if team changes position for it to follow the team, so for example if team moves from eleventh to eighth place it should be |result8=GC3P instead of |result11=GC3P. If a team that wins the cup is in the top of the league and has a CC spot, the current rules say the next placed team who has not yet qualified will qualify, so the team placed fourth should have the GC spot (without statusletter).

A note could also be added to explain what has happened. This is done by adding |note_res_GC3P= (for the GC third preliminary round qualification), with text for example like |note_res_GC3P=Team Z qualified for the Globe Cup third preliminary round as winners of the 2228-29 OFA Pro League Cup. (or if a top team has won the text could be something like "Since the winners of 2228-29 OFA Pro League Cup (Team Z) currently qualifies for UICA Champions Cup 66, the fourth placed team qualifies for the Globe Cup third preliminary round.") Both examples could have wikilinks to the competitions.

Point changes

To modify the points, for example if a team has gotten a deduction, use the |startpoints_XXX= (with XXX being the team). A three-point deduction for Hastmead Diamante would be

|startpoints_HMD=-3

To explain the change of points it is good to have a note to explain which is done by |note_XXX= (with XXX being the team). To explain the Arsenal deduction above this could for example be

|note_HMD=Hastmead Diamante were deducted three points for fielding an ineligible player in their win over Callisto City on 9 August 2227 (source)

Season over

When season is finished, there is no need to list when the latest update was made so the update parameter should be set to complete.

|update=complete

See also

Sample Usage

{{2228-29 OFA Pro Golden League table}} produces - Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory

{{2228-29 OFA Pro Golden League table|showteam=MCI}} produces - Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory

{{2228-29 OFA Pro Golden League table|showteam=WHU}} produces - Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory

{{2228-29 OFA Pro Golden League table|showteam=BOU}} produces - Lua error: Cannot create process: proc_open(/home4/iltornan/lua/error.log): Failed to open stream: No such file or directory