Difference between revisions of "Img" From Online Manual

Jump to: navigation, search
(example gif did not exist -- now using one that does exist.)
(added parameters)
Line 4: Line 4:
 
|example=[img]http://wiki.simplemachines.org/skins/common/images/button_media.png [/img]
 
|example=[img]http://wiki.simplemachines.org/skins/common/images/button_media.png [/img]
 
|result=<img src="http://wiki.simplemachines.org/skins/common/images/button_media.png" alt="" class="bbc_img" />
 
|result=<img src="http://wiki.simplemachines.org/skins/common/images/button_media.png" alt="" class="bbc_img" />
 +
|parameters={{Parmdesc
 +
|alt|d1=text alternative to the image, for visually impaired users
 +
|width|d2=resize image to this width. If no height is specified, height will be resized to preserve the aspect ratio.
 +
|height|d3=resize image to this height. If no width is specified, width will be resized to preserve the aspect ratio.
 +
}}
 
}}
 
}}
 
[[Category:Basic Bulletin Board Code]]
 
[[Category:Basic Bulletin Board Code]]
 
[[Category:Bulletin_Board_Code]]
 
[[Category:Bulletin_Board_Code]]

Revision as of 07:57, 15 June 2011

button: Img.gif

parameters:

  • alt text alternative to the image, for visually impaired users
  • width resize image to this width. If no height is specified, height will be resized to preserve the aspect ratio.
  • height resize image to this height. If no width is specified, width will be resized to preserve the aspect ratio.

example: [img]http://wiki.simplemachines.org/skins/common/images/button_media.png [/img]

result: <img src="http://wiki.simplemachines.org/skins/common/images/button_media.png" alt="" class="bbc_img" />