Wikipedia:Lua/Modul/UserGroups/Timeline

Wikipedia:Lua Modul UserGroups Timeline

Vorlagenprogrammierung Diskussionen Lua Unterseiten
Modul Deutsch English

Modul: Dokumentation

Diese Seite beschreibt die Konfigurationsmöglichkeiten bei der Generierung von Timeline-Diagrammen.

Folgende Schlüsselwörter haben Einfluss auf die generierte Grafik:

previous
Frühere Funktionsausübung
elected
Derzeitige Funktionsausübung
term
Beginn und Ende einer Wahlperiode
§CAPTION§
Überschrift, wird aus den Parametern eingefügt
§PREVIOUS§
Legende zur früheren Funktionsausübung, wird aus den Parametern eingefügt
§ELECTED§
Legende zur derzeitigen Funktionsausübung, wird aus den Parametern eingefügt
§FROM§
Beginn der Darstellung, Jahreszahl wird bei der Generierung eingefügt
§TILL§
Ende der Darstellung, Jahreszahl wird bei der Generierung eingefügt
§MAINBAR§
Geenerierter Nutzinhalt

Der nachstehende Quelltext definiert die Standardkonfiguration in diesem Wiki:

DateFormat = dd/mm/yyyy
ImageSize  = width:800 height:auto barincrement:21
Period     = from:01/01/§FROM§ till:31/12/§TILL§
TimeAxis   = orientation:horizontal
PlotArea   = right:20 left:20 bottom:60 top:6
Legend     = position:bottom orientation:horizontal
Colors     =
             id:bg         value:rgb(1,1,1)
             id:elected    value:yellowgreen legend:§ELECTED§
             id:previous   value:coral       legend:§PREVIOUS§
             id:line       value:black
             id:lightline  value:rgb(0.8,0.8,0.8)
             id:header     value:powderblue2
             id:term       value:red
BackgroundColors = canvas:bg
ScaleMajor = gridcolor:line unit:year increment:1 start:01/01/§FROM§
ScaleMinor = gridcolor:lightline unit:month increment:1 start:01/01/§FROM§
BarData    =
             Bar:T1
             Barset:MainBar
PlotData   =
             width:15 textcolor:black
  bar:T1 color:header textcolor:black width:20 shift:(-90,-5) fontsize:m from:01/01/§FROM§ till:31/12/§TILL§ text:"§CAPTION§"
  barset:MainBar
    shift:(6,-6) anchor:from fontsize:m
§MAINBAR§

Alternative Schemata (Template) können auf anderen Seiten definiert werden. Sie müssen durch <pre id="usergroups-timeline" ...> identifiziert werden.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.