Template:TLevent: Difference between revisions
Jump to navigation
Jump to search
imported>Robert W King No edit summary |
imported>Robert W King No edit summary |
||
(64 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
border-top:0; | border-top:0; | ||
border-bottom:1; | border-bottom:1; | ||
border-left: | border-left:0; | ||
border-right:0; | border-right:0; | ||
z-index:2; | |||
margin-bottom:0px;"> | |||
</div> | </div> | ||
<div style="position:relative; | <div style="position:relative; | ||
Line 18: | Line 18: | ||
width:{{{width}}}; | width:{{{width}}}; | ||
background-color: {{{color}}}; | background-color: {{{color}}}; | ||
margin:0em">{{{event}}} | margin-bottom:0em; | ||
z-index:3;"><font style="padding:4px; margin:3px; display:block;">{{{event}}}</font> | |||
</div> | </div> | ||
<noinclude> | <noinclude> | ||
<br/><br/> | <br/><br/> | ||
{{Newtemplate | {{Newtemplate | ||
|description=Used as an element within {{tl|Timeline}}. ''' | |description=Used as an element within {{tl|Timeline}}. '''Please note:''' the stem units are in EMs. The width units can be in "em"s, pixels, or percentages. | ||
|execution=<pre> | |execution=<pre> | ||
{{TLevent | {{TLevent | ||
|event= Describe your event. | |event= Describe your event. | ||
|width= Width in em or percent | |width= Width in em or percent, or pixels. (Can be static or dynamic. pick!) | ||
|color= in "plain english", #FFF hex, or #123ABC hex. | |color= in "plain english", #FFF hex, or #123ABC hex. | ||
}} | }} | ||
</pre> | </pre> | ||
|sample={{TLevent | |sample={{TLevent | ||
|event=This one time, in band camp... | |event=This one time, in band camp... '''I used the color white''' | ||
|width= | |width=90% | ||
|color= | |color=white | ||
}} | }} | ||
Line 44: | Line 45: | ||
|caveats=After you place the last event in the timeline, be sure to put <code><nowiki>|}</nowiki></code> at the end to close off the table. | |caveats= | ||
*After you place the last event in the timeline, be sure to put <code><nowiki>|}</nowiki></code> at the end to close off the table. | |||
*The width should be specified as being either '''pixels (px)''', '''em''' or '''percent (%)'''. '''Your preference should be to use fixed values''' to prevent problems with browser width scaling problems. 500 - 600 px seems to be a pretty good choice for the new skin. | |||
*Use <code><nowiki><br/></nowiki></code> after your table to push the wiki text down so it won't overlap. | |||
*The following tags can be used: | |||
**<code><nowiki><big></big></nowiki></code> | |||
**<code><nowiki><small></small></nowiki></code> | |||
**Wiki-style headings using "="s can be used, but they must be formatted like such: <code><nowiki><h3></h3></nowiki></code>, <code><nowiki><h2></h2></nowiki></code>, etc. | |||
*See [[Template:Timeline/Sample#Test_with_various_functions]] for a continuing test of what wiki functions may be (safely!) used with this template. | |||
|authors=*[[User:Robert_W_King|Robert King]] | |authors=*[[User:Robert_W_King|Robert King]] | ||
}} | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 12:46, 28 April 2008
{{{event}}}
Template Description
Used as an element within {{Timeline}}. Please note: the stem units are in EMs. The width units can be in "em"s, pixels, or percentages.
Execution
{{TLevent |event= Describe your event. |width= Width in em or percent, or pixels. (Can be static or dynamic. pick!) |color= in "plain english", #FFF hex, or #123ABC hex. }}
Sample
This one time, in band camp... I used the color white
Caveats
- After you place the last event in the timeline, be sure to put
|}
at the end to close off the table. - The width should be specified as being either pixels (px), em or percent (%). Your preference should be to use fixed values to prevent problems with browser width scaling problems. 500 - 600 px seems to be a pretty good choice for the new skin.
- Use
<br/>
after your table to push the wiki text down so it won't overlap. - The following tags can be used:
<big></big>
<small></small>
- Wiki-style headings using "="s can be used, but they must be formatted like such:
<h3></h3>
,<h2></h2>
, etc.
- See Template:Timeline/Sample#Test_with_various_functions for a continuing test of what wiki functions may be (safely!) used with this template.
Authors