Template:Timeline: Difference between revisions

From wikilawschool.net. Wiki Law School does not provide legal advice. For educational purposes only.
No edit summary
mNo edit summary
 
(113 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly><templatestyles src="Timeline/styles.css" /><div class="timeline-container">
<table border="1" width="100%" cellpadding="0" cellspacing="0" style="text-align: center;">
<div class="timeline">
<tr>
{{#if:{{{1|}}}{{{1-title|}}}{{{2|}}}|
{{If|{{{1}}}|<td>{{{1}}}</td>|}}
  <div class="timeline-content">
{{If|{{{3}}}|<td>{{{3}}}</td>|}}
    <div class="timeline-period">{{{2|}}}</div>
{{If|{{{5}}}|<td>{{{5}}}</td>|}}
    <div class="timieline-title">{{{1-title|}}}</div>{{{1|}}}  
{{If|{{{7}}}|<td>{{{7}}}</td>|}}
</div>}}
</tr><tr><td><table width="100%" style="border-bottom:5px solid #000; padding-top:10px;"><tr>
{{#if:{{{3|}}}{{{4-title|}}}{{{4|}}}|
{{If|{{{1}}}|<td>y1</td>|}}
  <div class="timeline-content">
</tr></table></td><td><table width="100%" style="border-bottom:5px solid #000; padding-top:10px;"><tr>
    <div class="timeline-period">{{{3|}}}</div>
{{If|{{{3}}}|<td>y2</td>|}}
    <div class="timieline-title">{{{4-title|}}}</div>{{{4|}}}  
</tr></table></td><td><table width="100%" style="border-bottom:5px solid #000; padding-top:10px;"><tr>
</div>|}}
{{If|{{{5}}}|<td>y3</td>|}}
{{#if:{{{5|}}}{{{5-title|}}}{{{6|}}}|
</tr></table></td><td><table width="100%" style="border-bottom:5px solid #000; padding-top:10px;"><tr>
  <div class="timeline-content">
{{If|{{{7}}}|<td>y4</td>|}}
    <div class="timeline-period">{{{6|}}}</div>
</tr></table></td>
    <div class="timieline-title">{{{5-title|}}}</div>{{{5|}}}
</tr><tr>
</div>|}}
{{If|{{{1}}}|<td>{{{2}}}</td>|}}
{{#if:{{{7|}}}{{{8-title|}}}{{{8|}}}|
{{If|{{{3}}}|<td>{{{4}}}</td>|}}
  <div class="timeline-content">
{{If|{{{5}}}|<td>{{{6}}}</td>|}}
    <div class="timeline-period">{{{7|}}}</div>
{{If|{{{7}}}|<td>{{{8}}}</td>|}}
    <div class="timieline-title">{{{8-title|}}}</div>{{{8|}}}
</tr></table></includeonly><noinclude>
</div>|}}
  This template is used to create a short horizontal timeline (no more than 9 events).
{{#if:{{{9|}}}{{{9-title|}}}{{{10|}}}|
  <div class="timeline-content">
    <div class="timeline-period">{{{10|}}}</div>
    <div class="timieline-title">{{{9-title|}}}</div>{{{9|}}}  
</div>|}}
{{#if:{{{11|}}}{{{12-title|}}}{{{12|}}}|
  <div class="timeline-content">
    <div class="timeline-period">{{{11|}}}</div>
    <div class="timieline-title">{{{12-title|}}}</div>{{{12|}}}
</div>|}}
{{#if:{{{13|}}}{{{13-title|}}}{{{14|}}}|
  <div class="timeline-content">
    <div class="timeline-period">{{{14|}}}</div>
    <div class="timieline-title">{{{13-title|}}}</div>{{{13|}}}
</div>|}}
{{#if:{{{15|}}}{{{16-title|}}}{{{16|}}}|
  <div class="timeline-content">
    <div class="timeline-period">{{{15|}}}</div>
    <div class="timieline-title">{{{16-title|}}}</div>{{{16|}}}
</div>|}}
{{#if:{{{17|}}}{{{17-title|}}}{{{18|}}}|
  <div class="timeline-content">
    <div class="timeline-period">{{{18|}}}</div>
    <div class="timieline-title">{{{17-title|}}}</div>{{{17|}}}  
</div>|}}
{{#if:{{{19|}}}{{{20-title|}}}{{{20|}}}|
  <div class="timeline-content">
    <div class="timeline-period">{{{19|}}}</div>
    <div class="timieline-title">{{{20-title|}}}</div>{{{20|}}}  
</div>|}}
</div>
</includeonly><noinclude>
  This template is used to create a short horizontal timeline (no more than 10 events).


==Usage==
==Usage==


<nowiki>{{Timeline|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18}}</nowiki>
<nowiki>{{Timeline
|This is the first event
|1-title=First
|4-title=''Second''
|Jan. 1, 1980
|Jan. 2, 1980
|This is the second event
|This is the third event
|Jan. 3, 1980
|Jan. 4, 1980
|This is the fourth event
|This is the '''fifth''' event
|Jan. 5, 1980
|Jan. 6, 1980
|This is the ''sixth'' event
|This is the [[seventh event]]
|Jan. 7, 1980
|Jan. 8, 1980
|This is the eighth event
|This is the ninth event
|Jan. 9, 1980
|Jan. 10, 1980
|This is the tenth event
}}</nowiki>


Where:
Where:


odd numbers = text that appears above the horizontal timeline.
* odd-numbered parameters (not counting the "#-title" parameters) are the boxes that appear above the horizontal timeline.
* even numbered parameters (not counting the "#-title" parameters) are the boxes that appear below the horizontal timeline.


even numbers = text that appears below the horizontal timeline.</noinclude>
'''Example:'''
 
The template usage demonstrated above '''results in:'''
{{:Sample Timeline}}
 
Just leave the number and equal sign alone for empty, later slots.
 
'''Note''': To leave a space blank (skipping a slots), you must enter "'''&amp;nbsp;'''" for that timeline entry.
</noinclude>

Latest revision as of 03:50, December 16, 2023

This template is used to create a short horizontal timeline (no more than 10 events).

Usage

{{Timeline
|This is the first event
|1-title=First
|4-title=''Second''
|Jan. 1, 1980
|Jan. 2, 1980
|This is the second event
|This is the third event
|Jan. 3, 1980
|Jan. 4, 1980
|This is the fourth event
|This is the '''fifth''' event
|Jan. 5, 1980
|Jan. 6, 1980
|This is the ''sixth'' event
|This is the [[seventh event]]
|Jan. 7, 1980
|Jan. 8, 1980
|This is the eighth event
|This is the ninth event
|Jan. 9, 1980
|Jan. 10, 1980
|This is the tenth event
}}

Where:

  • odd-numbered parameters (not counting the "#-title" parameters) are the boxes that appear above the horizontal timeline.
  • even numbered parameters (not counting the "#-title" parameters) are the boxes that appear below the horizontal timeline.

Example:

The template usage demonstrated above results in:

Jan. 1, 1980
First
This is the first event
Jan. 2, 1980
Second
This is the second event
Jan. 3, 1980
This is the third event
Jan. 4, 1980
This is the fourth event
Jan. 5, 1980
This is the fifth event
Jan. 6, 1980
This is the sixth event
Jan. 7, 1980
This is the seventh event
Jan. 8, 1980
This is the eighth event
Jan. 9, 1980
This is the ninth event
Jan. 10, 1980
This is the tenth event


Just leave the number and equal sign alone for empty, later slots.

Note: To leave a space blank (skipping a slots), you must enter "&nbsp;" for that timeline entry.