This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
|
dokuwiki_add_caption [2021/06/09 21:50] admin [Code] |
dokuwiki_add_caption [2021/06/15 15:14] sasabe [DokuWiki: Add caption to table] |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| * This is a small piece of Javascript code to add a caption to a table. | * This is a small piece of Javascript code to add a caption to a table. | ||
| * Works with DokuWiki' | * Works with DokuWiki' | ||
| - | * Works with WRAP plugin. | + | * Needs WRAP plugin. |
| * Just add a line of '' | * Just add a line of '' | ||
| Line 92: | Line 92: | ||
| | 3 | Scelerisque vestibulum metus risus |25 | | | 3 | Scelerisque vestibulum metus risus |25 | | ||
| | 4 | Nunc a commodo nullam | 200 | | | 4 | Nunc a commodo nullam | 200 | | ||
| + | |||
| + | ===== Mechanism ===== | ||
| + | |||
| + | The original HTML text is: | ||
| + | |||
| + | <code html> | ||
| + | <div class=" | ||
| + | <p> Caption text</ | ||
| + | </ | ||
| + | <div class=" | ||
| + | < | ||
| + | ... | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | This is transformed to: | ||
| + | |||
| + | <code html> | ||
| + | <div class=" | ||
| + | < | ||
| + | < | ||
| + | ... | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | Since this transformation is made **after** the rendering by DokuWiki, the normal formatting syntax (such as '' | ||
| + | |||