Misplaced Pages

Template talk:Float begin: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 01:51, 26 March 2005 editDbenbenn (talk | contribs)Extended confirmed users19,225 edits Change syntax← Previous edit Revision as of 02:05, 26 March 2005 edit undoOmegatron (talk | contribs)Administrators35,798 edits replyNext edit →
Line 5: Line 5:
] ] ] ]


To be superseded by a ] someday? :-) To be superseded by a ] with tags like <nowiki>]</nowiki> someday? :-)

See also ]


==Usage== ==Usage==
Line 30: Line 32:
| BJT || || JFET || | BJT || || JFET ||
{{float_end|caption=Different types of transistors}} {{float_end|caption=Different types of transistors}}

<br clear="all"/>


== Change syntax == == Change syntax ==
Line 36: Line 40:


I suggest removing the second line, that opens a table. That way we could use this template to put a frame around ''anything''. For example, at ], I have a template that already makes a complete table. I want a frame with caption around it. ] | ] 01:51, 26 Mar 2005 (UTC) I suggest removing the second line, that opens a table. That way we could use this template to put a frame around ''anything''. For example, at ], I have a template that already makes a complete table. I want a frame with caption around it. ] | ] 01:51, 26 Mar 2005 (UTC)

:Yeah, but since the framed css adds a gray border around any image inside of two divs, I had to take the table out of the second div and put the border around the table itself. So the table header needs a <code>border: 1px solid #CCCCCC; margin: 0.3em;</code>, and I figured I'd just include it in the template. Otherwise it would look like this:

<!-- Several images in one box -->
<div class="thumb tleft">
<div>
{| border="0" cellpadding="10" cellspacing="0" style="font-size: 85%; border: 1px solid #CCCCCC;"
|- align = "center"
| ] || PNP || ] || P-channel
|- align = "center"
| ] || NPN || ] || N-channel
|- align = "center"
| BJT || || JFET ||
|}
<div class="thumbcaption"> Transistor symbols of different types</div>
</div>
</div>

<br clear="all"/>

:If you can figure out a way to get the same look but make the table independent, go for it. I am not a css guru. - ] 02:05, Mar 26, 2005 (UTC)

Revision as of 02:05, 26 March 2005

Used for putting a table in a frame. Possibly renamed, updated, etc. in the future.

Still needs some work on the caption length screwing things up. Should maybe be renamed table_float_end or something, since it is only for pipe tables.

Template talk:Float begin Template talk:Float end

To be superseded by a table namespace with tags like ] someday?  :-)

See also Misplaced Pages talk:Extended image syntax#Multiple images in one frame

Usage

{{float_begin|side=left}}
|- align = "center"
| ] || PNP || ] || P-channel
|- align = "center"
| ] || NPN || ] || N-channel
|- align = "center"
| BJT || || JFET || 
{{float_end|caption=Different types of transistors}}

becomes

PNP P-channel
NPN N-channel
BJT JFET
Different types of transistors


Change syntax

I love this template; it's semantically much better than what I came up with at Template:Caption top.

I suggest removing the second line, that opens a table. That way we could use this template to put a frame around anything. For example, at Fork (chess), I have a template that already makes a complete table. I want a frame with caption around it. dbenbenn | talk 01:51, 26 Mar 2005 (UTC)

Yeah, but since the framed css adds a gray border around any image inside of two divs, I had to take the table out of the second div and put the border around the table itself. So the table header needs a border: 1px solid #CCCCCC; margin: 0.3em;, and I figured I'd just include it in the template. Otherwise it would look like this:
PNP P-channel
NPN N-channel
BJT JFET
Transistor symbols of different types


If you can figure out a way to get the same look but make the table independent, go for it. I am not a css guru. - Omegatron 02:05, Mar 26, 2005 (UTC)