Документација шаблона[прикажи] [уреди] [историја] [освежи]

Овај шаблон се користи за креирање навигационог кутија у облику временске линије.

Коришћење

уреди

Молимо да уклонити некоришћене параметре из кутијице

{{Timeline
| name   = {{subst:PAGENAME}}
| title  = 
| state  = {{{state|}}}
| image  = 
| above  = 
| row1   = 
| item1  = 
| date1  = 
| style1 = 
| item2  = 
| date2  = 
| style2 = 
<!-- ... -->
| below  = 
}}

Параметри

уреди

Садржај параметара

уреди

Обви параметри се користе да би се променио садржај дела временске линије у кутијици.

  • rown - Defines a row with a optional label.
  • spann - Sets how many rows tall the label for row n should be. Any labels for rows that fall inside the label will be discarded.
  • itemn - Defines an item to show in the navbox. The item is shown in the last defined row. If an item exists without a row of the same number, it is either added to the previous row or a new row is created.
  • daten - Defines the start and end year for item n in the format start-end. If end is omitted, the current year is omitted, so generally the items at the end of the timeline should use the format start-.
  • decades - Set to no to remove the decade row and to show the full year.
  • footer - Set to yes to show the date rows at the bottom of the timeline as well.
  • label - Include to show a label column with the content of the rown parameters beneath the value of the label parameter.

Параметри кутијице

уреди

Ови параметри се користе за промену навигационог кутија.

  • name - The name of the template.
  • title - Text to add to the title bar, for example Honda road car timeline.
  • above - Text to add above the "content" of the navbox.
  • below - Text to add below the "content" of the navbox.
  • state - Weather the navbar is expanded, collapsed, or not collapsible.
  • navbar - Set to plain or off to remove the V • T • E links on the left side of the title of the navbar, it is recommended you don't do this to maintain consistency between navboxes.
  • border or 1 - Set to child or subgroup to use this navbox as a borderless navbox that can fit snugly in another navbox. Set to none to remove the border and the navbox class.
  • image - An image to be displayed in a cell below the title and to the right of the body.
  • imageleft - An image to be displayed in a cell below the title and to the left of the body.

Временски параметри

уреди

Ови параметри подешавају дужину временске линије

  • startoffset - Set to a number to extend the start of the timeline that number of years back
  • startyear - Set to a year to set the start of the timeline to that year if the content of the navbox doesn't go beyond that year
  • endoffset - Set to a number to extend the end of the timeline that number of years forward
  • endyear - Set to a year to set the end of the timeline to that year if the content of the navbox doesn't go beyond that year

Садржај параметарског стила

уреди

Ови параметри примењују стил на „садржај“ навигационог сандучета.

  • stylen - CSS to apply to the cell of item n.
  • labelstylen - CSS to apply to the label of row n.
  • itemstyle - CSS to apply to item cells.
  • blankstyle - CSS to apply to blank cells.
  • labelstyle - CSS to apply to label cells.
  • datestyle - CSS to apply to year and decade cells.
  • decadestyle - CSS to apply to decade cells.
  • yearstyle - CSS to apply to year cells.

Параметри за одређивање стила кутијице

уреди

Ови параметри примењују стил на делове навигационог сандучета изван „садржаја“ навигационог сандучета.

  • style or bodystyle - CSS to apply to the body of the navbox.
  • basestyle - CSS to apply to the title, above, and below.
  • titlestyle - CSS to apply to the title.
  • abovestyle - CSS to apply to the above.
  • belowstyle - CSS to apply to the below.
  • imagestyle - CSS to apply to the cell containing image
  • imageleftstyle - CSS to apply to the cell containing imageleft

Параметри класе

уреди

Ови параметри додају класе деловима навигационог кутија.

  • titleclass - Classes to add to the title of the navbox.
  • aboveclass - Classes to add to the above of the navbox.
  • bodyclass - Classes to add to the body of the navbox.
  • belowclass - Classes to add to the below of the navbox.
  • imageclass - Classes to add to both the right and left images of the navbox.

Примери

уреди

Основа

уреди

Ово је основни пример овог шаблона.

Изворни код
{{Timeline
| name   = {{FULLPAGENAME}}
| state  = uncollapsed
| title  = Пример временске линије 
| row1   =
| item1  = горе
| date1  = 1985-2014
| item2  = табла
| date2  = 2019-2035
| row3   =
| item3  = доле
| date3 = 1995-2020
}}

Ознака

уреди

Када наведете |label= параметар, садржај |rown= параметри су приказани са леве стране испод |label= параметра.

Изворни код
{{Timeline
| name   = {{FULLPAGENAME}}
| state  = uncollapsed
| title  = Пример временске линије 
| label  = Врста
| row1   = A
| item1  = горе
| date1  = 1985-2014
| item2  = табла
| date2  = 2019-2035
| row3   = B
| span3  = 2
| item3  = доле
| date3  = 1995-2020
| row4   =
| item4  = остатак
| date4  = 2005-2015
}}

Декаде

уреди

Када је |decades=no постављен, декадни ред се уклања и ред година садржи пуне године .

Изворни код
{{Timeline
| name    = {{FULLPAGENAME}}
| state   = uncollapsed
| title   = Пример временске линије
| label   = Врста
| decades = no
| row1    = A
| item1   = горе
| date1   = 1985-2014
| item2   = табле
| date2   = 2019-2035
| row3    = B
| item3   = доле
| date3   = 1995-2020
}}

Футер (горе и доле)

уреди

Када је |footer=yes постављен, редови деценије и године на врху шаблона се поново приказују на дну. Ово је корисно за веома велике временске рокове.

Изворни код
{{Timeline
| name   = {{FULLPAGENAME}}
| state  = uncollapsed
| title  = Пример временске линије
| footer = yes
| row1   =
| item1  = горе
| date1  = 1985-2014
| item2  = табла
| date2  = 2019-2035
| row3   =
| item3  = доле
| date3  = 1995-2020
}}

Стилови предмета и етикета

уреди

Параметри |stylen= се могу користити за стилизовање ставки и „стил етикете” |labelstylen= може се користити за стилизовање редова.

Изворни код
{{Timeline
| name        = {{FULLPAGENAME}}
| state       = uncollapsed
| title       = Пример временске линије
| label       = Врста
| row1        = A
| labelstyle1 = background: #e459e4;
| item1       = горе
| date1       = 1985-2014
| style1      = background-color: #ff7c7c;
| item2       = табла
| date2       = 2019-2035
| style2      = background-color: #e6cd38;
| row3        = B
| labelstyle3 = background: #50aeff;
| item3       = доле
| date3       = 1995-2020
| style3      = background-color: #72d272;
}}

Изнад и испод

уреди
Изворни код
{{Timeline
| name   = {{FULLPAGENAME}}
| state  = uncollapsed
| title  = Пример временске линије
| above  = Изнад
| below  = Испод
| row1   =
| item1  = горе
| date1  = 1985-2014
| item2  = табла
| date2  = 2019-2035
| row3   =
| item3  = доле
| date3  = 1995-2020
}}

Почетак и крај

уреди

|startoffset= и |endoffset= може се користити за продужење почетка и краја временске линије .

Изворни код
{{Timeline
| name        = {{FULLPAGENAME}}
| state       = uncollapsed
| title       = Пример временске линије
| startoffset = 5
| endoffset   = 5
| row1        =
| item1       = горе
| date1       = 1985-2014
| item2       = табла
| date2       = 2019-2035
| row3        =
| item3       = доле
| date3       = 1995-2020
}}

Алтернативно, |startyear= и |endyear= може се користити за проширење почетка и краја временске линије на те године садржаја временске линије не прелази те године .

Изворни код
{{Timeline
| name      = {{FULLPAGENAME}}
| state     = uncollapsed
| title     = Пример временске линије
| startyear = 1975
| endyear   = 2046
| row1      =
| item1     = горе
| date1     = 1985-2014
| item2     = табла
| date2     = 2019-2035
| row3      =
| item3     = доле
| date3     = 1995-2020
}}

Унутар друге навигационе кутије

уреди

Овај шаблон се може користити унутар другог навигационог сандучета тако што ћете га позвати помоћу {{Timeline|child|...}}.

Изворни код
{{Navbox
| title  = Пример временске линије
| group1 = Временска линија
| state  = uncollapse
| list1  = {{Timeline|child
| row1   =
| item1  = горе
| date1  = 1985-2014
| item2  = табла
| date2  = 2019-2035
| row3   =
| item3  = доле
| date3  = 1995-2020
}}
}}

Слика и слика лево

уреди

Параметри |image= и |imageleft= могу се користити за додавање садржаја (пожељно слика) десно и лево од навигационог сандучета .

Изворни код
{{Timeline
| name      = {{FULLPAGENAME}}
| state     = uncollapsed
| title     = Пример временске линије
| image     = [[Датотека:Flag of the United States.svg|100px]]
| imageleft = [[Датотека:Flag of Canada.svg|100px]]
| row1      =
| item1     = горе
| date1     = 1985-2014
| item2     = табла
| date2     = 2019-2035
| row3      =
| item3     = доле
| date3     = 1995-2020
}}