Mal:Tabellkurve/dok

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

Formål[rediger kilde]

En noe hacky prøveversjon av en tabellkurvegenerator. Fungerer foreløpig bare med 16 lag og 30 runder, altså tilpasset Tippeligaen. Framtidige forbedringer planlegges.

Bruk[rediger kilde]

{{Tabellkurve
| farge = [farge]
| [1…30] = [tabellplassering]
| [1…30] = [tabellplassering]
| [1…30] = [tabellplassering]
}}

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

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

Eksempel[rediger kilde]

{{Tabellkurve | farge = blue | 1 = 16 | 2 = 12 | 3 = 14 | 4 = 15 | 5 = 14 | 6 = 12 | 7 = 13 
| 8 = 10 | 9 = 10 | 10 = 7 | 11 = 9 | 12 = 10 | 13 = 7 | 14 = 8 | 15 = 6 | 16 = 5 | 17 = 3
| 18 = 2 | 19 = 3 | 20 = 3 | 21 = 5 | 22 = 6 | 23 = 4 | 24 = 2 | 25 = 3 | 26 = 2 | 27 = 2
| 28 = 3 | 29 = 2 | 30 = 1 }}

gir følgende resultat:

<timeline> ImageSize = width:620 height:340 PlotArea = left:20 right:20 top:20 bottom:20 TimeAxis = orientation:horizontal AlignBars = justify Period = from:1 till:30 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
bar:11 color:black from:start till:end width:1
bar:12 color:black from:start till:end width:1
bar:13 color:black from:start till:end width:1
bar:14 color:black from:start till:end width:1
bar:15 color:black from:start till:end width:1
bar:16 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
at:19 color:grey layer:back width:0.1
at:20 color:grey layer:back width:0.1
at:21 color:grey layer:back width:0.1
at:22 color:grey layer:back width:0.1
at:23 color:grey layer:back width:0.1
at:24 color:grey layer:back width:0.1
at:25 color:grey layer:back width:0.1
at:26 color:grey layer:back width:0.1
at:27 color:grey layer:back width:0.1
at:28 color:grey layer:back width:0.1
at:29 color:grey layer:back width:0.1
at:30 color:grey layer:back width:0.1

PlotData =

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

PlotData =

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

LineData =

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

PlotData =

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

LineData =

points:(40,100)(60,60) color:blue width:0.5

PlotData =

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

LineData =

points:(60,60)(80,40) color:blue width:0.5

PlotData =

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

LineData =

points:(80,40)(100,60) color:blue width:0.5

PlotData =

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

LineData =

points:(100,60)(120,100) color:blue width:0.5

PlotData =

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

LineData =

points:(120,100)(140,80) color:blue width:0.5

PlotData =

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

LineData =

points:(140,80)(160,140) color:blue width:0.5

PlotData =

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

LineData =

points:(160,140)(180,140) color:blue width:0.5

PlotData =

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

LineData =

points:(180,140)(200,200) color:blue width:0.5

PlotData =

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

LineData =

points:(200,200)(220,160) color:blue width:0.5

PlotData =

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

LineData =

points:(220,160)(240,140) color:blue width:0.5

PlotData =

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

LineData =

points:(240,140)(260,200) color:blue width:0.5

PlotData =

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

LineData =

points:(260,200)(280,180) color:blue width:0.5

PlotData =

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

LineData =

points:(280,180)(300,220) color:blue width:0.5

PlotData =

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

LineData =

points:(300,220)(320,240) color:blue width:0.5

PlotData =

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

LineData =

points:(320,240)(340,280) color:blue width:0.5

PlotData =

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

LineData =

points:(340,280)(360,300) color:blue width:0.5

PlotData =

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

LineData =

points:(360,300)(380,280) color:blue width:0.5

PlotData =

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

LineData =

points:(380,280)(400,280) color:blue width:0.5

PlotData =

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

LineData =

points:(400,280)(420,240) color:blue width:0.5

PlotData =

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

LineData =

points:(420,240)(440,220) color:blue width:0.5

PlotData =

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

LineData =

points:(440,220)(460,260) color:blue width:0.5

PlotData =

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

LineData =

points:(460,260)(480,300) color:blue width:0.5

PlotData =

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

LineData =

points:(480,300)(500,280) color:blue width:0.5

PlotData =

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

LineData =

points:(500,280)(520,300) color:blue width:0.5

PlotData =

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

LineData =

points:(520,300)(540,300) color:blue width:0.5

PlotData =

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

LineData =

points:(540,300)(560,280) color:blue width:0.5

PlotData =

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

LineData =

points:(560,280)(580,300) color:blue width:0.5

PlotData =

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

LineData =

points:(580,300)(600,320) color:blue width:0.5

</timeline>