m (added language xref link to Japanese Codex) |
m (Width isn't actually optional) |
||
Line 35: | Line 35: | ||
|optional|alignnone}} |
|optional|alignnone}} |
||
− | {{Parameter|width|string|How wide the caption should be in pixels. This is a required and must have a value greater than or equal to 1. If not provided, caption processing will not be done and caption content will be passed-through. |
+ | {{Parameter|width|string|How wide the caption should be in pixels. This is a required and must have a value greater than or equal to 1. If not provided, caption processing will not be done and caption content will be passed-through.}} |
== Source File == |
== Source File == |
Languages: English • Italiano • Shortcode 日本語 (Add your language)
The Caption feature allows you to wrap captions around content using a simple Shortcode. This is primarily used with individual images
[caption]<image> Caption[/caption]
Practical usage is like this:
[caption id="attachment_6" align="alignright" width="300"]<img src="http://localhost/wp-content/uploads/2010/07/800px-Great_Wave_off_Kanagawa2-300x205.jpg" alt="Kanagawa" title="The Great Wave" width="300" height="205" class="size-medium wp-image-6" /> The Great Wave[/caption]
Which looks like this:
The following basic options are supported:
The caption shortcode is located in wp-includes/media.php
.
WordPress Shortcodes:
[audio]
,
[caption]
,
[embed]
,
[gallery]
,
[playlist]
,
[video]