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 02:05, 26 March 2005 editOmegatron (talk | contribs)Administrators35,798 edits reply← Previous edit Revision as of 02:06, 26 March 2005 edit undoOmegatron (talk | contribs)Administrators35,798 editsmNo edit summaryNext edit →
Line 5: Line 5:
] ] ] ]


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


See also ] See also ]

Revision as of 02:06, 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)