Template:Tlsubevent: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Robert W King
mNo edit summary
imported>Robert W King
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
border: 0.15em solid #000;
border: 0.15em solid #000;
height:{{{height}}};
height:{{{height}}};
top:-1em;
top:{{{margin}}};
left:3em;
left:3em;
width:3.5em;
width:3.5em;
Line 17: Line 17:
width:{{{width}}};
width:{{{width}}};
background-color: {{{color}}};
background-color: {{{color}}};
margin-top:-10px;
margin-bottom:5px;"><font style="padding: 4px; margin:3px; display:block;">{{{event}}}</font>
margin-bottom:5px;"><font style="padding: 4px; margin:3px; display:block;">{{{event}}}</font>
</div>
</div>
Line 25: Line 26:
|caveats=
|caveats=
*See [[Template:Timeline/Sample]] for issues.   
*See [[Template:Timeline/Sample]] for issues.   
*'''you will probably have to adjust the "height" and "margin" for each subevent!'''  I apologize that it is like this, but the varying height of the initial {{tl|tlevent}} makes it this way.
*'''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]]
|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.
|description= a subevent timeline card to go right after {{tl|tlevent}} when using the {{tl|timeline}} template.

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