|
|
(59 intermediate revisions by 8 users not shown) |
Line 1: |
Line 1: |
− | [http://marylandcomputerguy.net/nails/image/wroocs.html carisoprodol online] [http://c21redwood.com/images/properties/thumbs/hogmtf.html grasse] [http://adrianwindridge.co.uk/propertyimages/thumbs/gif/ipvjxm.html verison wireless plan] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/cuankw.html ghost whole house fan] [http://www.partnerwithsap.com/de/images/banners/dpbjiq.html porno video] [http://woodcrafts-online.com/shop/components/com_virtuemart/shop_image/product/thmbs/vskgdh.html free full length adult movies] [http://woodcrafts-online.com/shop/components/com_virtuemart/shop_image/product/thmbs/jvjrod.html the best replica rolex watch] [http://www.usedboatdealer.com/boats/images/banners/gif/amleav.html spanish properties] [http://www.boatnbabes.com/babes/modules/xcgal/albums/userpics/10001/thumbs/psuaxl.html young joc] [http://reportchildporn.com/rcp/themes/phpkaox/cache/oweprf.html scabies treatment] [http://www.bassboatmagazine.com/linkmachine/templates/lm_images/thumb/weqxwd.html wedding decoration] [http://reportchildporn.com/rcp/themes/phpkaox/cache/cqkwjn.html addicts] [http://www.partnerwithsap.com/de/images/banners/wmmxtn.html superman] [http://reverejournal.com/wp-content/uploads/2007/05/images/hvvxso.html louis vuitton wallets] [http://www.bidondates.com/pics/albums/102806/CIMG1414/ajjjvx.html free anal sex] [http://www.usedboatdealer.com/boats/images/banners/gif/eqsrka.html designer clothes] [http://www.usedboatdealer.com/boats/images/banners/gif/fqaimj.html human skeleton picture] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/gqtqmf.html japanese translator] [http://maslov.com/new_releases/cache/fmdkso.html flomax side effects] [http://npgsupport.com/chat/chat/localization/icelandic/cache/avxkpc.html hermaphrodite porn] [http://adrianwindridge.co.uk/propertyimages/thumbs/gif/aaursv.html paris hilton sex movie] [http://staticchain.com/banner/123x110/toqoos.html roller shutters] [http://interserverhost.com/gallery/albums/userpics/avatars/bprkeo.html towable vehicles] [http://aoreport.com/mag/images/stories/News05-06/5-22-06/image/mbkvvs.html used audi parts] [http://www.boatnbabes.com/babes/modules/xcgal/albums/userpics/10001/thumbs/beiank.html scat] [http://aoreport.com/mag/images/stories/News05-06/5-22-06/image/aitsuc.html basement remodeling] [http://deadmansjacket.co.uk/gallery_images/thumbs/cvmqhb.html wireless modem] [http://borrington.org/videos/move/nnsowk.html adipex online] [http://www.bassboatmagazine.com/linkmachine/templates/lm_images/thumb/inwith.html auto zone auto part] [http://www.usedboatdealer.com/boats/images/banners/gif/hjvhlq.html 1st year aniversery gifts] [http://www.christianspeaker.net/catalog/images/icon/idijta.html buy codeine] [http://jaxrotaract.org/galainfo/images/avatars/pics/ceurfl.html home based business opportunities] [http://marylandcomputerguy.net/nails/image/ttgxql.html alprazolam] [http://deadmansjacket.co.uk/gallery_images/thumbs/ilhbkt.html free metro ringtones] [http://www.usedboatdealer.com/boats/images/banners/gif/stdkwg.html double penetration video] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/xfmicu.html valium xanax] [http://aoreport.com/mag/images/stories/News05-06/5-22-06/image/qgloux.html african food recipes] [http://www.partnerwithsap.com/de/images/banners/ltqqwk.html nokia n71] [http://www.boatnbabes.com/babes/modules/xcgal/albums/userpics/10001/thumbs/rfgpxt.html motorcycle trike] [http://www.bassboatmagazine.com/linkmachine/templates/lm_images/thumb/dswjco.html breast lift] [http://c21redwood.com/images/properties/thumbs/gostfb.html cash advance loan] [http://www.hardenassociates.com/shands-santa/albums/image/ewkbtc.html lady sonia torrent] [http://aoreport.com/mag/images/stories/News05-06/5-22-06/image/udlwho.html womens lee jean] [http://shopwhat.com/photo/image/ecsfcb.html motorcycle for sale] [http://interserverhost.com/gallery/albums/userpics/avatars/hrohnc.html mp3 ringtone] [http://bostoncentury.com/old/coppermine/albums/userpics/10001/thumb/sqtvok.html yellowstone national park] [http://aoreport.com/mag/images/stories/News05-06/5-22-06/image/eitoxh.html dirt bike parts] [http://www.partnerwithsap.com/de/images/banners/lbwoen.html rent movie] [http://www.usedboatdealer.com/boats/images/banners/gif/tvuari.html four star hotel in florence] [http://www.swiic.com/swi/images/banners/128x250/lhcjrg.html colleg] [http://maslov.com/new_releases/cache/kqxbig.html wwe music] [http://sbcoachescollege.com/bulletin/images/avatars/new/jxllbm.html free verizon wireless ringtone] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/ifsewj.html telecommunications] [http://www.partnerwithsap.com/de/images/banners/hrhdxg.html boost mobile phone prepaid] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/vudpkw.html play houses] [http://woodcrafts-online.com/shop/components/com_virtuemart/shop_image/product/thmbs/vtpcus.html military jobs] [http://shopwhat.com/photo/image/jrwjvk.html common law marriage florida] [http://www.usedboatdealer.com/boats/images/banners/gif/deqxlh.html glycolax] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/gtmhag.html adult personal classifieds] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/ovcvfb.html elementary schools] [http://bostoncentury.com/old/coppermine/albums/userpics/10001/thumb/oxjaeh.html excel tutorial] [http://www.athomewithmark.com/images/properties/thumb/dfanpb.html infant jordan shoes] [http://jaxrotaract.org/galainfo/images/avatars/pics/fvuthf.html football pictures] [http://shopwhat.com/photo/image/fnmugr.html journalism] [http://www.bassboatmagazine.com/linkmachine/templates/lm_images/thumb/psiskb.html cholestyramine] [http://npgsupport.com/chat/chat/localization/icelandic/cache/kqtdea.html work from home] [http://meretusa.com/links/cache/jrhlfl.html photo sex] [http://www.usedboatdealer.com/boats/images/banners/gif/glqems.html download emule] [http://deadmansjacket.co.uk/gallery_images/thumbs/xfjbdn.html america west airline] [http://c21redwood.com/images/properties/thumbs/mosgjc.html homemade sex toys] [http://www.usedboatdealer.com/boats/images/banners/gif/qrmrrf.html liver disease] [http://shopwhat.com/photo/image/tfsdxr.html satellite broadband] [http://shopwhat.com/photo/image/dlllcb.html mazda 3] [http://npgsupport.com/chat/chat/localization/icelandic/cache/vgcpfn.html bet music] [http://interserverhost.com/gallery/albums/userpics/avatars/khandd.html employment canada] [http://www.bidondates.com/pics/albums/102806/CIMG1414/ehcoqo.html india porno] [http://www.usedboatdealer.com/boats/images/banners/gif/klklpg.html retro handbags wholesale] [http://www.partnerwithsap.com/de/images/banners/nelocc.html toyota dealer] [http://c21redwood.com/images/properties/thumbs/imtlbd.html women seeking woman] [http://www.boatnbabes.com/babes/modules/xcgal/albums/userpics/10001/thumbs/hiqxbn.html discovery] [http://reverejournal.com/wp-content/uploads/2007/05/images/mvtpaq.html baltimore aquarium] [http://shopwhat.com/photo/image/tlltkj.html homedepot] [http://marylandcomputerguy.net/nails/image/bjuxor.html medical alert bracelet] [http://shopwhat.com/photo/image/wcsbvo.html wawanesa auto insurance] [http://bostoncentury.com/old/coppermine/albums/userpics/10001/thumb/ahkesq.html preorder ps3] [http://deadmansjacket.co.uk/gallery_images/thumbs/kvseos.html disney princes] [http://www.christianspeaker.net/catalog/images/icon/chumkt.html love making] [http://www.christianspeaker.net/catalog/images/icon/qcbdsp.html minnie mouse] [http://www.jericogt.com/design/schema/images/news/thumb/1/tmqcep.html nipple piercings] [http://marylandcomputerguy.net/nails/image/acjbfh.html bontril online] [http://c21redwood.com/images/properties/thumbs/dtwncf.html toys sex] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/sesifu.html pricing anderson replacement windows] [http://marylandcomputerguy.net/nails/image/kmhvpq.html joann fabrics coupons] [http://www.boatnbabes.com/babes/modules/xcgal/albums/userpics/10001/thumbs/woldth.html lil john] [http://deadmansjacket.co.uk/gallery_images/thumbs/lagcla.html online xxx dvd] [http://www.partnerwithsap.com/de/images/banners/vosspc.html keflex 500mg] [http://reverejournal.com/wp-content/uploads/2007/05/images/qeocgr.html pearson airport] [http://shopwhat.com/photo/image/wmrfwq.html cheap disneyland tickets] [http://bostoncentury.com/old/coppermine/albums/userpics/10001/thumb/rettdj.html soccer] [http://marylandcomputerguy.net/nails/image/spnwxb.html pitbulls ear cropping] [http://seeds.servemp3.com/web/meaning-of-anthropology.html meaning of anthropology] [http://diaper.servemp3.com/translate-russian.htm translate russian web] [http://prozak.servemp3.com/text/thrust.htm thrust] [http://chopt.servemp3.com/celebrity-groupies.htm celebrity groupies] [http://marked.servemp3.com/web/america-association.html america association care lawn professional] [http://perfum.servemp3.com/view/lemonade-stand.html lemonade stand] [http://toledo.servemp3.com/articles/san-antonio-spurs.html san antonio spurs] [http://safely.servemp3.com/articles/jordan-pussy.html jordan pussy] [http://whiff.servemp3.com/library/samsung-a670.html samsung a670] [http://chopt.servemp3.com/autoclave.htm autoclave] [http://chopt.servemp3.com/anita-blonde.htm anita blonde hardcore] [http://expuls.servemp3.com/web/jewish-single-group.html jewish single group] [http://toledo.servemp3.com/articles/male-massage.html male massage] [http://diaper.servemp3.com/what-is-feminist.htm what is feminist movement] [http://perfum.servemp3.com/view/to-beat-the-child.html to beat the child was bad enough] [http://perfum.servemp3.com/view/include-file.html include file not found] [http://mortar.servemp3.com/content/discounted-contact.html discounted contact lens] [http://chopt.servemp3.com/samson-exhaust.htm samson exhaust] [http://expuls.servemp3.com/web/business-hosting.html business hosting] [http://prozak.servemp3.com/text/sexy-mini-skirt.htm sexy mini skirt gallery] [http://expuls.servemp3.com/web/hands-up.html hands up] [http://prozak.servemp3.com/text/mcafee-stinger.htm mcafee stinger] [http://prozak.servemp3.com/text/young-teens.htm young teens wearing thongs] [http://diaper.servemp3.com/alexander-brooks.htm alexander brooks] [http://safely.servemp3.com/articles/every-little.html every little thing] [http://prozak.servemp3.com/text/ako.htm ako] [http://perfum.servemp3.com/view/gigantic-penis.html gigantic penis] [http://perfum.servemp3.com/view/wood-workshop.html wood workshop ideas] [http://seeds.servemp3.com/web/savings-bank-life.html savings bank life insurance] [http://prozak.servemp3.com/text/hot-topless-babes.htm hot topless babes] [http://expuls.servemp3.com/web/aventis.html aventis] [http://safely.servemp3.com/articles/sex-movie.html sex movie] [http://toledo.servemp3.com/articles/adapter-belkin-usb.html adapter belkin usb] [http://diaper.servemp3.com/leprosy.htm leprosy] [http://seeds.servemp3.com/web/under-the-kilt.html under the kilt] [http://perfum.servemp3.com/view/lexicon.html lexicon] [http://perfum.servemp3.com/view/steel-buildings.html steel buildings construction for church] [http://diaper.servemp3.com/ways-of-making.htm ways of making money] [http://toledo.servemp3.com/articles/hair-tips-for.html hair tips for curly hair] [http://amamon.servemp3.com/articles/little-virgins-exclusive.html little virgins exclusive] [http://toledo.servemp3.com/articles/nathalie.html nathalie] [http://chopt.servemp3.com/naturist-pictures.htm naturist pictures] [http://diaper.servemp3.com/casinos-in-indiana.htm casinos in indiana] [http://perfum.servemp3.com/view/lolita-video.html lolita video] [http://safely.servemp3.com/articles/lindsay-lohan-breast.html lindsay lohan breast slip] [http://whiff.servemp3.com/library/one-by-one-leadership.html one by one leadership fresno] [http://whiff.servemp3.com/library/rocket-modeler.html rocket modeler 2] [http://whiff.servemp3.com/library/t-rowe-price.html t rowe price] [http://marked.servemp3.com/web/sound-files.html sound files] [http://mortar.servemp3.com/content/html-help.html html help] [http://perfum.servemp3.com/view/quilt-blocks.html quilt blocks] [http://marked.servemp3.com/web/transexuals.html transexuals] [http://expuls.servemp3.com/web/cheap-zocor.html cheap zocor] [http://amamon.servemp3.com/articles/free-mobile-phone.html free mobile phone mp3 ringtone] [http://whiff.servemp3.com/library/drunk-teen-sex.html drunk teen sex] [http://chopt.servemp3.com/ameriplan.htm ameriplan] [http://whiff.servemp3.com/library/texas-land-for.html texas land for sale] [http://expuls.servemp3.com/web/piroxicam.html piroxicam] [http://prozak.servemp3.com/text/brazil-people.htm brazil people] [http://seeds.servemp3.com/web/discount-adipex.html discount adipex] [http://perfum.servemp3.com/view/london-2012.html london 2012] [http://diaper.servemp3.com/spanking-blog.htm spanking blog] [http://whiff.servemp3.com/library/schoolgirls-upskirt.html schoolgirls upskirt gallery] [http://seeds.servemp3.com/web/ball-lightning.html ball lightning] [http://diaper.servemp3.com/dance-paintings.htm dance paintings] [http://whiff.servemp3.com/library/really-long-foreskins.html really long foreskins] [http://toledo.servemp3.com/articles/new-homes-in.html new homes in colorado springs] [http://perfum.servemp3.com/view/marlene.html marlene] [http://marked.servemp3.com/web/beautiful-naked.html beautiful naked woman] [http://chopt.servemp3.com/amalfi-coast.htm amalfi coast] [http://seeds.servemp3.com/web/charlotte-ross.html charlotte ross nude] [http://perfum.servemp3.com/view/mary-kate-ashley.html mary kate ashley fucking] [http://perfum.servemp3.com/view/free-bbw-movies.html free bbw movies] [http://toledo.servemp3.com/articles/buy-alprazolam.html buy alprazolam] [http://amamon.servemp3.com/articles/honeymoon-cruises.html honeymoon cruises] [http://toledo.servemp3.com/articles/bulk-email.html bulk email] [http://marked.servemp3.com/web/psp-wireless-internet.html psp wireless internet] [http://prozak.servemp3.com/text/olsen-twins-sex.htm olsen twins sex] [http://mortar.servemp3.com/content/free-adult-comics.html free adult comics] [http://amamon.servemp3.com/articles/florida-parkinsons.html florida parkinsons disease law suit lawyers] [http://chopt.servemp3.com/graphic-organizers.htm graphic organizers] [http://diaper.servemp3.com/renault-kangoo.htm renault kangoo] [http://marked.servemp3.com/web/shoulder-pain.html shoulder pain] [http://marked.servemp3.com/web/free-xxx-story.html free xxx story] [http://marked.servemp3.com/web/become-an-isp.html become an isp] [http://toledo.servemp3.com/articles/top-heavy.html top heavy] [http://toledo.servemp3.com/articles/nancys-perky-breast.html nancys perky breast] [http://mortar.servemp3.com/content/mature-model.html mature model] [http://marked.servemp3.com/web/teen-sex-model.html teen sex model] [http://expuls.servemp3.com/web/target-pharmacy.html target pharmacy] [http://seeds.servemp3.com/web/incest-bbs.html incest bbs] [http://seeds.servemp3.com/web/wwf.html wwf] [http://prozak.servemp3.com/text/sleeping-teens.htm sleeping teens] [http://safely.servemp3.com/articles/celebrity-movie.html celebrity movie] [http://toledo.servemp3.com/articles/cp-lolita.html cp lolita] [http://safely.servemp3.com/articles/ivillage.html ivillage] [http://safely.servemp3.com/articles/big-boobed-teens.html big boobed teens] [http://marked.servemp3.com/web/lyric-power-song.html lyric power song station] [http://expuls.servemp3.com/web/free-website.html free website hosting] [http://chopt.servemp3.com/english-to-latin.htm english to latin] {{Running_Jmol_Sections}}
| + | {{Running_Jmol_Sections}} |
| = Description = | | = Description = |
| | | |
| [http://www.mediawiki.org/ MediaWiki] is an open source wiki engine licensed under the [http://www.gnu.org/copyleft/gpl.html GNU General Public License]. It is used by [[metawikipedia:Sites_using_MediaWiki|many websites]], including this one. | | [http://www.mediawiki.org/ MediaWiki] is an open source wiki engine licensed under the [http://www.gnu.org/copyleft/gpl.html GNU General Public License]. It is used by [[metawikipedia:Sites_using_MediaWiki|many websites]], including this one. |
| | | |
− | The Jmol Mediawiki Extension enables the use of the Jmol applet inside of Mediawiki pages. This [[Jmol_MediaWiki_Extension|simple page]] demonstrates how to use the extension. | + | The '''Jmol Mediawiki Extension''' enables the use of the '''JSmol''' object inside of Mediawiki pages. |
| | | |
− | '''Current status:''' the Jmol Mediawiki Extension is fully functional and stabilized. It currently needs to be modified for a few things: better security, ability to delay loading the applet. | + | '''Current version: 5.1''', compatible with '''JSmol''' |
| + | (You can check which version a Wiki is using by going to the <code>[[Special:Version]]</code> page in that Wiki) |
| | | |
| + | '''Current status: (version 5, JSmol)''' |
| + | * The Jmol Mediawiki Extension is now using JSmol (in HTML5 modality by default, but also compatible with Java modality if you use a web browser that still supports Java applets). Some functionality was added, apart from compatibility with MediaWiki version 1.32. |
| + | '''Old status: (version 4, JSmol)''' |
| + | * The Jmol Mediawiki Extension used JSmol (in HTML5 modality by default, but also compatible with Java modality) |
| + | '''Older status: (version 3, Jmol-Java)''' |
| + | * Security is hopefully correct now. The delay effect can be obtained by using [[MediaWiki#Jmol_applet_in_a_popup_window | Jmol applet in a popup window]]. |
| + | * The Jmol Mediawiki Extension is fully functional and stabilized. It currently needs to be modified for a few things: better security, ability to delay loading the applet. |
| | | |
| = Wikis using the Jmol Extension = | | = Wikis using the Jmol Extension = |
Line 15: |
Line 23: |
| = How to use the Jmol Extension = | | = How to use the Jmol Extension = |
| | | |
− | Once the Jmol Extension is installed in the Wiki, you can start adding Jmol applets and controls. | + | Once the Jmol Extension is installed in the Wiki, you can start adding JSmol objects and controls. |
| | | |
− | == Simple usage ==
| + | How to know if the Extension is installed, and which version it is? Visit the <code>Special:Version</code> page in your wiki; the extension should be listed there. |
| | | |
− | === Jmol applet in a MediaWiki page ===
| + | * [[MediaWiki/ExtensionV5|How to use version 5 of the Jmol Extension]]. Compatible with MediaWiki 1.32, PHP 7.0 and JSmol 14.29.32 |
| + | * [[MediaWiki/ExtensionV4|How to use version 4 of the Jmol Extension]] |
| + | * [[MediaWiki/ExtensionV3|How to use version 3 of the Jmol Extension]] |
| | | |
− | To add a Jmol applet to a MediaWiki page, just add the following:
| + | = Installation = |
− | | + | (''This must be done by the wiki administrator.'') |
− | {{Tag|jmol}}
| |
− | {{Tag|jmolApplet}}
| |
− | {{Tag|uploadedFileContents}}file uploaded in the wiki containing the molecular data{{Tag|/uploadedFileContents}}
| |
− | {{Tag|/jmolApplet}}
| |
− | {{Tag|/jmol}}
| |
− | | |
− | or
| |
− | | |
− | {{Tag|jmol}}
| |
− | {{Tag|jmolApplet}}
| |
− | {{Tag|wikiPageContents}}page of the wiki containing the molecular data{{Tag|/wikiPageContents}}
| |
− | {{Tag|/jmolApplet}}
| |
− | {{Tag|/jmol}}
| |
− | | |
− | or
| |
− | | |
− | {{Tag|jmol}}
| |
− | {{Tag|jmolApplet}}
| |
− | {{Tag|inlineContents}}contents of the molecular file{{Tag|/inlineContents}}
| |
− | {{Tag|/jmolApplet}}
| |
− | {{Tag|/jmol}}
| |
− | | |
− | or
| |
− | | |
− | {{Tag|jmol}}
| |
− | {{Tag|jmolApplet}}
| |
− | {{Tag|urlContents}}URL of the molecular file{{Tag|/urlContents}}
| |
− | {{Tag|/jmolApplet}}
| |
− | {{Tag|/jmol}}
| |
− | | |
− | === Controls for the Jmol applet ===
| |
− | | |
− | To add buttons to send scripts to the applet, just add the following:
| |
| | | |
− | {{Tag|jmol}}
| + | See [[MediaWiki/Installation]] |
− | {{Tag|jmolButton}}
| |
− | {{Tag|script}}script to execute{{Tag|/script}}
| |
− | {{Tag|text}}text of the button{{Tag|/text}}
| |
− | {{Tag|/jmolButton}}
| |
− | {{Tag|/jmol}}
| |
| | | |
− | To add links to send scripts to the applet, just add the following:
| + | = Problems yet to be solved = |
| | | |
− | {{Tag|jmol}}
| + | * Having problems with Jmol applets that are placed below the flow of a link, button, or other user interface element in markup. I get what appears to be a Java error when loading an uploaded file. --[[User:Mevans86|Mevans86]] 18:58, 13 October 2010 (UTC) |
− | {{Tag|jmolLink}}
| |
− | {{Tag|script}}script to execute{{Tag|/script}}
| |
− | {{Tag|text}}text of the link{{Tag|/text}}
| |
− | {{Tag|/jmolLink}}
| |
− | {{Tag|/jmol}}
| |
| | | |
− | To add checkboxes to send scripts to the applet, just add the following:
| + | * Does not work with Media wiki 1.17 (and probably 1.15,1.16). I think there was a rewrite of mediawiki code and I get: |
− | | + | : Warning: Parameter 1 to Jmol::tag_jmol() expected to be a reference, value given in /var/www/mediawiki/extensions/StubManager/StubManager.php on line 783 |
− | {{Tag|jmol}}
| + | : --[[User:Jacksmind|Jacksmind]] 01:00, 10 October 2010 (UTC) |
− | {{Tag|jmolCheckbox}}
| + | :: Hopefully this is solved with version 3.3 of the Extension, since it no longer depends on StubManager. (Still to be confirmed, but it is working fine with MW 1.16 in this site.) --[[User:AngelHerraez|AngelHerraez]] 12:32, 22 November 2010 (CET) |
− | {{Tag|scriptWhenChecked}}script to execute when the checkbox is checked{{Tag|/scriptWhenChecked}}
| |
− | {{Tag|scriptWhenUnchecked}}script to execute when the checkbox is unchecked{{Tag|/scriptWhenUnchecked}}
| |
− | {{Tag|text}}text of the checkbox{{Tag|/text}}
| |
− | {{Tag|/jmolCheckbox}}
| |
− | {{Tag|/jmol}}
| |
− | | |
− | To add radio groups to send scripts to the applet, just add the following:
| |
− | | |
− | {{Tag|jmol}}
| |
− | {{Tag|jmolRadioGroup}}
| |
− | {{Tag|item}}
| |
− | {{Tag|script}}script to execute when the radio button is selected{{Tag|/script}}
| |
− | {{Tag|text}}text of the radio button{{Tag|/text}}
| |
− | {{Tag|/item}}
| |
− | {{Tag|item}}
| |
− | {{Tag|script}}script to execute when the radio button is selected{{Tag|/script}}
| |
− | {{Tag|text}}text of the radio button{{Tag|/text}}
| |
− | {{Tag|/item}}
| |
− | {{Tag|/jmolRadioGroup}}
| |
− | {{Tag|/jmol}}
| |
− | | |
− | To add menus to send scripts to the applet, just add the following:
| |
− | | |
− | {{Tag|jmol}}
| |
− | {{Tag|jmolMenu}}
| |
− | {{Tag|item}}
| |
− | {{Tag|script}}script to execute when the menu item is selected{{Tag|/script}}
| |
− | {{Tag|text}}text of the menu item{{Tag|/text}}
| |
− | {{Tag|/item}}
| |
− | {{Tag|item}}
| |
− | {{Tag|script}}script to execute when the menu item is selected{{Tag|/script}}
| |
− | {{Tag|text}}text of the menu item{{Tag|/text}}
| |
− | {{Tag|/item}}
| |
− | {{Tag|/jmolMenu}}
| |
− | {{Tag|/jmol}}
| |
− | | |
− | Applets and other controls can be combined in a single {{Tag|jmol}} tag.
| |
− | | |
− | === Jmol applet in a popup window ===
| |
− | | |
− | To add a button that opens a new window with a Jmol applet, use the {{Tag|JmolAppletButton}} tag instead of the {{Tag|JmolApplet}} tag and also add the {{Tag|text}} tag in it. For example:
| |
− | | |
− | {{Tag|jmol}} | |
− | {{Tag|jmolAppletButton}}
| |
− | {{Tag|uploadedFileContents}}file uploaded in the wiki containing the molecular data{{Tag|/uploadedFileContents}}
| |
− | {{Tag|text}}text displayed in the button{{Tag|text}}
| |
− | {{Tag|/jmolAppletButton}}
| |
− | {{Tag|/jmol}}
| |
− | | |
− | To add a link that opens a new window with a Jmol applet, use the {{Tag|JmolAppletLink}} tag instead of the {{Tag|JmolApplet}} tag and also add the {{Tag|text}} tag in it. For example:
| |
− | | |
− | {{Tag|jmol}}
| |
− | {{Tag|jmolAppletLink}}
| |
− | {{Tag|uploadedFileContents}}file uploaded in the wiki containing the molecular data{{Tag|/uploadedFileContents}}
| |
− | {{Tag|text}}text displayed in the link{{Tag|text}}
| |
− | {{Tag|/jmolAppletLink}}
| |
− | {{Tag|/jmol}}
| |
− | | |
− | == Reference ==
| |
− | | |
− | The {{Tag|jmol}} tag can contain the following:
| |
− | * {{Tag|jmolApplet}} : Jmol Applet.
| |
− | ** {{Tag|signed}} (<tt>true</tt>, <tt>false</tt>) : On the first Jmol applet to use the signed or unsigned version of the applet. This attribute can be disabled by the Wiki administrator with the <tt>$wgJmolAuthorizeChoosingSignedApplet</tt> setting in {{File|LocalSettings.php}}.
| |
− | ** {{Tag|color}} : To change the background color of the Jmol applet.
| |
− | ** {{Tag|uploadedFileContents}} : Name of an uploaded file in this wiki containing the molecular data to load in the Jmol applet. The Wiki needs to be configured to authorize the upload of molecular data files (using <tt>$wgFileExtensions</tt> in {{File|LocalSettings.php}}). This attribute can be disabled by the Wiki administrator with the <tt>$wgJmolAuthorizeUploadedFile</tt> setting in {{File|LocalSettings.php}}.
| |
− | ** {{Tag|wikiPageContents}} : Name of a page of this wiki containing the molecular data to load in the Jmol applet.
| |
− | ** {{Tag|urlContents}} : URL of the molecular file to load. This attribute can be disabled by the Wiki administrator with the <tt>$wgJmolAuthorizeUrl</tt> setting in {{File|LocalSettings.php}}.
| |
− | ** {{Tag|inlineContents}} : Molecular data to load in the Jmol applet.
| |
− | ** {{Tag|size}} : Size of the applet.
| |
− | ** {{Tag|script}} : Script to execute at startup.
| |
− | ** {{Tag|name}} : Name of the Jmol applet (useful if you want to use several Jmol applets in the same page).
| |
− | * {{Tag|jmolButton}} : Button.
| |
− | ** {{Tag|script}} : Jmol script to execute when the button is clicked.
| |
− | ** {{Tag|text}} : Text of the button.
| |
− | ** {{Tag|name}} : Name of the button.
| |
− | ** {{Tag|target}} : Name of the Jmol applet linked with the button (useful only if you want to use several Jmol applets in the same page).
| |
− | * {{Tag|jmolLink}} : Link. Same tags as {{Tag|jmolButton}}.
| |
− | * {{Tag|jmolCheckbox}} : Checkbox.
| |
− | ** {{Tag|scriptWhenChecked}} : Jmol script to execute when the checkbox is checked.
| |
− | ** {{Tag|scriptWhenUnchecked}} : Jmol script to execute when the checkbox is unchecked.
| |
− | ** {{Tag|checked}} (<tt>true</tt>, <tt>false</tt>) : Indicates if the checkbox is checked by default.
| |
− | ** {{Tag|text}} : Text of the button.
| |
− | ** {{Tag|name}} : Name of the button.
| |
− | ** {{Tag|target}} : Name of the Jmol applet linked with the button (useful only if you want to use several Jmol applets in the same page).
| |
− | * {{Tag|jmolMenu}} : Menu.
| |
− | ** {{Tag|item}} : Menu item.
| |
− | *** {{Tag|script}} : Jmol script to execute when the menu item is selected.
| |
− | *** {{Tag|text}} : Text of the menu item.
| |
− | *** {{Tag|checked}} (<tt>true</tt>, <tt>false</tt>) : Indicates if the menu item is checked.
| |
− | ** {{Tag|name}} : Name of the menu.
| |
− | ** {{Tag|target}} : Name of the Jmol applet linked with the menu (useful only if you want to use several Jmol applets in the same page).
| |
− | ** {{Tag|menuHeight}} : Number of visible menu items (1: combo-box, 2 or greater: list with the specified number of lines, -1: calculated).
| |
− | * {{Tag|jmolRadioGroup}} : Radio group.
| |
− | ** {{Tag|item}} : Radio button.
| |
− | *** {{Tag|script}} : Jmol script to execute when the radio button is selected.
| |
− | *** {{Tag|text}} : Text of the radio button.
| |
− | *** {{Tag|checked}} (<tt>true</tt>, <tt>false</tt>) : Indicates if the radio button is checked.
| |
− | ** {{Tag|name}} : Name of the radio group.
| |
− | ** {{Tag|target}} : Name of the Jmol applet linked with the radio group (useful only if you want to use several Jmol applets in the same page).
| |
− | ** {{Tag|vertical}} (<tt>true</tt>, <tt>false</tt>) : Indicates if the radio buttons are stacked vertically or horizontally.
| |
− | * {{Tag|jmolAppletButton}} : A button for opening a new window with a Jmol Applet. It can contains the same tags as the {{Tag|jmolApplet}} tag, and also the following tags :
| |
− | ** {{Tag|text}} : Text of the button.
| |
− | ** {{Tag|title}} : Title of the new window (''doesn't work for the moment'').
| |
− | ** {{Tag|x}} and {{Tag|y}} : Position of the new window.
| |
− | * {{Tag|jmolAppletLink}} : A link for opening a new window with a Jmol Applet. Same tags as {{Tag|jmolAppletButton}}.
| |
− | | |
− | == Test Pages ==
| |
− | | |
− | # [[Uploaded XYZ File]]
| |
− | # [[Uploaded MDL Molfile]]
| |
− | # [[Uploaded CML File]]
| |
− | # [[Inlined MDL Molfile]]
| |
− | # [[Inlined CML File]]
| |
− | | |
− | = Installation =
| |
| | | |
− | [http://www.jmol.org/files/ Download Jmol] and extract all the files in a temporary directory. | + | * The developers at WikiMedia / WikiMedia Commons / Wikipedia apparently advocate the use of a simpler way of inserting Jmol applets, by just linking to the (previously uploaded) model file (as it is done e.g. with images) and having the server decide upon the way to handle it, with something simpler than the current Extension (see [https://bugzilla.wikimedia.org/show_bug.cgi?id=16491 a discussion] about this). |
| + | : However, in my opinion rendering of a 3D molecular model clearly calls for something more flexible than a simple, barebone viewer with default settings. Maybe we would have to resort to a simpler extension for Wikipedia and a full one for other wikis? |
| + | :: New tags are available since version 3.3 of the extension, which are much more simple to use ({{Tag|jmolFile}}, {{tag|jmolPdb}}, {{tag|jmolSmiles}}), but are currently not flexible. A solution to explore may be the use of HTML templates to give the opporunity to choose between differently configured viewers (with different controls and informations). --[[User:NicolasVervelle|NicolasVervelle]] 22:44, 28 November 2010 (CET) |
| | | |
− | Create the directory {{Directory|Jmol}} in {{Directory|$mediawiki/extensions}}, and copy the following files in it:
| + | * An interesting feature would be the server-side automation of the snapshot ability of the Jmol application, so that images are generated into the wiki page as a thumbnail that will link to --or be replaced by-- the applet when the user clicks on the image, or on a link below it (see an [[User:Bduke#How_should_molecules_be_shown_on_Wikipedia | example]] of this idea, though not server-generated). |
− | * {{File|COPYRIGHT.txt}}
| |
− | * {{File|Jmol.js}}
| |
− | * {{File|JmolApplet_i18n.jar}} and {{File|JmolApplet0.jar}} to {{File|JmolApplet6.jar}}
| |
− | * {{File|JmolAppletSigned_i18n.jar}} and {{File|JmolAppletSigned0.jar}} to {{File|JmolAppletSigned6.jar}}, if you want to be able to use the signed applet.
| |
− | * {{File|LICENSE.txt}}
| |
− | * {{File|README.txt}}
| |
| | | |
| + | * I have just upgraded to MediaWiki 1.18.1 and I now have: |
| + | :Warning: Parameter 3 to Jmol::jmolPdbTag() expected to be a reference, value given in /var/www/SklogWiki/includesparser/Parser.php on line 3580 |
| + | :Any advice? --[[User:SklogWiki|SklogWiki]] 19:31, 31 January 2012 (CET) |
| + | |
| | | |
− | Add the following line to the end of {{File|LocalSettings.php}}:
| + | == Already solved == |
− | require_once('extensions/Jmol/JmolExtension.php');
| + | These are left here for reference, as you may still have these problems depending on your version of MediaWiki or your version of the Jmol MediaWiki Extension. |
| | | |
| + | * The installation does not work when the wiki is installed in a non-root folder of the server (e.g. <nowiki>http://www.myserver.com/mywiki/index.php</nowiki> instead of <nowiki>http://mywiki.myserver.com/index.php</nowiki>). |
| + | : '''Fixed''' (2008-Nov-29) in [http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol-extensions/wiki/MediaWiki/ revision 10393]. |
| | | |
− | You can configure the Jmol extension with several settings added after the above line (default value in '''bold'''):
| + | * Using {{Tag|jmolAppletButton}} or {{Tag|jmolAppletlink}} throws an error in Internet Explorer: "Invalid argument", and prevents the pop-up. |
− | * <tt>$wgJmolAuthorizeChoosingSignedApplet</tt> (<tt>true</tt>, '''<tt>false</tt>''') : Authorize users to choose between the unsigned and the signed Jmol applet. | + | : '''Partially fixed''' (2008-Dec-2) in [http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol-extensions/wiki/MediaWiki/ revision 10411]. |
− | * <tt>$wgJmolAuthorizeUploadedFile</tt> ('''<tt>true</tt>''', <tt>false</tt>) : Authorize the use of {{Tag|uploadedFileContents}}.
| + | : '''Completely fixed''' (2008-Dec-8) in [http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol-extensions/wiki/MediaWiki/ revision 10467]. |
− | * <tt>$wgJmolAuthorizeUrl</tt> (<tt>true</tt>, '''<tt>false</tt>''') : Authorize the use of {{Tag|urlContents}}.
| |
− | * <tt>$wgJmolDefaultAppletSize</tt> ('''<tt>400</tt>''') : Size in pixels of the Jmol applet.
| |
− | * <tt>$wgJmolDefaultScript</tt> : Default script.
| |
− | * <tt>$wgJmolExtensionPath</tt> : Path to the directory where the Jmol extension is installed.
| |
− | * <tt>$wgJmolForceNameSpace</tt> : Force the NameSpace where the applet will go looking for wiki pages containing molecular data (using {{Tag|wikiPageContents}}).
| |
− | * <tt>$wgJmolShowWarnings</tt> ('''<tt>true</tt>''', <tt>false</tt>) : Display warnings when users try to use disabled features.
| |
− | * <tt>$wgJmolUsingSignedAppletByDefault</tt> (<tt>true</tt>, '''<tt>false</tt>''') : Choose if the signed Jmol applet will be used by default. ''Note: the signed Jmol applet is signed with a default certificat. If you want to use the signed Jmol applet in your wiki, I suggest resigning the Jmol applet with your own certificate.''
| |
| | | |
| + | * The scripts associated to checkboxes rendered by {{tag|jmolCheckbox}} have no effect on the applet. |
| + | : '''Fixed''' (2008-Dec-8) in [http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol-extensions/wiki/MediaWiki/ revision 10467]. |
| + | :: This was the discussion of the problem: |
| + | <div style="border:1px dashed #000099; margin-left:6ex;"> |
| + | (Bob) something in {{file|/skins/common/wikibits.js?97}} is disabling checkboxes.<br /> |
| + | (Nico) Yes, good catch, thanks a lot. Now, I need to find a way to overcome the behaviour of <code>setupCheckboxShiftClick()</code>. I am going to ask on mediawiki list.<br /> |
| + | (Bugzilla) [https://bugzilla.wikimedia.org/show_bug.cgi?id=10642 discussion] |
| + | </div> |
| + | :: The problem was due to a conflict in the <code>onClick</code> event for checkboxes correctly written by the Jmol Extension and a javascript library ({{file|wikibits.js}}) included in MediaWiki. The offending js function is now overwritten by the extension. |
| | | |
− | '''Note:''' If you want to authorize users to upload files containing molecular data (for using the {{Tag|uploadedFileContents}} tag), you need to do the following:
| + | * Since Jmol scripting can include a call to javascript commands, the Jmol applet inserted by the Jmol MediaWiki Extension can execute arbitrary javascript added by any user editing the page (see [[User:Ilmari_Karonen/JS_injection_demo | demo]]). This is an unacceptable security hole for some systems such as Wikipedia, and will prevent Jmol from being used there. There is hence a need to implement a "scripting-without-javascript" mode of the applet, i.e. a way to completely disable the <code>javascript</code> command in Jmol scripts run from the MediaWiki Extension. |
− | * By default, MediaWiki authorizes the uploading of files whose name ends with a limited number of extensions. For example, if you want to authorize uploading {{File|*.cml}} files, add <tt>$wgFileExtensions[] = 'cml';</tt> in {{File|LocalSettings.php}}.
| + | : '''Fixed''' (2008-Dec-8) in [http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol-extensions/wiki/MediaWiki/ revision 10467]. |
− | * You can add an icon in the {{Directory|skins/common/images/icons/}} directory for each extension (for example, {{File|fileicon-cml.png}}). In this wiki, we are using [[:Image:Fileicon_Chemical.png|this image]], which leads to the [[:Category:Molecular_Data|following result]].
| + | :: No javascript will be executed by Jmol applets inserted by the Extension. |
| | | |
| + | * The signed applet was not being used even when explicitly authorized in the wiki configuration (<code>$wgJmolAuthorizeChoosingSignedApplet=true</code>) and requested for the applet (<code><signed>true</signed></code>). |
| + | : '''Fixed''' (2008-Dec-8) in [http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol-extensions/wiki/MediaWiki/ revision 10467]. |
| + | :: Now you can also have both signed and unsigned applets in the same page. |
| | | |
− | * Copy the code in [[MediaWiki/JmolMediaWiki.js]] and paste it into {{File|extensions/Jmol/JmolMediaWiki.js}}. | + | * Inserting applets with models read from php pages fails. The applet is using the {{tag|urlContents}} tag and the url contains the '&' character. |
− | * Copy the code in [[MediaWiki/JmolExtension.php]] and paste it into {{File|extensions/Jmol/JmolExtension.php}}.
| + | : '''Fixed''' (2009-Nov-13) in [http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol-extensions/wiki/MediaWiki/ revision 11738], version 3.2 of the Extension. |
| + | :: The '&' is not tolerated by the wikicode. The solution is to use %26 (the wikicode for &) instead of the ampersand(s) in the url, content of the {{tag|urlContents}} tag. The Extension will later filter those %26 codes and convert them to & so that the server correctly provides the model. |
| | | |
| = External links = | | = External links = |
Line 232: |
Line 92: |
| * Wikipedia: [[wikipedia:Wikipedia:Using Jmol to display molecular models|Using Jmol to display molecular models]] | | * Wikipedia: [[wikipedia:Wikipedia:Using Jmol to display molecular models|Using Jmol to display molecular models]] |
| * Wikipedia: [[wikipedia:Wikipedia:WikiProject Chemistry|WikiProject Chemistry]] | | * Wikipedia: [[wikipedia:Wikipedia:WikiProject Chemistry|WikiProject Chemistry]] |
| + | * MediaWiki: [http://www.mediawiki.org/wiki/Extension:Jmol Jmol Extension for MediaWiki] |