User Tools

Site Tools


dokuwiki_img2fig

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
dokuwiki_img2fig [2021/06/07 00:44]
admin
dokuwiki_img2fig [2021/06/07 11:43]
admin [DokuWiki: Create figure from img]
Line 1: Line 1:
-===== DokuWiki: Create figure from img =====+====== DokuWiki: Create figure from img ======
  
-This Javascript code enables adding a caption to an image +This Javascript code enables the addition of captions to images in pages created on DokuWiki's default template.
  
-Add the following code to your "userscript.js".+The standard syntax for images is used such as  
 +''%%{{image_filename?image_width|caption}}%%'' 
 + 
 +===== Code ===== 
 + 
 +Add the following code to your ''conf/userscript.js.''
  
 <code javascript img2fig.js> <code javascript img2fig.js>
Line 37: Line 42:
 </code> </code>
  
-Add whatever **figure** styles to your CSS file. A suggestion is:+Add whatever **figure** styles to your CSS file (probably ''conf/userall.css''). A suggestion is:
  
 <code css styles.css> <code css styles.css>
Line 118: Line 123:
  
  
-==== Mechanism ====+===== Mechanism =====
  
-Origninal:+The origninal is like this:
  
 <code html> <code html>
Line 130: Line 135:
 </code> </code>
  
-is changed to:+This is changed to:
  
 <code html> <code html>
Line 142: Line 147:
 </p> </p>
 </code> </code>
- 
- 
  
  
dokuwiki_img2fig.txt · Last modified: 2021/06/16 10:59 by sasabe