Mal:Tabellkurve10lag/dok

Fra Wikisida.no
Hopp til navigering Hopp til søk

Formål[rediger kilde]

En noe hacky prøveversjon av en tabellkurvegenerator for 10 lag og 18 runder, altså tilpasset Tippeligaen 1963-1971. Framtidige forbedringer planlegges.

Bruk[rediger kilde]

{{Tabellkurve10lag
| farge = [farge]
| [1…18] = [tabellplassering]
| [1…18] = [tabellplassering]
| [1…18] = [tabellplassering]
}}

Tallene som spesifiserer serierunde gjør det mer oversiktlig, men kan også sløyfes:

{{Tabellkurve10lag
| farge = [farge]
| [tabellplassering]
| [tabellplassering]
| [tabellplassering]
}}

Eksempel[rediger kilde]

{{Tabellkurve10lag | farge = darkblue | 1 = 9 | 2 = 6 | 3 = 3 | 4 = 2 | 5 = 1 | 6 = 4 | 7 = 3 
| 8 = 3 | 9 = 2 | 10 = 3 | 11 = 4 | 12 = 2 | 13 = 1 | 14 = 1 | 15 = 1 | 16 = 1 | 17 = 2 | 18 = 2 }}

gir følgende resultat:

<timeline> ImageSize = width:380 height:220 PlotArea = left:20 right:20 top:20 bottom:20 TimeAxis = orientation:horizontal AlignBars = justify Period = from:1 till:18 ScaleMajor = increment:1 start:1 Colors =

id:grey value:gray(0.7)

PlotData =

bar:1 color:black from:start till:end width:1
bar:2 color:black from:start till:end width:1
bar:3 color:black from:start till:end width:1
bar:4 color:black from:start till:end width:1
bar:5 color:black from:start till:end width:1
bar:6 color:black from:start till:end width:1
bar:7 color:black from:start till:end width:1
bar:8 color:black from:start till:end width:1
bar:9 color:black from:start till:end width:1
bar:10 color:black from:start till:end width:1

LineData =

at:1 color:grey layer:back width:0.1
at:2 color:grey layer:back width:0.1
at:3 color:grey layer:back width:0.1
at:4 color:grey layer:back width:0.1
at:5 color:grey layer:back width:0.1
at:6 color:grey layer:back width:0.1
at:7 color:grey layer:back width:0.1
at:8 color:grey layer:back width:0.1
at:9 color:grey layer:back width:0.1
at:10 color:grey layer:back width:0.1
at:11 color:grey layer:back width:0.1
at:12 color:grey layer:back width:0.1
at:13 color:grey layer:back width:0.1
at:14 color:grey layer:back width:0.1
at:15 color:grey layer:back width:0.1
at:16 color:grey layer:back width:0.1
at:17 color:grey layer:back width:0.1
at:18 color:grey layer:back width:0.1

PlotData =

bar:9 at:1 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

PlotData =

bar:6 at:2 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(20,40)(40,100) color:darkblue width:0.5

PlotData =

bar:3 at:3 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(40,100)(60,160) color:darkblue width:0.5

PlotData =

bar:2 at:4 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(60,160)(80,180) color:darkblue width:0.5

PlotData =

bar:1 at:5 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(80,180)(100,200) color:darkblue width:0.5

PlotData =

bar:4 at:6 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(100,200)(120,140) color:darkblue width:0.5

PlotData =

bar:3 at:7 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(120,140)(140,160) color:darkblue width:0.5

PlotData =

bar:3 at:8 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(140,160)(160,160) color:darkblue width:0.5

PlotData =

bar:2 at:9 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(160,160)(180,180) color:darkblue width:0.5

PlotData =

bar:3 at:10 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(180,180)(200,160) color:darkblue width:0.5

PlotData =

bar:4 at:11 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(200,160)(220,140) color:darkblue width:0.5

PlotData =

bar:2 at:12 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(220,140)(240,180) color:darkblue width:0.5

PlotData =

bar:1 at:13 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(240,180)(260,200) color:darkblue width:0.5

PlotData =

bar:1 at:14 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(260,200)(280,200) color:darkblue width:0.5

PlotData =

bar:1 at:15 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(280,200)(300,200) color:darkblue width:0.5

PlotData =

bar:1 at:16 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(300,200)(320,200) color:darkblue width:0.5

PlotData =

bar:2 at:17 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(320,200)(340,180) color:darkblue width:0.5

PlotData =

bar:2 at:18 align:left textcolor:darkblue fontsize:XL shift:(-4,-8) text:•

LineData =

points:(340,180)(360,180) color:darkblue width:0.5

</timeline>