Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::open($save_path, $session_name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/session/PHPSessionHandler.php on line 172
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/web/public_html/wiki/includes/json/FormatJson.php on line 297
Deprecated: Return type of ResultWrapper::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/db/DatabaseUtility.php on line 174
Deprecated: Return type of ResultWrapper::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/db/DatabaseUtility.php on line 192
Deprecated: Return type of ResultWrapper::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/db/DatabaseUtility.php on line 185
Deprecated: Return type of ResultWrapper::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/db/DatabaseUtility.php on line 202
Deprecated: Return type of ResultWrapper::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/db/DatabaseUtility.php on line 163
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: Return type of MediaWiki\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/session/Session.php on line 555
Deprecated: Return type of MediaWiki\Session\Session::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/session/Session.php on line 560
Deprecated: Return type of MediaWiki\Session\Session::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/session/Session.php on line 570
Deprecated: Return type of MediaWiki\Session\Session::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/session/Session.php on line 565
Deprecated: Return type of MediaWiki\Session\Session::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/session/Session.php on line 580
Deprecated: Return type of MediaWiki\Session\Session::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/session/Session.php on line 575
Deprecated: Return type of MediaWiki\Session\Session::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/session/Session.php on line 589
Deprecated: Return type of & MediaWiki\Session\Session::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/session/Session.php on line 601
Deprecated: Return type of MediaWiki\Session\Session::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/session/Session.php on line 610
Deprecated: Return type of MediaWiki\Session\Session::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/web/public_html/wiki/includes/session/Session.php on line 614
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: Message implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/web/public_html/wiki/includes/Message.php on line 159
Deprecated: RawMessage implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /home/web/public_html/wiki/includes/Message.php on line 1232
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Warning: Cannot modify header information - headers already sent by (output started at /home/web/public_html/wiki/includes/session/Session.php:48) in /home/web/public_html/wiki/includes/Feed.php on line 234
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /home/web/public_html/wiki/includes/WebResponse.php on line 42
Warning: Cannot modify header information - headers already sent by (output started at /home/web/public_html/wiki/includes/session/Session.php:48) in /home/web/public_html/wiki/includes/WebResponse.php on line 42
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /home/web/public_html/wiki/includes/WebResponse.php on line 42
Warning: Cannot modify header information - headers already sent by (output started at /home/web/public_html/wiki/includes/session/Session.php:48) in /home/web/public_html/wiki/includes/WebResponse.php on line 42
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /home/web/public_html/wiki/includes/WebResponse.php on line 42
Warning: Cannot modify header information - headers already sent by (output started at /home/web/public_html/wiki/includes/session/Session.php:48) in /home/web/public_html/wiki/includes/WebResponse.php on line 42
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /home/web/public_html/wiki/includes/WebResponse.php on line 42
Warning: Cannot modify header information - headers already sent by (output started at /home/web/public_html/wiki/includes/session/Session.php:48) in /home/web/public_html/wiki/includes/WebResponse.php on line 42 http://redwolf.ws/wiki/index.php?title=Help:Table_caption&feed=atom&action=historyHelp:Table caption - Revision history2024-05-14T07:49:00ZRevision history for this page on the wikiMediaWiki 1.27.0 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /home/web/public_html/wiki/includes/db/Database.php on line 1742 http://redwolf.ws/wiki/index.php?title=Help:Table_caption&diff=28&oldid=prevSTrRedWolf: 1 revision(s)2007-11-11T17:55:41Z<p>1 revision(s)</p>
<p><b>New page</b></p><div>{{H:h}} [[Category:Editor handbook]]<br />
The '''caption''' tag is used inside the [[w:HTML element#Table (HTML)|HTML element "table"]]. This can also be done indirectly using the code "|+" as part of the wikicode for a [[Help:Table|table]].<br />
<br />
It places texts above the table, by default. Texts can also be below, at the left or at the right side of the table, based on the "align" parameter's value.<br />
<br />
{| border="0" width="100%" <br />
| colspan="2" style="vertical-align: middle" | In the rightside table, the texts '''This is a Caption''' showing a caption.<br />
| width="33%" | <br />
{| border="1"<br />
|+ This is a Caption<br />
! Data-Type-1 !! Data-Type-2<br />
|-<br />
| Data-1a || Data-2a<br />
|-<br />
| Data-1b || Data-2b<br />
|}<br />
|-<br />
| width="20%" | Wiki code:<br />
| colspan="2" | <pre><nowiki><br />
{| border="1"<br />
|+ This is a Caption<br />
! Data-Type-1 !! Data-Type-2<br />
|-<br />
| Data-1a || Data-2a<br />
|-<br />
| Data-1b || Data-2b<br />
|}<br />
</nowiki></pre><br />
|-<br />
| width="20%" | Html code:<br />
| colspan="2" | <pre><nowiki><br />
<table border="1"><br />
<caption> This is a Caption </caption><br />
<tr><br />
<th> Data-Type-1 </th><th> Data-Type-2 </th><br />
</tr><tr><br />
<td> Data-1a </td><td> Data-2a </td><br />
</tr><tr><br />
<td> Data-1b </td><td> Data-2b </td><br />
</tr><br />
</table><br />
</nowiki></pre><br />
|}<br />
<br />
A html '''&lt;caption&gt;''' tag can be created by using following wiki code:<br />
|+ Caption<br />
<br />
which generates the following html code:<br />
&lt;caption&gt;Caption&lt;/caption&gt;<br />
<br />
You can also use parameters in wiki code:<br />
|+ ''params''|Caption<br />
<br />
which will generate below html code:<br />
&lt;caption ''params''&gt;Caption&lt;/caption&gt;<br />
<br />
[[en:Cascading Style Sheets|CSS]] box model equivalent:<br />
display: table-caption;<br />
<br />
Caption tag accepts following parameters:<br />
align = "top|bottom|left|right" (Deprecated html parameter)<br />
&nbsp;&nbsp;(Html "align" is valid for ~[[en:Internet Explorer|IE]] 6).<br />
<br />
Equivalent [[en:Cascading Style Sheets|stylesheet]] parameter:<br />
style="caption-side: top|bottom|left|right|inherit;"<br />
<br />
{| border="0" width="100%" <br />
| colspan="2" style="vertical-align: middle" | In the rightside table, the texts '''Caption at bottom''' showing a bottom side caption.<br />
| <br />
{| border="1" <br />
|+ align="bottom" style="caption-side: bottom" | Caption at '''bottom''' <br />
! Data-Type-1 !! Data-Type-2<br />
|-<br />
| Data-1a || Data-2a <br />
|-<br />
| Data-1b || Data-2b <br />
|}<br />
|-<br />
| width="10%" | Wiki code:&nbsp; <br />
| colspan="2" style="border: 1px dashed #2f6fab; background-color: #f9f9f9;" | <tt><nowiki><br />
{| border="1"</nowiki><br /><nowiki><br />
|+ align="bottom" style="caption-side: bottom" | Caption at '''bottom'''</nowiki><br /><nowiki><br />
! Data-Type-1 !! Data-Type-2</nowiki><br /><nowiki><br />
|-</nowiki><br /><nowiki><br />
| Data-1a || Data-2a</nowiki><br /><nowiki><br />
|-</nowiki><br /><nowiki><br />
| Data-1b || Data-2b</nowiki><br /><nowiki><br />
|}<br />
</nowiki></tt><br />
|}<br />
<br />
For a bottom side, right aligned caption texts:<br />
|+ align="bottom" style="caption-side: bottom; text-align: right;" | Caption at bottom<br />
<br />
==See also==<br />
[[Help:Table]]<br />
<br />
{{H:f|enname=Table caption}}</div>STrRedWolf