Template:Tlsubevent: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Robert W King
No edit summary
imported>Robert W King
mNo edit summary
 
(156 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="position:relative; z-index:4;">
<div style="position:relative;
<div style="position:relative;
border: 0.15em solid #000;
border: 0.15em solid #000;
height:{{{height}}}px;
height:{{{height}}};
top:2em;
top:{{{margin}}};
left:3em;
left:3em;
width:3.5em;
width:3.5em;
Line 9: Line 10:
border-left:1;
border-left:1;
border-right:0;
border-right:0;
z-index:2
margin-top:-{{{height}}};"></div>
margin-top:-1em;
margin-bottom:-{{#expr:{{{height}}}/1.5}}em;">
</div>
<div style="position:relative;  
<div style="position:relative;  
border: 0.05em solid #000;  
border: 0.05em solid #000;  
top:1em;  
top:{{{margin}}};
left:6em;  
left:6.5em;  
width:{{{width}}};
width:{{{width}}};
background-color: {{{color}}};
background-color: {{{color}}};
margin-top:{{#expr:{{{height}}}/1.25}}px;
margin-top:-10px;
margin-bottom:-{{#expr:{{{height}}}/{{#expr:{{{height}}}-1}}}}px;
margin-bottom:5px;"><font style="padding: 4px; margin:3px; display:block;">{{{event}}}</font>
z-index:3;"><font style="padding: 4px; margin:4px; display:block;">{{{event}}}</font>
</div>
</div>
</div>
<noinclude>
{{newtemplate
|authors=*[[User:Robert_W_King|Robert King]]
|caveats=
*See [[Template:Timeline/Sample]] for issues. 
*'''you will probably have to adjust the "height" and "margin" for each subevent!''' 
*There is a -10px margin on each element to make it "look right"; you'll have to compensate on each '''additional''' tlsubevent (not the first one)
|sample=See [[Template:Timeline/Sample]], specifically [[Template:Timeline/Sample#Test_tlsubevent]]
|description= a subevent timeline card to go right after {{tl|tlevent}} when using the {{tl|timeline}} template.
|execution=
<pre>
{{tlsubevent
|width=width in pixels, percent, or em (recommended using fixed width)
|event=your event here
|color=background color (in hex, "plain english" colors, or shortened hex/rgb)
|margin=how far down the "stem" appears
|height=height of the "stem"
}}
</pre>
}}
</noinclude>

Latest revision as of 12:48, 28 April 2008

{{{event}}}



Template Description

a subevent timeline card to go right after {{tlevent}} when using the {{timeline}} template.

Execution

{{tlsubevent
|width=width in pixels, percent, or em (recommended using fixed width)
|event=your event here
|color=background color (in hex, "plain english" colors, or shortened hex/rgb)
|margin=how far down the "stem" appears
|height=height of the "stem"
}}

Sample

See Template:Timeline/Sample, specifically Template:Timeline/Sample#Test_tlsubevent

Caveats

  • See Template:Timeline/Sample for issues.
  • you will probably have to adjust the "height" and "margin" for each subevent!
  • There is a -10px margin on each element to make it "look right"; you'll have to compensate on each additional tlsubevent (not the first one)

Authors